• 软件测试技术
  • 软件测试博客
  • 软件测试视频
  • 开源软件测试技术
  • 软件测试论坛
  • 软件测试沙龙
  • 软件测试资料下载
  • 软件测试杂志
  • 软件测试人才招聘
    暂时没有公告

字号: | 推荐给好友 上一篇 | 下一篇

880上更换系统盘 sds进行系统景象

发布: 2007-6-08 22:43 | 作者: seanhe | 来源: | 查看: 51次 | 进入软件测试论坛讨论

领测软件测试网
System information:
Fire v880 operates on Solaris 8 with 6 disks.disk1 was organized as mirror of root disk disk0 and disk2 disk3 disk4 disk5 were oragnized as a raid 5 volume by disksuite4.2 . 2 replicas were placed at disk0-5 slice 4 so that system can boot correctly in case there is one disk failure .

Error information:
metastat command display that logic devices at disk0 (c1t0d0s2) need maintenace .

solution:
replace the failed disk c1t0d0s2 (disk0)

procedure:
1. gether system information
check the meta device state
#metastat
#metadb –i
check the slice location 
#format
#more /vfstab
2. reboot from mirror disk
you can create the alias previously
ok nvalias disk1 /sbus@1f,0/espdma@e,8400000/esp@e,8800000/sd@1,0:a
pathname listed here is not in a 880 server but from a test machine Ultra1
ok setenv boot-device disk disk1
#reboot - - disk1
if there is no sufficient replicas , not in this case , when rebooting system will enter system maintenance due to the replica quorum .You can delete the replicas on the bad disk by:
#metadb –d –f c1t0d0s4
then you can boot system 
3. replace hard disk (hot plug)
#luxadm remove_device /dev/rdsk/c1t0d0s2
while OK-to-Remove LED is lighting  physically pull up the error disk from disk bay and insert the new disk. Then use command
#luxadm insert_device FCloop,s0
or 
#devfsadm –C
In the command luxadm enclosure_name can get by command 
#luxadm probe
Identify the new disk by compare the WWN number in the output of belowing command 
#format
#ls –al /dev/rdsk/c1t0d0s2 
4. repair replica database
#prtvtoc /dev/rdsk/c1t1d0s2 | fmthard - /dev/rdsk/c1t0d0s2
#metadb –a –c 2 /dev/rdsk/c1t0d0s4
5. resyncing the sub-mirrors
#metadetach d0 d10
#metadetach d1 d11
#metadetach d3 d13
#metadetach d5 d15
#metadetach d6 d16
#metadetach d7 d17
#metaclear d10 d11 d13 d15 d16 d17
#metainit d10 1 1 c1t0d0s0
#metainit d11 1 1 c1t0d0s1
#metainit d13 1 1 c1t0d0s3
#metainit d15 1 1 c1t0d0s5
#metainit d16 1 1 c1t0d0s6
#metainit d17 1 1 c1t0d0s7
#metattach d0 d10
#metattach d1 d11
#metattach d3 d13
#metattach d5 d15
#metattach d6 d16
#metattach d7 d17
#metastat |grep % 
#reboot
#metastat

tricks:
1. sds user guide had mentioned the command metareplace to auto replace error submirror .But we have failed in using this command .You can find the same problem at InfoPartner Document BugReports Doc ID: 4777440.
2. when you mirror the root disk you must use command installboot bootblk ,but when you replace the root disk you will not need the same procedure.



sorry for not give metastat result ,but I think you can get the logic device naming rule  from the procedure above.

 ugood 回复于:2003-12-18 19:10:06
此贴子为好贴子,但是俺的英文极差。所以我有几点意见不知道该不该提:
1、openboot 中,disk1这样的别名尽量不要起之。
2、应该使openboot的disk1生效,是不是应该如下*作:
# setenv use-nvramrc? true
3、状态数据库的副本没有必要每个硬盘两份吧?感觉一份足够了吧。

 x3y4z5 回复于:2003-12-19 09:37:02
this is the onsite notes detail procedure .Your opinion is right.

 sunmarmot 回复于:2003-12-19 10:42:05
靠!!你贴的真快

延伸阅读

文章来源于领测软件测试网 https://www.ltesting.net/


关于领测软件测试网 | 领测软件测试网合作伙伴 | 广告服务 | 投稿指南 | 联系我们 | 网站地图 | 友情链接
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073

软件测试 | 领测国际ISTQBISTQB官网TMMiTMMi认证国际软件测试工程师认证领测软件测试网