1753852 Members
8012 Online
108808 Solutions
New Discussion юеВ

lvextend help

 
Yogesh Yadav
Occasional Advisor

lvextend help

hi
i have a server with 11.23, need to extend lv 100 gb, current size is also 100gb .this is production server , after that i need to extend file system same.

can you tell me in command mode how i do??

lv name

/dev/cs04p2l5/archcs03
4 REPLIES 4
Hasan  Atasoy
Honored Contributor

Re: lvextend help

hi;

if you dont have onlinejfs than

umount the corresponding filesystem
lvextend -L 200 /dev/cs04p2l5/archcs03
extendfs /dev/cs04p2l5/rarchcs03
mount the filesystem

Hasan
Kenan Erdey
Honored Contributor

Re: lvextend help

hi,

if you have online jfs, after extending lvol with lvextend, do:

fsadm -F vxfs -b 204800000 /

Computers have lots of memory but no imagination
Taifur
Respected Contributor

Re: lvextend help

Hi Yogesh,

For lvextend follow as follows,

#umount /mountpoint
# lvextend -L 204800 /dev/cs04p2l5/archcs03
# extendfs -F vxfs /dev/vg02/rarchcs03
#mount /dev/cs04p2l5/archcs03 /mountpoint

204800MB=200GB= (currentsize+newsize)

For Example,

#umount /dcs_appl01
# lvextend -L 25600 /dev/vg02/lvol1
# extendfs -F vxfs /dev/vg02/rlvol1
#mount /dev/vg02/lvol1 /dcs_appl01

Rgds//
Taifur
sujit kumar singh
Honored Contributor

Re: lvextend help

Hi

to make sure that you have the OnlineJFS product installed you can have a look as

#swlist -l product | grep -i online

Also that the Product is validly Licensed, use

#vxlicense -p

If these are true then you can go for the extension of the FS as suggested in the earlier posts without getting the FS unmoounted and the applications accessing that FS runing.

If nit then you have to do that by unmounting, lvextend,extendfs and mount, and with that you shall have to stop the applications/ Databases stopped those are accessing this FS.

regards
sujit