Unable to grow volume when site objects used in Diskgroup

Unable to grow volume when site objects used in Diskgroup

  • Article ID:100005402
  • Last Published:
  • Product(s):InfoScale & Storage Foundation

Problem

Unable to grow a volume even after new LUNs are added to Diskgroup.

Error Message

# vxresize -b -g datadg vol1 +100g

VxVM vxassist ERROR V-5-1-436 Cannot allocate space to grow volume

Cause

When site based allocation is enabled for a diskgroup, using vxdg addsite command, VxVM checks for

disk tags to match the site-name for allocation. In case of mirrored volumes, space should be available on

both sites configured for that volume.

 

Solution

Site Tag should be added to new LUNs to grow the volume.

Add Sitetag to the new LUNs

 # vxdisk -g datadg settag datadg03 site=local
 

Confirm the site tags on new LUNs.

# vxdisk -g datadg listtag 

DEVICE          NAME         VALUE
sda             site         local
sdb             site         remote
sdc             site         local
sdd             site         remote

Now check if volume can be grown to new LUN.

# vxassist -g datadg maxgrow vol1 

Grow the volume and filesystem.

# vxresize -b -g datadg vol1 +100g


Applies To

Systems with site based allocation configured for Diskgroups.

Identify whether any site names are associated with the Diskgroup.

# vxprint -htg datadg | grep ^sr
sr local      ACTIVE
sr remote     ACTIVE

In the above example 2 sitenames are used, local and remote. We can use any value for sitenames, refer to vxdg manpage for more details of this feature.

Identify site tags for the existing disks in Diskgroup.

# vxdisk -g datadg listtag

DEVICE          NAME         VALUE
sda             site         local
sdb             site         remote

We have 2 disks in datadg with site tags set to match Diskgroup site-name values.

Was this content helpful?