Disksuite can be kind of Quirky to in the fact lets say you change a file and you did it wrong opps both disks now have the same copy, not to mention if the mirror ever breaks it can be a real hassle to break the mirror and reboot if your not that experienced. Also the DD command can take forever since it copies everything on the disk block for block. So here comes a common solution. The UFSDUMP and UFSRESTORE command.
# Step 1 Setup the partition info the same
# prtvtoc /dev/rdsk/cAtBdCsD | fmthard -s - /dev/rdsk/cWtXdYsZ
# Step 2 Create a newfs on all NEW partitions
# newfs /dev/rdsk/cWtXdYsZ (You can probably script this but I have not done that here)
# Step 3 Mount up new partition /mnt is good for our purpose and do a level 0 dump for every partition
# mount /dev/dsk/cWtXdYs0 /mnt
# vi /mnt/etc/vfstab (change the controller, target, slice,info,etc..)
# vi /etc/dumpadm.conf (change the dump device to the new swap slice)
# You should now be able to boot of this second hard drive
Note: The new Sun Fire Servers this process has a few additional steps since they now use WWN's also to access to their drives.
# cp /mnt/etc/path_to_inst /mnt/etc/path_to_inst.ORIG
# rm /mnt/etc/path_to_inst
# rm -rf /mnt/dev/dsk/* /mnt/dev/rdsk/*
# init 0
# Swap hard drives
# boot cdrom -s
# devfsadm -r /mnt -p /mnt/etc/path_to_inst
# reboot -- -r
# System should now boot up
# After that when you reboot off the second disk do a boot -ar to rebuild the device tree and /etc/path_to_inst.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.