redundant block device between 5 servers

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
I need to synch a block device between 5 servers. Only one server will write to the block device and the other three just need to read from it. If this was only between 2 servers, drbd would be perfect, but it's my understanding that drbd will only do 2 or 3 nodes, and I need it to do 5. The replication must be immediate, preferably the primary node not being notified the writes are finished until the data is on all 5 nodes.

Any ideas?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Does it have to be a block device? I.e. could you get away with read-only NFS mounts on the other machines?
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
Does it have to be a block device? I.e. could you get away with read-only NFS mounts on the other machines?

This would be my first suggestion too. Have the device on a machine that serves a read-only copy of the data via NFS to your other machines.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Does it have to be a block device? I.e. could you get away with read-only NFS mounts on the other machines?

no, I actually just thought of that and was coming back to mention it. It does not have to be a block device. The important part is keeping the files in synch, but it needs to be immediate, preferably synchronous but I would settle for asynchronous.

NFS mounts would be great, but then how do I keep them all in synch? The only thing I can think of is create a cron job that copies any new files and have it run every 30 seconds, but that has obvious flaws to it.
 

Platypus

Lifer
Apr 26, 2001
31,046
321
136
no, I actually just thought of that and was coming back to mention it. It does not have to be a block device. The important part is keeping the files in synch, but it needs to be immediate, preferably synchronous but I would settle for asynchronous.

NFS mounts would be great, but then how do I keep them all in synch? The only thing I can think of is create a cron job that copies any new files and have it run every 30 seconds, but that has obvious flaws to it.

Perhaps I misread the original post but you say you only need one device to write to it and the rest only read right? Have your NFS server be the host that writes to the device and since that volume is being served via NFS as read-only to your other hosts, the writes would be instantly available as soon as they're written.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Perhaps I misread the original post but you say you only need one device to write to it and the rest only read right? Have your NFS server be the host that writes to the device and since that volume is being served via NFS as read-only to your other hosts, the writes would be instantly available as soon as they're written.

oh, well, the purpose of this is too replicate data out to sites over relatively slow lines (like 10mbit), so they don't have to read from the main server. So that won't work.
 

Fallen Kell

Diamond Member
Oct 9, 1999
6,097
460
126
no, I actually just thought of that and was coming back to mention it. It does not have to be a block device. The important part is keeping the files in synch, but it needs to be immediate, preferably synchronous but I would settle for asynchronous.

NFS mounts would be great, but then how do I keep them all in synch? The only thing I can think of is create a cron job that copies any new files and have it run every 30 seconds, but that has obvious flaws to it.

ummm... why would you copy the files form the NFS mount? Simply mount the NFS mount to where you expect to have read access to the files and then when whatever needs to read the file simply does. For all intents and purposes, the file(s) in the NFS mount point would be seen on the system as if they were part of it. Just share it out as "ro" and you should be good to go.

You can setup the automounter to mount that NFS directory somewhere, but you can also do it as a hard mount (with the side effect that it can cause your system to hang when booting if the mount point can not be established). Heck you can even mount it under some other existing directory tree like "/usr/local/some_dir".
 

Fallen Kell

Diamond Member
Oct 9, 1999
6,097
460
126
oh, well, the purpose of this is too replicate data out to sites over relatively slow lines (like 10mbit), so they don't have to read from the main server. So that won't work.

Yeah, if that is the case, NFS mount will not help you. Best you can do is an "rsync", which is how things were done in the old days for ftp server replication.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
Yeah, if that is the case, NFS mount will not help you. Best you can do is an "rsync", which is how things were done in the old days for ftp server replication.

Yeah, it looks like that may be the only simple solution until the next major version of drbd comes out (which supports multiple nodes, instead of just 2). The only other possibility would be to use a combination of gnbd, mdraid, and gfs, but I'm undecided if I want to go that route.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |