Unable to resize VxFS file system using vxresize

book

Article ID: 100021227

calendar_today

Updated On:

Resolution

In some cases when a file system becomes fragmented it will not be possible to resize the filesystem/volume.


#/opt/VRTS/bin/fsadm -DE /vol1


Directory Fragmentation Report
Dirs Total Immed Immeds Dirs to Blocks to
Searched Blocks Dirs to Add Reduce Reduce
total 1744 1284 1024 7 19 52

Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
17104 216 13 460790
blocks used for indirects: 3550
% Free blocks in extents smaller than 64 blks: 100.00
% Free blocks in extents smaller than 8 blks: 100.00
% blks allocated to extents 64 blks or larger: 91.43
Free Extents By Size
1: 193388 2: 133701 4: 0
8: 0 16: 0 32: 0
64: 0 128: 0 256: 0
512: 0 1024: 0 2048: 0
4096: 0 8192: 0 16384: 0
32768: 0 65536: 0 131072: 0
262144: 0 524288: 0 1048576: 0
2097152: 0 4194304: 0 8388608: 0
16777216: 0 33554432: 0 67108864: 0
134217728: 0 268435456: 0 536870912: 0
1073741824: 0 2147483648: 0
 

After the defrag the fragmentation report on the filesystem is:


#fsadm -DE /vol1


Directory Fragmentation Report
Dirs Total Immed Immeds Dirs to Blocks to
Searched Blocks Dirs to Add Reduce Reduce
total 1744 1276 1024 7 19 941

Extent Fragmentation Report
Total Average Average Total
Files File Blks # Extents Free Blks
17172 198 2 463592
blocks used for indirects: 576
% Free blocks in extents smaller than 64 blks: 39.88
% Free blocks in extents smaller than 8 blks: 10.78
% blks allocated to extents 64 blks or larger: 91.83
Free Extents By Size
1: 9174 2: 6131 4: 7137
8: 2827 16: 2859 32: 2079
64: 1131 128: 502 256: 155
512: 38 1024: 11 2048: 3
4096: 2 8192: 3 16384: 2
32768: 0 65536: 0 131072: 0
262144: 0 524288: 0 1048576: 0
2097152: 0 4194304: 0 8388608: 0
16777216: 0 33554432: 0 67108864: 0
134217728: 0 268435456: 0 536870912: 0
1073741824: 0 2147483648: 0

and the vxresize command was successful.

 

So if encountering an error when using the vxresize command to grow the volume/filesystem, be sure to check the fragmentation report of the filesystem. If the filesystem is fragmented, then run the defrag (fsadm -de) command and then re-retry the vxresize command.

Issue/Introduction

Unable to resize VxFS file system using vxresize