We have some servers that run in very harsh environments (research vessel) that need to have high-availability.
We have software RAID 1 for some measure of resiliency, along with proper data backups (tapes etc), however we would like to be able to break out a new server and re-image it (including RAID setup) from a known good copy if the hardware completely fails on the production box. Simplicity of the process is a big plus.
I am interested in any advice on the best way to approach this. My current approach (relatively new to Linux administration, totally new to MDADM) is to use DD to take a complete gzipped copy of one of the RAID'ed devices (from a live CD):
dd if=/dev/sda bs=4096 | gzip -c > /mnt/external/image/test.img
then reverse the process on the new PC, finally using
mdadm --assemble
to re-create and re-build the array.
I'm not sure that this is the best approach, or if it will even work. Any advice would be great.
dd if=/dev/zero of=/mnt/sda6/tmp/delete.me
to zero the free space which hopefully, combined with gzip, will result in manageable image files. @Evan - thanks for pointing out the limitations of dd. If I did end up using dd to re-image a drive in the recovery PC, would something likemdadm --assemble --scan
be enough to rebuild the array and get a runnable system? – Caligari Oct 28 '10 at 01:13