Re: Sync two disks and hot swap
- Date: Thu, 9 Nov 2017 10:54:57 -0800
- From: David Christensen <dpchrist@xxxxxxxxxxxxxxxx>
- Subject: Re: Sync two disks and hot swap
On 11/09/17 04:35, Michael Stone wrote:
On Thu, Nov 09, 2017 at 10:13:17AM +0100, Dominik George wrote:
what is the goal in having an identical copy of the disk?
It's not even so much that.
It's that the person who will be changing the disks will be hardly
capable of just that, and will not get anything close to root access to
And I am afraid that all that complexity around automounting the
different filesystems, autounmounting, and automatically ensuring the
filesystem is clean and unmounted at the time the disk is to be swapped
could be quite unreliable.
Honestly, it's an easier problem than ensuring that a raid element is
cleanly unmounted. Historically there have been external drives with
buttons that could be mapped to events (but I have no idea what's on the
market right now that might have an addressable button). Otherwise maybe
allow the user to run "eject /whatever" with sudo, or wrap that in a
single-function console login or somesuch. Another possibility is to
wrap the rsync functionality in a mount/unmount cycle, so that the disk
is always unmounted and ready to go except when actively transferring data.
There are many choices for software:
STFW for others that aren't listed by WikiPedia. For example, backup
software with ZFS back end:
Beware of falling into the "roll your own" trap.