[plug] Constant rsync'ing...

Andrew Furey simpware at yahoo.com
Thu Mar 13 19:14:38 WST 2003


> Is there a better solution? Ideally, something
> daemon-ish, that auto-replicated changes, triggered
> by the filesystem itself? Or at least a more
> efficient way of finding recently modified files?
> (I'd rather not rely on datestamp - and it also
needs
> to handle replicating file deletes...)

The solution we used to have (see next paragraph) was
to use NBD, the network block device, in conjuction
with software RAID1, to mirror particular devices
(partitions). That way we had a master partition on
one machine, and other machine(s) which were making a
device available using NBD, and set those up as slaves
in the RAID.

Unfortunately, this no longer works in a 2.4 kernel.
Somewhere between 2.2 and 2.4 NBD broke :(  I've tried
tracking the problem down by un-applying kernel
patches, but without much success so far.

What this means is that the "master" machine (with the
NBD clients) must be 2.2 (the other machines can be
anything, even other UNIXes - it's just a userspace
daemon on the server end). Of course, if you do happen
to be running 2.2 anyway, there's no problem...

Email me for instructions if you're interested.

Andrew

=====
Linux supports the notion of a command line or a shell for the same
reason that only children read books with only pictures in them.
Language, be it English or something else, is the only tool flexible
enough to accomplish a sufficiently broad range of tasks.
                          -- Bill Garrett

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.



More information about the plug mailing list