免费注册 查看新帖 |

Chinaunix

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

sun e3500掉根盘后无法找到 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-09-19 11:47 |只看该作者 |倒序浏览
一台SUN E3500,一直运行的很好,最近发现系统有问题。机器关机重启后在24小时内根系统磁盘就找不到了,几乎所有命令均不管用,只有按STOP-A进入OK模式,但还是无法boot系统。下电后拔出磁盘重新插回,有时系统能起来,也利用这个时机ufsdump了根系统,和一些数据。怀疑是磁盘出问题,现在想用dd命令进行盘对盘复制,由于是光纤硬盘,不知可不可以?

论坛徽章:
0
2 [报告]
发表于 2006-09-19 11:57 |只看该作者
光纤dd似乎是不行,不知道蜘蛛有没有经验。

论坛徽章:
0
3 [报告]
发表于 2006-09-19 12:00 |只看该作者
可以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镜像。

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
4 [报告]
发表于 2006-09-19 12:03 |只看该作者

论坛徽章:
0
5 [报告]
发表于 2006-09-19 13:40 |只看该作者

谢谢各位大侠相助,我试一下

谢谢各位大侠相助,我试一下

论坛徽章:
0
6 [报告]
发表于 2006-09-19 14:01 |只看该作者
光纤盘为说明不行呢?是因为/device/??????????????????/fp@0,0/wwn???/dev/dsk/c?t?d?s?变了了,说白了就是wwn号变了,而scsi就不存在这个问题。正是这个结。

设备树更新一下就可以了,坛子里面的帖子不少
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP