- 论坛徽章:
- 0
|
To dd FCAL root disk disk, you should make sure disk WWN is correctly
updated throughout the system.
1) Boot the system into single user from the cdrom or network.
2) duplicate root disk with dd
2.1) mount new disk to /a
3) the following commands to re-build devices tree :
#drvconfig -r /a/devices -p /a/etc/path_to_inst
#cd /devices
#find . -print | cpio -pduVm /a/devices
#disks -r /a
#devlinks -r /a
4) #sync;sync;sync
#init 0
5) ok boot -s
6) #drvconfig ; disks ; devlinks
7) #reboot -- -r
Problem Statement Top
A host that boots from a non-mirrored FCAL disk (either a Sun
StorEdge[TM] A5000 or the Sun Enterprise[TM] 3500 internal disks) will have
to overcome the hard-coded World Wide Number (WWN) that each of these
disks uses as an integral part of their device path.
On failure of the boot disk, the system administrator must ensure that this
WWN is correctly updated throughout the system to ensure it will reboot.
Resolution Top
Procedure :
1) The boot disk fails and is replaced by another disk with a different
WWN.
2) Boot the system into single user mode from the cdrom or network.
3) Label the replacement disk to match the slices from the failed disk.
4) Create filesystems on all the slices to be restored.
5) Mount the root filesystem and restore the data from backups.
6) Install the boot block onto the recovered root slice using the
"installboot" command. Refer to the installboot manpage for the syntax.
7) With root mounted under "/a" run the following commands to re-build
the devices tree :
/usr/sbin/drvconfig -r /a/devices -p /a/etc/path_to_inst
cd /devices
/usr/bin/find . -print | cpio -pduVm /a/devices
/usr/sbin/disks -r /a
/usr/sbin/devlinks -r /a
NOTE: It is currently necessary to use both "drvconfig" and "find | cpio"
due to bugid 4161768, drvconfig does not work properly with socal disks.
Configure the "boot-device" parameter in the EEPROM using the
"luxadm set_boot_dev /dev/dsk/{root slice entry}" command.
9) Restore the other filesystems on that disk, or comment out the
entries for them from /a/etc/vfstab. At the very least, you must have all the
Solaris filesystems (root, /var, /usr, /opt, etc.) recovered.
10) Reboot the system from the recovered disk. |
|