Veritas: Creating new disk groups


Standard disclaimer: Use the information that follows at your own risk. If you screw up a system, don't blame it on me...
mailto: dkoleary@olearycomputers.com

To create a new disk group under Veritas, you can either:

  1. Create a new disk group via the /usr/bin/vxdiskadd utility when adding disks to Veritas control

    OR

  2. Run the following commands:
    1. vxdisksetup -i c#t#d# [privlen=10240] // To add the disk to Veritas control
    2. vxdg init ${Group} ${disk}=c#t#d#
    3. vxdg -g ${Group} adddisk ${disk}+1=c#t#d# //iterate foreach disk
For example, to create a new disk group, doug, and add three disks to it:

for disk in c3t0d0 c3t0d1 c3t0d2
do
   vxdisksetup -i ${disk} # Uses default private area length
done

vxdg init doug doug01=c3t0d0
for x in 1 2
do
   y=((x+1))
   vxdg -g doug adddisk doug0${y}=c3t0d${x}
done


Document:
URL:
Last updated: