Problem:
Resizing avolume with a usage type other than FSGEN or RAID5 can result in loss of data.Use the -f option to force resizing of such a volume. However the -f option willnot work for usage type root or swap, as non-contiguous grows/shrinks are notallowed.
#vxprint -g rootdg -ht
dgrootdg default default 0 1059685389.1025.cshp7
dmrootdisk01 c1t15d0 simple 1024 8887089 -
v homevol - ENABLED ACTIVE 20480 SELECT - fsgen
plhomevol-01 homevol ENABLED ACTIVE 20480 CONCAT - RW
sdrootdisk01-08 homevol-01 rootdisk01 6668288 20480 0 c1t15d0 ENA
v optvol - ENABLED ACTIVE 1843200 SELECT - fsgen
ploptvol-01 optvol ENABLED ACTIVE 1843200 CONCAT - RW
sdrootdisk01-04 optvol-01 rootdisk01 1036288 18432000 c1t15d0 ENA
v rootvol - ENABLED ACTIVE 204800 ROUND - root
plrootvol-01 rootvol ENABLED ACTIVE 204800 CONCAT - RW
sdrootdisk01-03 rootvol-01 rootdisk01 831488 204800 0 c1t15d0 ENA
v standvol - ENABLED ACTIVE 307200 ROUND - fsgen
plstandvol-01 standvol ENABLED ACTIVE 307200 CONCAT - RW
sdrootdisk01-01 standvol-01 rootdisk01 0 307200 0 c1t15d0 ENA
v swapvol - ENABLED ACTIVE 524288 ROUND - swap
plswapvol-01 swapvol ENABLED ACTIVE 524288 CONCAT - RW
sdrootdisk01-02 swapvol-01 rootdisk01 307200 524288 0 c1t15d0 ENA
v tmpvol - ENABLED ACTIVE 204800 SELECT - fsgen
pltmpvol-01 tmpvol ENABLED ACTIVE 204800 CONCAT - RW
sdrootdisk01-05 tmpvol-01 rootdisk01 2879488204800 0 c1t15d0 ENA
v usrvol - ENABLED ACTIVE 2048000 SELECT - fsgen
plusrvol-01 usrvol ENABLED ACTIVE 2048000 CONCAT - RW
sdrootdisk01-06 usrvol-01 rootdisk01 3084288 20480000 c1t15d0 ENA
v varvol - ENABLED ACTIVE 1536000 SELECT - fsgen
plvarvol-01 varvol ENABLED ACTIVE 1536000 CONCAT - RW
sdrootdisk01-07 varvol-01 rootdisk01 5132288 15360000 c1t15d0 ENA
#/opt/VRTS/bin/vxresize -g rootdg rootvol 300m
vxvm:vxresize:ERROR: resizing volume other than FSGEN or RAID5 can result in loss ofdata. Use -f option to force resize this volume.
#/opt/VRTS/bin/vxresize -g rootdg -f rootvol 300m
vxvm:vxresize:ERROR: vxvm:vxassist: ERROR: non-contiguous grows are not allowed for rootmirrors
vxvm:vxresize:ERROR: Problem running vxassist command for volume rootvol, in diskgrouprootdg
#/opt/VRTS/bin/vxresize -g swapvol -f rootvol 600m
vxvm:vxresize:ERROR: vxvm:vxassist: ERROR: non-contiguous grows are not allowed for rootmirrors
vxvm:vxresize:ERROR: Problem running vxassist command for volume swapvol, in diskgrouprootdg
Solution:
The size ofrootvol and swapvol can only be changed during the OS installation orignite. However, other volumes with usage type FSGEN such ashomevol, optvol, usrvol, and varvol can be resized.