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