BSD/OS Drive Mirroring -- Backing Up Disk To Disk

Where can I get a script that allows one to easily dump and restore a boot disk to an identical disk, so I can boot off the backup disk once the master disk has failed?

BSD/OS does not have support for software mirroring of disk drives. On machines where multiple boot devices can be easily configured from a serial console (e.g. SPARC based machines), it is sometimes desirable to have a manually invoked disk mirroring processes, to snapshot all the data from the master disk to a second device in the same machine.

Machines that are deployed into remote locations (e.g. colocation facilities) are often candidates for this type of semi-automatic disk duplication. While not as robust as software mirroring systems where the data is maintained on both drives in parallel, this type of arrangement is still practical in some circumstances.

The following script duplicates the data on the source disk to the destination disk. It runs through the following operations:

The script can be accessed here: http://www.pix.net/staff/lidl/nsfaq/bsdos/dodiskback.

Known limitations

Back to the page of Not So Frequently Asked Questions.

Valid HTML 4.01! Kurt J. Lidl
lidl at pix dot net
Last Updated: $Date: 2004/05/18 02:21:37 $