免费注册 查看新帖 |

Chinaunix

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

vxvm对UNKNOWN ERROR WHILE WRITING VTOC得处理 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-13 23:39 |只看该作者 |倒序浏览
在VERITAS Volume Manager更换硬盘时,使用vxdiskadm  #4  和 #5选项报:

UNKNOWN ERROR WHILE WRITING VTOC

Continue with operation? [y,n,q,?] (default: y)

     UNKNOWN ERROR WHILE WRITTING VTOC
     dd: /dev/rdsk/c0t0d0s0: open: I/O error
     UNKNOWN ERROR WHILE WRITTING VTOC
     UNKNOWN ERROR WHILE WRITTING VTOC

     /etc/vx/bin/vxbootsetup rootdisk
     UNKNOWN ERROR WHILE WRITTING VTOC
     dd: /dev/rdsk/c2t0d0s0: open: I/O error
     UNKNOWN ERROR WHILE WRITTING VTOC

解决办法:

This example shows the procedure for replacement of system disk c0t0d0. The operation is to initialize disk device c0t0d0 and to then use that device to replace the removed or failed rootdisk.

Make sure system is bootable off mirrored disk.

1. Disassociate all mirrors located on c0t0d0:

     # vxplex dis opt-01 rootvol-01 swapvol-01 usr-01 var-01

2. Remove disassociated plexes:

     # vxedit -rf rm opt-01 rootvol-01 swapvol-01 usr-01 var-01

3. Remove disk from rootdg:

     # vxdg rmdisk rootdisk

4. Remove disk out of Volume manager control:

     # vxdisk rm c0t0d0s2

5. Format disk, zero out all partitions except partition 2 and write new label:

     # format
         -> c0t0d0s2
           -> partition
             -> zero out all partitions except partition 2.
               -> label

6. Check newly written partition table with prtvtoc /dev/dsk/c0t0d0s2:

       Only partition 2 [s2] should be visible.

7. Bring c0t0d0 under volume manager control:

     # /etc/vx/bin/vxdisksetup -i c0t0d0

8. Add disk to rootdg:

     # vxdg -g rootdg adddisk rootdisk=c0t0d0s2

9. Check that c0t0d0 is member of rootdg:

     # vxdisk list

10. Mirror rootvol:

      # /etc/vx/bin/vxrootmir rootdisk

11. Check result:

      # vxprint -ht

12. Check that all Volume manager tasks have finished:

      # vxtask list

13. Make certain that the new disk is bootable by running the command

      # vxbootsetup -g rootdg rootdisk

13. Shutdown system

14. Boot off c0t0d0

15. If successful, mirror the rest of system disk one partition at a time: [swapvol, usr, var, opt]

      # vxassist -g rootdg mirror swapvol rootdisk

16. Check result:

      # vxprint -ht and vxtask list

17. Once all volume manager tasks have finished, shutdown the system and boot off c0t0d0.

之前在换根盘时,遇到过这个问题,现在拿出来跟大家分享,希望对您有帮助



后来得知是vxvm 3.0.x 得一个BUG 打相应得补丁就可以解决

Version       Solaris[TM]    Patch-release
3.1.1m-ib       2.6          112200-02
3.1.1m-ib        7           112201-02
3.1.1m-ib        8           112202-02

3.1.1           2.6          110451-06
3.1.1            7           110452-06
3.1.1            8           111118-07

3.2           2.6/7/8        113201-05

3.2s9            9           112385-06

3.5            7/8/9         112392-05

4.0            7/8/9         115217-03

论坛徽章:
2
IT运维版块每日发帖之星
日期:2016-03-19 06:20:00数据库技术版块每日发帖之星
日期:2016-07-05 06:20:00
2 [报告]
发表于 2008-08-14 09:32 |只看该作者
不错,步骤很清析。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP