Using slices to create minimal rootdg
veritas already installed | vxdctl add disk c0t0d0s4 type=simple You can now remove/move the remain disks from rootdg |
veritas installed but not setup | vxconfigd –d ( if already started use vxconfig –m disabled) vxdctl init vxdg init rootdg vxdctl add disk c0t0s0s4 type=simple vxdisk -f init c0t0d0s4 type=simple vxdg adddisk disk01=c0t0d0s4 vxdctl enable rm /etc/vx/reconfig.d/state.d/install-db |
Restore a lost volume group (Volume manager 4.0)
Obtain a configuration file (if it exists):
# cd /etc/vx/cbr/bk/<diskgroup>.<diskgroupid>.<hostname>
You will see a file called "<diskgroupid>.<hostname>.cfgrec" this is the backed up configuration file for the disk group
Display the configuration file in readable format:
# cat <diskgroup>.<diskgroupid>.<hostname>.cfgrec | vxprint -D - -htr (This should show you all the volumes under the group)
To precommit the changes run the following:
# /etc/vx/bin/vxconfigrestore -p <diskgroup>
To commit the changes after the precommit:
# /etc/vx/bin/vxconfigrestore -c <diskgroup>
To abort the precommit:
# /etc/vx/bin/vxconfigrestore -d <diskgroup>
To confirm that disk group is ok:
# vxprint -g <diskgroup>