- 论坛徽章:
- 0
|
在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 |
|