cancel
Showing results for 
Search instead for 
Did you mean: 

Resizing a volume didn't work

Laks
Level 2

Hi,

I was trying to resize a volume

# df -h /ab/dir1
Filesystem            Size  Used Avail Use% Mounted on
/dev/vx/dsk/Ab_DG/work
                       38G   16G   22G  41% /ab/dir1

vxassist maxgrow showed the following

# vxassist -g Ab_DG maxgrow work
Volume work can be extended by 19900416 to: 99592192 (48629Mb)

I used the command

#vxassist -g Ab_DG growto work 99592192

It returned no errors but when I checked the size again it has not changed.

# df -h /ab/dir1
Filesystem            Size  Used Avail Use% Mounted on
/dev/vx/dsk/Ab_DG/work
                       38G   16G   22G  41% /ab/dir1

When I tried to extend again

# vxassist -g Ab_DG maxgrow work
VxVM vxassist ERROR V-5-1-15319 Volume work cannot be extend within the given constraints: Not enough HDD devices that meet specification.

This means I have no free space. I am wondering where did the free space go if it did not add up to the volume. I restarted vxconfigd -k but that did not help. Can some one please explain and propose a solution

1 ACCEPTED SOLUTION

Accepted Solutions

mikebounds
Level 6
Partner Accredited

vxassist only extends the volume, not the filesystem.  You should normally use vxresize to resize volume AND filesystem.  You can use fsadm to extend the filesystem:

fsadm -b 99592192 /ab/dir1

See https://sort.symantec.com/public/documents/sfha/6.1/linux/manualpages/html/man/file_system/html/man1... for more details on using fsadm

Mike

View solution in original post

2 REPLIES 2

mikebounds
Level 6
Partner Accredited

vxassist only extends the volume, not the filesystem.  You should normally use vxresize to resize volume AND filesystem.  You can use fsadm to extend the filesystem:

fsadm -b 99592192 /ab/dir1

See https://sort.symantec.com/public/documents/sfha/6.1/linux/manualpages/html/man/file_system/html/man1... for more details on using fsadm

Mike

Laks
Level 2

Many thanks Mike. I got it now and it worked great