1825720 Members
2978 Online
109686 Solutions
New Discussion

extend FS

 
SOLVED
Go to solution
Francis Flan
Regular Advisor

extend FS

I found a VG01 on a 11.31 server and pvdisplay says it is 70GB.
There's 1 lvol on the VG and it is 40GB in size.

OnlineJFS is NOT installed on the system.

Can i increase the filesystem from 40GB to 70GB without losing data currently on it?

thanks,
Fran
5 REPLIES 5
Tim Nelson
Honored Contributor
Solution

Re: extend FS

Yes.

lvextend -L 70000 /dev/vg01/lvolname (or use -l with # of extents )
unmount /lvolname
extendfs /dev/vg01/rlvolname
mount /lvolname


BTW,
Last contribution date: April 28, 2008
I(Francis Flan) have assigned points to 78 of 108 responses to my questions.

James R. Ferguson
Acclaimed Contributor

Re: extend FS

Hi Fran:

Without OnlineJFS installed you will have to unmount the filesystem and use 'extendfs' to increase its size.

Begin, of course, by enlarging the logical volume with 'lvextend'. Unmount the filesystem associated with that logical volume and 'extendfs' it. Then, re-mount the filesystem.

As long as you are not shrinking the logical volume or the filesystem no data will be lost.

Regards!

...JRF...
Rasheed Tamton
Honored Contributor

Re: extend FS

Well. It is already explained above. But to make it more clear:

lvextend -L 71680 /dev/vg01/lvol1

(I will use 71680 MB) and the size will be rounded up according to your PE size value.
lvdisplay /dev/vg01/lvol1

Then you have to unmount the filesystem:

umount /dirname
(make sure the LV is unmounted), then

extendfs -F vxfs /dev/vg01/lvol1

mount the LV to /dirname

Regards,
Rasheed Tamton.


Sajjad Sahir
Honored Contributor

Re: extend FS

Dear Francis

if online jfs is not installed u have to use the command extendfs if online jfs is there u can use fsadm
if online jfs is there no need to umount
if online jfs is not there u have to umount

in u case there is no online jfs

so first u have to umount the file system
umount /mnt where mnt is u mount point
here i am taking mnt is an example
i don't where it is mounted in u case

lvextend -L size of the logical volume /dev/vg01/lvolumename
mount -F vxfs /dev/vg01/lvolumename /mnt
where
F is the file system type

thanks and regards

sajjad


sajjad
Francis Flan
Regular Advisor

Re: extend FS

thanks for the help