免费注册 查看新帖 |

Chinaunix

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

VxVM 3.5 更换根盘问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-12-18 14:25 |只看该作者 |倒序浏览
操作环境是V440/S8/VM3.5\r\n对根盘进行vxdiskadm->4,5操作后,出现UNKNOWN ERROR WHILE WRITTING VTOC错误导致不能从根盘启动,只能从镜像盘启动。\r\n更换操作成功\r\nvxdisk list正常\r\nvxprint -ht正常\r\n同步也已经完成\r\n请大侠指导该如何处理这个问题

论坛徽章:
0
2 [报告]
发表于 2007-12-19 02:49 |只看该作者
After you replaced the failed disk with a new one, vxdiskadm gave you the error\r\nabout VTOC. I doubt that the disk is not formatted (or labled) before using\r\nvxdiskadm. While initializing a disk, Veritas reads the existing VTOC and store\r\nthat in some other place. What is format command saying? Are you able to see the\r\npartition map of the disk using format? Anyhow, Veritas succeeded initializing the\r\ndisk and the volumes were mirrored again.\r\n   Veritas and UFS are aware of the first few blocks on a disk where the VTOC is\r\nstored. So mirroring volumes don\'t mirror the VTOC. Also the \'bootblk\' record. I\r\nthink you have to install the bootblk again on the disk, I am not sure here.\r\n\r\n\r\nPlease find below the detailed procedure for remirroring your primary\r\nsystems disk [c0t0d0]:\r\n\r\nMake sure system is bootable off mirrored disk.\r\n1. Disassociate all mirrors located on c0t0d0:\r\nvxplex dis opt-01 rootvol-01 swapvol-01 usr-01 var-01\r\n2. Remove disassociated plexes:\r\nvxedit -rf rm opt-01 rootvol-01 swapvol-01 usr-01 var-01\r\n3. Remove disk from rootdg:\r\nvxdg rmdisk rootdisk\r\n4. Remove disk out of Volume manager control:\r\nvxdisk rm c0t0d0s2\r\n5. Format disk, zero out all partitions exept part. 2 and write new label:\r\nformat -> c0t0d0s2 -> part -> zero out all partions exept part 2.\r\nlabel\r\n6. Check newly written partition table with prtvtoc /dev/dsk/c0t0d0s2:\r\nOnly partition 2 [s2] should be visible.\r\n7. Bring c0t0d0 under volume manager control:\r\n/etc/vx/bin/vxdisksetup -i c0t0d0\r\n8. Add disk to rootdg:\r\nvxdg -g rootdg adddisk rootdisk=c0t0d0\r\n9. Check that c0t0d0 is member of rootdg:\r\nvxdisk list\r\n10. Mirror rootvol:\r\n/etc/vx/bin/vxrootmir rootdisk\r\n11. Check result:\r\nvxprint -ht\r\n12. Check that all Volume manager tasks have finished:\r\nvxtask list\r\n13. Shutdown system\r\n14. Boot off c0t0d0\r\n15. If successful, mirror the rest of systems disk one partition at the\r\ntime:\r\ncommand line [swap, /usr, /var, /opt]\r\n16. Check result:\r\nvxprint -ht and vxtask list\r\n17. Once all volume manager tasks have finished, shutdown the system and\r\nboot off c0t0d0.

论坛徽章:
0
3 [报告]
发表于 2007-12-19 10:08 |只看该作者
高人时时有,今年特别多...

论坛徽章:
0
4 [报告]
发表于 2007-12-19 21:32 |只看该作者
未打补丁的话 执行 4  5  步骤是否安全我的确 不敢肯定.因为我也没遇见过.\r\n    对于更换根盘 我是有换过的.是台280 的主机. 如果可以停机重启从备盘起来,采用我上帖 后面的步骤就是用命令行操作.\r\n    如果是在线更换我曾经的步骤 是 :\r\n   1. vxdiskadm  -- >  4 \r\n   2.  dumpadm -d /dev/dsk/c1t0d0s1\r\n   3. luxadm remove_device /dev/dsk/c0t0d0 \r\n   4. 更换硬盘,插入新盘\r\n   5. vxdctl enable\r\n   6. vxdisksetup -i c0t0d0\r\n   7. vxdiskadm --> 5 \r\n   8. dumpadm -d /dev/dsk/c0t0d0s1
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP