1844647 Members
3032 Online
110233 Solutions
New Discussion

Re: lvm extend problem

 
SOLVED
Go to solution
navin
Super Advisor

lvm extend problem

Hello ,
I would like to how can i extend teh file system .the box is having the online JFS.
thanks
Learning ...
10 REPLIES 10
HGN
Honored Contributor

Re: lvm extend problem

Hi

You do a
lvextend -L (size) lvol_name (/dev/vg00/lvolx

then

fsadm -b (size with a M for Mb) (mount_point)

Hope this helps

Rgds

HGN
Coolmar
Esteemed Contributor

Re: lvm extend problem

# lvextend -L /dev/vgXX/lvolX
navin
Super Advisor

Re: lvm extend problem

hello ,
i could not use fsadm ..what should be the procedure to extend the file system normaly with out online JFS.please help
Learning ...
Coolmar
Esteemed Contributor

Re: lvm extend problem

I don't recall using fsadm, I only used lvextend -L size in mb /dev/vgXX/lvolX

That should do it for you. So say /dev/vg02/lvol1 is at 2000MB right now and you want to increase it to 3GB...type

# lvextend -L 3000 /dev/vg02/lvol1

Then do a bdf and see if that worked.
Coolmar
Esteemed Contributor

Re: lvm extend problem

Sorry, I was wrong. You DO need fsadm. Why is yours not working? Do you get an error message? If so, what does it say?
George Liu_4
Trusted Contributor

Re: lvm extend problem

lvextend
followed by
extendfs /dev/vgXX/rlvolXX
fsck
Coolmar
Esteemed Contributor
Solution

Re: lvm extend problem

Here are the steps BTW for extending it when you don't have onlineJFS:

Unmount the file system.


#umount /dev/vg01/lvol1


Increase the size of the logical volume.


#/usr/sbin/lvextend -L 1200 /dev/vg01/lvol1


Note that the -L 1200 represents the new logical volume size in MB, not the increment in size.

Increase the file system capacity to the same size as the logical volume. Notice the use of the character device file name.


#extendfs /dev/vg01/rlvol1


Re-mount the file system.


#mount /dev/vg01/lvol1 /project


Run bdf to confirm that the file system capacity has been increased.

navin
Super Advisor

Re: lvm extend problem

thanks. i was getting an error the volume group is not activated.
Learning ...
Coolmar
Esteemed Contributor

Re: lvm extend problem

Did you activate it?

# vgchange -a y /dev/vgXX
Yang Qin_1
Honored Contributor

Re: lvm extend problem

did you run vgchange -a y /dev/vg##?


Yang