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.
Back to the page of Not So Frequently Asked Questions.