LVM and VxVM
cancel
Showing results for 
Search instead for 
Did you mean: 

Reg:increasing file system space

 
SOLVED
Go to solution
Highlighted
praneepteja
Advisor

Reg:increasing file system space

Can any one give correct commands in a order to increase space of filesystem which are built in LVM.Please try give me whole procedure.
8 REPLIES 8
Pete Randall
Outstanding Contributor
Solution

Re: Reg:increasing file system space

The commands are lvextend and extendfs. Take a look at the man page for lvextend. In the EXAMPLES section, the procedure is clearly explained.


Pete

Pete
Kenan Erdey
Honored Contributor

Re: Reg:increasing file system space

Hi,

if you have online jfs license you can extend fs online

swlist -l product | grep -i online

Procedure:

lvextend -L 1500 /dev/vg00/lvolxx (1500 as MB)

if you don't have licence

umount /mount_point
extendfs /dev/vg00/lvolxx
mount /mount_point

if you have:

fsadm -F vxfs -b 1536000 /mount_point (1500*1024)





Computers have lots of memory but no imagination
Jose Mosquera
Honored Contributor

Re: Reg:increasing file system space

Hi,

Please first provide following:
OS version?
Is an OS filesystem related?
Have you installed OnlineJFS?

Rgds.
praneepteja
Advisor

Re: Reg:increasing file system space

OS version is hp-ux 11i v3

It is not OS related file system

I have vxfs in my rx 8640 integrity server
praneepteja
Advisor

Re: Reg:increasing file system space

Ya i have got online jfs
Ismail Azad
Esteemed Contributor

Re: Reg:increasing file system space

Hi,

You can follow kenan's procedure and make use of the fsadm command rather than extendfs... Seems like you have an environment better than base or foundation. Note with fsadm you mention the mount point and_not the device file of the logical volume.

Remember, the lvextend command gives the complete size unlike certain other flavors of unix. With the -L option, you need to specify the "complete" size and not just the size you_want_extended.

> You have assigned points to 2 of 20 responses.

Do assign points for those who help you out.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
Sajjad Sahir
Honored Contributor

Re: Reg:increasing file system space

Extend the logical volume.# lvextend -L 144 /dev/vg01/lvol9
For systems with OnlineJFS: # fsadm -b 147456 /test1

if u don't have online jfs u have to umount /test1
then use extendfs command.

thanks and regards

Sajjad Sahir
Sajjad Sahir
Honored Contributor

Re: Reg:increasing file system space

first u have to check space is available in vg
by using vgdisplay

then free PE*PE size(MB)

then lvextend -L 574440 /dev/vgtest/lvol9
then fsadm -b 574440m /test1(where test1 is mount point) if u have online jfs then only
u can do it
otherwise u have to umount the file system first. then increase the logical volume then increase the file system by using extendfs command.

Sajjad