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