How to quickly troubleshoot and resolve resize issues

book

Article ID: 100029750

calendar_today

Updated On:

Resolution

If a resize does not succeed, in addition to the exact command executed and the error message, you'll need the following:
# vxprint-ht volume_name
# df-k  
# vxdg -gdiskgroup free
# fstyp -v/dev/vx/dsk/diskgroup/volume
# vxassist-g diskgroup maxgrow volume_name
 
Some things to make sure, are checked
 
a) Is the filesystem 100% full?
============================================================================
If so, it will likely fail with error number 28. You'll need to either move files out, or try resizing the filesystem by a smaller number. If you were trying to grow it by 10gb, try growing it 100MB first.You should be able to get around a 100% full filesystem using this method.
 
Does it have enough space?
===============================================================================
Check out 'vxdgfree' if it's complaining that it cannot allocate space to grow the volume. It should show you all free sectors in the diskgroup that can be used for resize.
 
Is growing this filesystem to XXXX supported?
==================================================================================
'fstyp -v' wil lreport the version and block size (bsize). Consult the release notes for VxFS to determine the maximum volume/filesystem size supported. There likely maybe a need to upgrade the filesystem
layout version.
 
If thefilesystem layout is at version 4, it will be able to have a maximum filesystem size of 1 Terabyte (TB).
 
fsadm will complain and give a message saying that sectors must be <= 1 TB when you try to go beyond this limit.
 
Solution:
#/opt/VRTS/bin/vxupgrade -n 5 /mountpoint
Note: the blocksize can only be changed by recreating the filesystem,
and specifing the bsize=xxxx argument in mkfs
 
 
Is the resize failing with Error Number 16?
===================================================================================
It means the filesystem is either too busy to be grown or needs a full fsck / defragmentation. Trying this during a time of light load,
 
And/OR
 
Perform an fsck on this filesystem will get around #16.
 
 
Caveats:
===================================================================================
When growing a striped volume, you'll need space on a separate device for every column in the Diskgroup.
Therefore, if you have a 6 column striped volume, you'll need space on 6 unique devices in order to grow it.
 
If the need is to grow a UFS filesystem, below steps are needed
 
a) First grow the volume
#vxassist -gdatadg growby 100g datavol
 
b) Now specify the entire path to the mkfs command (Failure to do so can and will result in loss of data).
 
#/usr/lib/fs/ufs/mkfs -M
example:
#/usr/lib/fs/ufs/mkfs -M /u01 /dev/vx/rdsk/datadg/datavol 1234567
 
You should run "vxprint -ht " after growing it and use the same sector count as the last argument.
 
 

 

Issue/Introduction

How to quickly troubleshoot and resolve resize issues