restoring VM mirror root on E3500

G. Bruce Chewning bruce.chewning@theALLIEDgroup.com
Mon, 26 Jul 1999 13:34:11 -0400


I have been trying a test of restoring the root disk on an E3500 and it
has been more difficult than I though it would.
I hoping that someone can make some suggestions to make this possible or
easier.

The configuration is as follows:
E3500 w/ 4 internal disk, A5200(dual ended w/ another E3500), Solaris
2.6, VM 2.6 and Solstice NetBackup 3.1.1
rootdisk is mirrored across disk c0t0d0(slot 0)(c0t0d0 is the primary of
encapsulated root) and c5t4d0(slot 4)( secendary)
/        c0t0d0s0
/usr    c0t0d0s5
/var    c0t0d0s6
/opt    c0t0d0s7

My test went like this:
Netbackup - backup /, /usr, /var, /opt
Remove the 4 internal disks
Install 2 new spares (in slot 0 and 4)
Load Solaris 2.6 on c5t4d0 (alt disk)
Install NetBackup
restore db and database
Partition c0t0d0s0, c0t0d0s5, c0t0d0s6, c0t0d0s7 (New boot disk)
newfs c0t0d0s0, c0t0d0s5, c0t0d0s6, c0t0d0s7
Mount each slice and restore /, /usr, /var, /opt   (NetBackup: alt path,
check boxes checked for renaming links)
While c0t0d0s0 is mounted,
copy the original /etc/vfstab (before original disk was encapsulated)
edit /a/etc/system (removing VM lines)
Remove /etc/vx/reconfig.d/state.d/root-done
Touch /a/etc/vx/reconfig.d/install-db
Copy Netbackup db and database over to new boot disk.
Install bootstrap to c0t0d0s0
Shutdown
Create new device alias for new boot disk. (WWN changed, physical new
disk).
Boot the new alias device.

My boot was doing fine until it tried to mount /usr
I realized that the links in /dev/dsk, /dev/rdsk, and /etc/path_to_inst
were wrong (because WWN changed)

Sun Helped me out with a procedure to fix this.
ok boot cdrom -sw
   mount /dev/dsk/c0t3d0s0 /a
   cd /a/dev/dsk
   rm c*
   cd /a/dev/rdsk
   rm c*
   cd /
   drvconfig -r /a/devices -p /a/etc/path_to_inst
   devlinks -r /a
   disks -r /a
   tapes -r /a
   ports -r /a
   audlinks -r /a
   cd /
   umount /a
   reboot

I now get :
mount: /dev/dsk/c0t0d0s5 or /usr   file or directory do not exist.

I can boot the cdrom -s and mount c0t0d0s0 on /a  and  /a/usr is there
I can even mount /dev/dsk/c0t0d0s5 on /a/usr
The line in vfstab that refers to /usr has been removed and retyped.

Any help would be appreciated, G. Bruce