1833784 Members
2274 Online
110063 Solutions
New Discussion

Re: lvextend

 
Bona_1
Frequent Advisor

lvextend

Hello all,
yet another question. I used the command "lvextend" to expand an lvol, and the system acknowledged that the lvol had been expanded. however, when i run "bdf", it still shows the old size of the lvol, and installing applications in the lvol keep complaining about insufficient space. running a "vgdisplay -v" on the volume group however, it shows the expanded size. Can anyone tell me how to get the increase to show up with a "bdf"?

Thanks
Bona
7 REPLIES 7
Bryan D. Quinn
Respected Contributor

Re: lvextend

Hello Bona,

You need to extend the file system:

EXAMPLE:
extendfs -F vxfs /dev/vgXX/rlvolX

Hope this helps!
-Bryan
Pete Randall
Outstanding Contributor

Re: lvextend

Bona,

From the man page for extendfs:

EXAMPLES
To increase the capacity of a file system created on a logical volume,
enter:

umount /dev/vg00/lvol1

lvextend -L larger_size /dev/vg00/lvol1

extendfs -F hfs /dev/vg00/rlvol1

mount /dev/vg00/lvol1 mount_directory


Pete

Pete
Jeroen Peereboom
Honored Contributor

Re: lvextend

Bona,

SAM will do it all for you, extending both lvol and fs.

JP.
Rita C Workman
Honored Contributor

Re: lvextend

..or another way...

check and see if you have OnlineJFS. If you do than you can increase using:

fsadm -F vxfs -b m /mountpoint

yes that is a small letter m directly after the size (no space in between).

Rgrds,
Rita
Sanjay_6
Honored Contributor

Re: lvextend

Hi,

To extend the size of a lv, you have to use two commands,

lvextend / extendfs if you don't have onlineJFS.
lvextend / fsadm if you have onlineJFS.

If you don't have onlineJFS, do a lvextend, unmount the filesystem and do a extendfs to extend the size of the filesystem.

If you have OnlineJFS, do a lvextned and then do fsadm -b /mount_point to extend the size of the filesystem without unmounting the filesystem.

Hope this helps.

Regds
Geoff Wild
Honored Contributor

Re: lvextend

As others have said, lvextend and extendfs or fsadm.

Here's a good doc on Managing File Systems:

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/5187-2216/5187-2216_top.html&con=/hpux/onlinedocs/5187-2216/00/00/54-con.html&toc=/hpux/onlinedocs/5187-2216/00/00/54-toc.html&searchterms=lvextend&queryid=20040420-132522

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
SS_6
Valued Contributor

Re: lvextend

How did you extend it.See the following example.
With online JFS for example if you wish to increase /opt to new size of 3GB
#lvextend -L 3000 /dev/vg00/lvolxxx
#fsadm -F vxfs -b 3000M /opt
By providing solutions I am helping myself