1826219 Members
3337 Online
109691 Solutions
New Discussion

Extend filesystem

 
SOLVED
Go to solution
Joseph Bague
Frequent Advisor

Extend filesystem

Hi to all

How to extend a file system using OnlineJFS. Can you post it on step-by-step procedure.

Thank you all in advance
Expect nothing but ready for everything
8 REPLIES 8
Rainer von Bongartz
Honored Contributor
Solution

Re: Extend filesystem

1) extend the logical volume:

/usr/sbin/lvextend -L /dev/vgxx/lvolyy

2) extend the file system

lvextend -L /dev/vgXX/lvolyy

As you have OnlineJFS no umount of the file system is needed

Regards
Rainer

He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Colin Topliss
Esteemed Contributor

Re: Extend filesystem

Using /home (/dev/vg00/lvol8)on a VXFS filesystem as an example, extending to 800Mb using Online JFS

lvextend -L 800 /dev/vg00/lvol8
fsadm -F vxfs -b 819200 /home

Donald Kok
Respected Contributor

Re: Extend filesystem

Hi say you want to extend /var on /dev/vg00/lvol7 from 1000 to 2000 Gb:

lvextend -L 2000 /dev/vg00/lvol7
fsadm -F vxfs -b 2048000 /var

The argument for lvextend is Mb; for fsadm it is Kb.

Greetzz
Donald
My systems are 100% Murphy Compliant. Guaranteed!!!
Joseph Bague
Frequent Advisor

Re: Extend filesystem

Hi

Something come out I just found that I have only 300MB of free space, How can I reduce the other logical volume.

Regards
Joseph
Expect nothing but ready for everything
Robert-Jan Goossens
Honored Contributor

Re: Extend filesystem

Hi Joseph,

The principle is the same but I would make a backup of a filesystem before you reduce the size.

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x55c053921f1ad5118fef0090279cd0f9,00.html

Hope it helps,

Robert-Jan.
john korterman
Honored Contributor

Re: Extend filesystem

Hi Joseph,
are the 300 mb what you have left in the volume group? If the logical volume is mirrored, you also have to take that into account. Check:
# lvdisplay -v | more

Is the line "Mirror copies" 1=mirrored or 0=not mirrored?

regards,
John K.
it would be nice if you always got a second chance
Joseph Bague
Frequent Advisor

Re: Extend filesystem

Thanks Everybody for the fast reply. I am ok with all your solution.
Expect nothing but ready for everything