免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1755 | 回复: 3
打印 上一主题 下一主题

使用dd命令复制光纤硬盘wwn的修改 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-08-26 15:00 |只看该作者 |倒序浏览
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.

论坛徽章:
0
2 [报告]
发表于 2004-08-26 15:02 |只看该作者

使用dd命令复制光纤硬盘wwn的修改

精华区里面有

论坛徽章:
0
3 [报告]
发表于 2004-08-26 16:26 |只看该作者

使用dd命令复制光纤硬盘wwn的修改

这个方法以前实验过比较好。楼主很用心。谢谢。

论坛徽章:
0
4 [报告]
发表于 2004-08-26 17:38 |只看该作者

使用dd命令复制光纤硬盘wwn的修改

我也证明没问题,V480上面试过
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP