免费注册 查看新帖 |

Chinaunix

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

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

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

论坛徽章:
0
2 [报告]
发表于 2007-12-19 02:49 |只看该作者
After you replaced the failed disk with a new one, vxdiskadm gave you the error
about VTOC. I doubt that the disk is not formatted (or labled) before using
vxdiskadm. While initializing a disk, Veritas reads the existing VTOC and store
that in some other place. What is format command saying? Are you able to see the
partition map of the disk using format? Anyhow, Veritas succeeded initializing the
disk and the volumes were mirrored again.
   Veritas and UFS are aware of the first few blocks on a disk where the VTOC is
stored. So mirroring volumes don't mirror the VTOC. Also the 'bootblk' record. I
think you have to install the bootblk again on the disk, I am not sure here.


Please find below the detailed procedure for remirroring your primary
systems disk [c0t0d0]:

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 exept part. 2 and write new label:
format -> c0t0d0s2 -> part -> zero out all partions exept part 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=c0t0d0
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. Shutdown system
14. Boot off c0t0d0
15. If successful, mirror the rest of systems disk one partition at the
time:
command line [swap, /usr, /var, /opt]
16. Check result:
vxprint -ht and vxtask list
17. Once all volume manager tasks have finished, shutdown the system and
boot off c0t0d0.

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

论坛徽章:
0
4 [报告]
发表于 2007-12-19 20:57 |只看该作者
原帖由 fuck-sun 于 2007-12-19 02:49 发表
After you replaced the failed disk with a new one, vxdiskadm gave you the error
about VTOC. I doubt that the disk is not formatted (or labled) before using
vxdiskadm. While initializing a disk, ...

这位兄弟 谢谢你的回复
首先我已经lable过了我的新加入的磁盘
这些步骤你有没有亲自操作过呢
我也在一个英文网站上看到你这个同样的回复
https://forums.symantec.com/syme ... amp;message.id=1568

我查到这个错误的情况是VxVM的一个BUG,需要打系统补丁112392-05以上版的补丁。谢谢。
现在关键的问题是在未打112392-05补丁的时候直接从vxdiskadm操作4,5步骤是否安全,也许可以用命令行的方式来操作。

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP