vxresize syntax not clear
Hi,
to resize (expand ) a vxfs filesystem, based on volume home, I would do something like
this:
1.This is my mirrored layout:
v home - ENABLED ACTIVE 58720256 ROUND - fsgen
pl HOME_0 home ENABLED ACTIVE 58720256 CONCAT - RW
sd HOME_00 HOME_0 DECALOG00 0 58720256 0 EMC0_0 ENA
pl home_0 home ENABLED ACTIVE 58720256 CONCAT - RW
sd home_00 home_0 decalog00 0 58720256 0 EMC1_0 ENA
2. These are my disks
#vxdg free
GROUP DISK DEVICE TAG OFFSET LENGTH FLAGS
decalog DECALOG00 EMC0_0 EMC0_0 58721312 47273696 -
decalog decalog00 EMC1_0 EMC1_0 58720256 47274752 -
3. make two new subdisks:
vxmake -g decalog sd HOME_01 disk=DECALOG00 offset=58721312 len=42000000
vxmake -g decalog sd home_01 disk=decalog00 offset=58720256 len=42000000
4. associate the subdisk with the existing plexes
vxsd assoc HOME_0 HOME_01
vxsd assoc home_0 home_01
5. grow Volume and Filesystem
vxresize -F vxfs -g decalog home <new length>
The syntax of the resize command is not clear to me. The new size of the volume should be
58720256 + 42000000 = 100720256 ( blocks )
So is this the correct command:
vxresize -F vxfs -g decalog home 100720256 ( growto?? )
or this one
vxresize -F vxfs -g decalog home + 42000000 (growby?? )
or a different other syntax???
Veritas 5.0 / Solaris 10
THX!
Heinz
- Heinz,
Both are valid - note that the second command shouldn't have a space between the plus-sign and the number though, ie:
vxresize -F vxfs -g decalog home 100720256 OR
vxresize -F vxfs -g decalog home +42000000 ## <--- note there is no space
If you want to make sure it only expands the volume (ie: you don't make a typo and resize the volume to the growby increment by accident), use the -x option:
vxresize -x -F vxfs -g decalog home +42000000
(-x requires the operation is an increase, fails otherwise)
If you wanted to be less specific about blocks you could also specify as k, m, g eg: vxresize -x -F vxfs -g <dg> <vol> +10g would grow the volume by 10g
Also note it wasn't necessary to associate the subdisks beforehand - vxresize would do that for you. If that was done to specify which disks you wanted to grow onto, that could have been achieved by specifying the medianames, ie:
vxresize -x -F vxfs -g decalog home +42000000 DECALOG00 decalog00
Refer to the man page if wish to verifycheck further details:
http://sfdoccentral.symantec.com/sf/5.0MP3/solaris/manpages/vxvm/man1m/vxresize.html
Hope that helps.