免费注册 查看新帖 |

Chinaunix

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

请问VXVM下更换硬盘的步骤 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-01-04 17:52 |只看该作者 |倒序浏览
请问下,两台双机,一主一备,接的阵列,现在阵列上有坏硬盘,主机上也有坏盘,要更换,我是新人,两台设备都是solaris8,硬盘都是用VXVM做的,请问下,具体怎么个更换步骤,谢谢了

论坛徽章:
0
2 [报告]
发表于 2009-01-04 20:34 |只看该作者
光提供这些信息不够,阵列是什么阵列,做的raid几?系统里也有坏盘是什么意思?卷坏了?还是本地硬盘坏了?
给出如下信息:
#format
#vxdisk list
#vxprint -ht
#dmesg
#scstat
#sccli
sccli> show config

论坛徽章:
0
3 [报告]
发表于 2009-01-05 02:26 |只看该作者
root@scp2 # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <drive type unknown>
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/scsi@3/sd@1,0
       2. c2t9d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@9,0
       3. c2t10d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@a,0
       4. c2t11d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@b,0
       5. c2t12d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@c,0
       6. c2t13d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@d,0
       7. c2t14d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@e,0
       8. c3t9d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@9,0
       9. c3t10d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@a,0
      10. c3t11d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@b,0
      11. c3t12d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@c,0
      12. c3t13d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@d,0
      13. c3t14d0 <drive type unknown>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@e,0
Specify disk (enter its number): ^D
root@scp2 # vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    -            -            error
c0t1d0s2     sliced    rootmirr_2   rootdg       online
c2t9d0s2     sliced    -            -            online
c2t10d0s2    sliced    scp2dg1      scp2dg       online
c2t11d0s2    sliced    -            -            online
c2t12d0s2    sliced    -            -            online
c2t13d0s2    sliced    data2dg1     data2dg      online
c2t14d0s2    sliced    data2dg2     data2dg      online
c3t9d0s2     sliced    -            -            online
c3t10d0s2    sliced    scp2dg2      scp2dg       online
c3t11d0s2    sliced    -            -            online
c3t12d0s2    sliced    -            -            online
c3t13d0s2    sliced    data2dg3     data2dg      online
c3t14d0s2    sliced    -            -            error
-            -         rootdisk_2   rootdg       failed was:c0t0d0s2
-            -         data2dg4     data2dg      failed was:c3t14d0s2
root@scp2 #

论坛徽章:
0
4 [报告]
发表于 2009-01-05 02:26 |只看该作者
root@scp1 # format
Searching for disks...done

c0t1d0: configured with capacity of 33.92GB


AVAILABLE DISK SELECTIONS:
       0. c0t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/scsi@3/sd@0,0
       1. c0t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/scsi@3/sd@1,0
       2. c2t9d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@9,0
       3. c2t10d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@a,0
       4. c2t11d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@b,0
       5. c2t12d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@c,0
       6. c2t13d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@d,0
       7. c2t14d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@2/SUNW,isptwo@4/sd@e,0
       8. c3t9d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@9,0
       9. c3t10d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@a,0
      10. c3t11d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@b,0
      11. c3t12d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@c,0
      12. c3t13d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@d,0
      13. c3t14d0 <drive type unknown>
          /pci@1f,4000/pci@4/SUNW,isptwo@4/sd@e,0
Specify disk (enter its number): ^D
root@scp1 # vxdisk list
DEVICE       TYPE      DISK         GROUP        STATUS
c0t0d0s2     sliced    rootdisk_1   rootdg       online
c0t1d0s2     sliced    -            -            error
c2t9d0s2     sliced    scp1dg1      scp1dg       online
c2t10d0s2    sliced    -            -            online
c2t11d0s2    sliced    data1dg1     data1dg      online
c2t12d0s2    sliced    data1dg2     data1dg      online
c2t13d0s2    sliced    -            -            online
c2t14d0s2    sliced    -            -            online
c3t9d0s2     sliced    scp1dg2      scp1dg       online
c3t10d0s2    sliced    -            -            online
c3t11d0s2    sliced    data1dg3     data1dg      online
c3t12d0s2    sliced    data1dg4     data1dg      online
c3t13d0s2    sliced    -            -            online
c3t14d0s2    sliced    -            -            error
-            -         rootmirr_1   rootdg       failed was:c0t1d0s2
root@scp1 #

论坛徽章:
0
5 [报告]
发表于 2009-01-05 02:27 |只看该作者
主机做的RAID1,阵列做的RAID5

论坛徽章:
0
6 [报告]
发表于 2009-01-05 08:54 |只看该作者
1. #vxdg -k -g dbgrp<dg name> rmdisk dbgrp10<disk name> 先删除坏盘
2. #vxdiskadm  初始化你重新插上的盘
选1,选中已经删除的磁盘,c3t3d0,选择他不属于任何组,<none>,其他选项都默认。
3. #vxdg -k -g dbgrp adddisk dbgrp10=c3t3d0s2 把它加入到原来的组里
4. #vxrecover -bs
5. #vxplex -g dbgrp -o force att vol01-L04 vol01-P07 &  后台执行,重新镜像
6. #vxtask list 观察重镜像进度
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP