Problem

When creating a new volume vxassist fails with:

# vxassist -g dbdg make mp1vol 500M
VxVM vxassist ERROR V-5-1-15315 Cannot allocate space for 512000 block volume: Not enough HDD devices that meet specification.

Yet checking space for another volume in the same diskgroups shows that there is actually plenty of diskspace:

# vxassist -g dbdg maxgrow oracle
Volume oracle can be extended by 78094336 to: 104308736 (101864Mb)

Solution

The volume creation fails because the site tag is missing in the diskgroup:

vxprint -G | awk 'NR>1 { print $2 }' | grep -ve rootdg | while read DG
> do
>       echo DG=$DG
>       vxprint -mg $DG | grep -e '^site loc1' -e '^site loc2'  
> done
DG=appdg
site loc1
site loc2
DG=dbdg
DG=systemdg

shows that dbdg has no site tag.

Set the site tag now:

# vxdg -g dbdg addsite loc1

Check again:

vxprint -G | awk 'NR>1 { print $2 }' | grep -ve rootdg | while read DG
> do
>       echo DG=$DG
>       vxprint -mg $DG | grep -e '^site loc1' -e '^site loc2'  
> done
DG=zppdg
site loc1
site loc2
DG=dbdg
site loc1
DG=systemdg

Now try the vxassist again:

# for VOL in mp1 mp2 mp3 mp4
> do
>       vxassist -g dbdg make ${VOL}vol 500M
>       newfs -F vxfs /dev/vx/rdsk/dbdg/${VOL}vol
> done
version 7 layout
512000 sectors, 512000 blocks of size 1024, log size 1024 blocks
largefiles supported
version 7 layout
512000 sectors, 512000 blocks of size 1024, log size 1024 blocks
largefiles supported
version 7 layout
512000 sectors, 512000 blocks of size 1024, log size 1024 blocks
largefiles supported
version 7 layout
512000 sectors, 512000 blocks of size 1024, log size 1024 blocks
largefiles supported

# vxvol -g dbdg startall

Comments