#This doc will assume the failed drive is wd1 #if the failed drive is wd0, boot off of the floppyR media and follow #the following procedure, making care to swap wd0 and wd1 in the procedure. #shutdown the machine #replace the failed drive with a new drive. if the drive was previously #in use as a softraid component, you need to wipe the drive. this can be #done by formatting the drive. #startup the machine. #at the boot> prompt, enter "boot bsd.inst" this will start a kernel #which supports raid, but will not autoconfigure your raid partitions. #we need to initialize the MBR on the replacement drive. fdisk -i wd1 cd /root #pull the current disklabel off the working drive. disklabel wd0 > mylabel #edit the disklabel to change the RAID slices to FFS slices. sed 's/RAID/4.2BSD 2048 16384 16/' < mylabel > ffslabel disklabel -R wd1 ffslabel #format the new slices to make sure the drive is wiped clean to prep. newfs wd1a newfs wd1d newfs wd1e #now load the RAID label onto the drive. disklabel -R wd1 mylabel #reconstruct raid0 raidctl -c raid0.conf raid0 #configures the raid device raidctl -A no raid0 #disables the autoconfigureing of the device raidctl -v -R /dev/wd1d raid0 #reconstructs the failed component raidctl -A root raid0 #enables the autoconfigureing of the device. #reconstruct raid1 raidctl -c raid1.conf raid1 #configures the raid device raidctl -A no raid1 #disables the autoconfigureing of the device raidctl -v -R /dev/wd1e raid1 #reconstructs the failed component raidctl -A yes raid1 #enables the autoconfigureing of the device. #copy the base system from the working recovery partition to the #replacement drive. mount /dev/wd1a /mnt cd /mnt tar cfX - -C / . | tar xvf - -C /mnt #install the boot loader on the replacement drive usr/mdec/installboot boot usr/mdec/biosboot wd1 #done and done 8) reboot