- 论坛徽章:
- 0
|
可以dd的,只不过dd完后你要适当的处理光纤盘的wwn号,下面这些内容是在网上找的,你参考一下吧:
sun小型计算机光纤接口系统盘坏后的恢复方法
********问题描述:
目前大多光纤硬盘都有wwn号码,这类服务器系统根盘出现故障时更换硬盘、恢复操作系统,系统是无法正常启动的,如果原来系统采用了disksuite,处理过程更加复杂。
更换的过程中必须适当地处理光纤盘的wwn号,对于disksuite镜像的系统盘还需考虑到镜像的适当处理。
*******解决该问题采取的措施:
1) The boot disk fails and is replaced by another disk with a different WWN.
2) Boot the system into single user from the cdrom or network:boot cdrom -s
3) Label the replacement disk to match the slices from the failed one.
可以用prtvtoc备份原有硬盘分区信息,用fmthard 恢复到新硬盘上。
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.
7) With root mounted under "/a" run the following commands to re-build
the 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
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 least you must have all the
Solaris filesystems (root, /var, /usr, /opt, etc.) recovered.
补充一点:
如果原有系统根盘采用disksuite做了镜像的话,先在缺省引导盘上做1-9步,完毕后做以下步骤:
备份/etc/system,然后将里面的disksuite root信息、内核驱动信息全部删除干净。
* Begin MDD root info (do not edit)
forceload: misc/md_trans
forceload: misc/md_raid
forceload: misc/md_hotspares
forceload: misc/md_sp
forceload: misc/md_stripe
forceload: misc/md_mirror
forceload: drv/pcipsy
forceload: drv/glm
forceload: drv/sd
rootdev:/pseudo/md@0:0,10,blk
* End MDD root info (do not edit)
* Begin MDD database info (do not edit)
set md:mddb_bootlist1="sd:6:16 sd:6:1050 sd:6:2084 sd:14:16 sd:14:1050"
set md:mddb_bootlist2="sd:14:2084 sd:22:16 sd:30:16"
* End MDD database info (do not edit)
10、如果原有系统根盘采用disksuite做了镜像的话,需要将disksuite镜像配置信息清理掉
/etc/lvm/md.cf
10) Reboot the system from the recovered disk.
建议用reboot -- -r选项重启
12、如果原有系统根盘采用disksuite做了镜像的话,正常启动后按照标准做法重新配置disksuite镜像。 |
|