Veritas Volume Manager Tasks

Using slices to create minimal rootdg

veritas already installed

vxdctl add disk c0t0d0s4 type=simple
vxdisk -f init c0t0d0s4 type=simple
vxdg adddisk disk01=c0t0d0s4

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

Replace a disk in A5000
  1. run “vxdiskadm” select option 4 to “remove a disk for replacement”
  2. run option 11 to take disk offline
  3. run luxadm remove_device [-f] <array>,<slot> (remember to do this both sides in a cluster)
  4. replace disk
  5. run luxadm insert_device <array>,<slot>          (remember to do this both sides in a cluster)
  6. run vxdctl enable
  7. run “vxdiskadm” select option 5 to “replace a failed or removed disk”
  8. run "vxtask list" to make sure volumes have been sync'd if mirrors are involved

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>