we are in a special case where we have 2 Ubuntu offline servers in 2 DCs and should be kept offline when not used. When we need to use them, we power up one of them, do whatever we want physically via KVM and then power it off again. Network connectivity will be absent at any times. We need a way to easily replicate the changes in the 2nd offline server, so that they will have the same data every time. We came up with 3 candidate solutions:
- 3-way ZFS mirror on the 1st server. Disc 1, remains attached. Disc 2, is kept in a safe. Disc 3, attached on the 2nd server. When operations are to be made on the 1st server, we plug disc 2 (from the safe), do the operation, unplug disk 2 from the mirror, plug in on the 2nd server and resilver. In short, the 3-way mirror will be always degraded on purpose. Alternatively, avoid plugging/unplugging disks and use ZFS send/receive snapshots stored in an external USB drive as snapshot file.
- mdraid (sw raid 1) and do the same as in (1) (unplug-plug disc and resync).
- Clonezilla (or any other 3rd party bare-metal solution) to image from the 1st server and apply in on the 2nd (the HW & partition setup will be identical).
Do you think that (1) would be too complex for a simple need like this? Any other opinions?