LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 05-05-2005, 07:42 AM   #1
rmarco
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
Clonning data, fifo/pipe/tee problem : Resource temporarily unavailable


Hello,

i am looking for an easy and efficient way to clone data in a cluster,

i am trying to do a chain of ssh copies:
the 1st node begins to send data to the 2ndnode,
and the 2nd node while is receiving data copy it to hard disk
and also send it to the next node, and so on

something like this:

tar cf - dir_tobecopied | ssh node2 "common_script"

where common_scrip is a script that contains:

mkfifo temp
(tar xf temp ) &
tee temp | ssh $next_node "common_script"

i think this way i should be able to use as much as possible the switch
backbone and reduce the time needed for it,

for little files (less than 50MB) it worked fine :-) but for a bigger
ammount of data i found this error :

tee: read error: Resource temporarily unavailable
... and it fails

(i frecuently need to clone 10 GB of data in around 100 nodes
with gigabit ethernet)
any help please ?

other posibility is to use multicast but i could not found any good
working tool for it,

regards,

Rafa
 
Old 05-05-2005, 08:28 AM   #2
tredegar
Guru
 
Registered: May 2003
Location: London, UK
Distribution: Ubuntu 10.04, mostly
Posts: 5,995

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
It seems to me that bittorrent might be the perfect solution here:

http://www.bittorrent.com/
 
Old 05-05-2005, 11:15 AM   #3
rmarco
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
thanks for you answer tredegar, but i am afraid bittorrent is not the best solution to my problem,
i found it quite complex for what i really need,

besides i forgot to comment an important detail: the machines are distributed between several switches
with only a 1 gigabit ethernet conexion, if i would use bittorrent ie. all the machines from the second switch
would try to download data from the first switch and it would create a big bottleneck, using a chain of
simultaneous copy commands would elude that problem,
(the switches i am using have 48 gigabit ports and 2x48gigabit backbone, but conexion between them
is just 1 gigabit)

regards, Rafa
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
fork: resource temporarily unavailable ??? str8edge Linux - General 3 06-21-2011 09:00 AM
Speedtouch 330, connect(0.35): Resource temporarily unavailable the_freshmaker Linux - Hardware 0 11-06-2005 12:16 PM
Siocsifflags: Resource Temporarily Unavailable camapa Linux - Networking 0 09-24-2005 07:58 PM
cfork failed: Resource temporarily unavailable x2000koh Linux - Networking 0 05-11-2003 10:07 PM
SIOCSIFFLAGS: Resource temporarily unavailable bleef Linux - Networking 2 05-14-2001 10:54 PM


All times are GMT -5. The time now is 10:57 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration