1833012 Members
2680 Online
110048 Solutions
New Discussion

Resizing a file system

 
SOLVED
Go to solution

Resizing a file system

Hello team,
first of all,excuse me if this issue is too simple but I am not sure what I must to do.
I have got a file system 280Gb, used at 85%. The file system is contained in a logical volume defined as 280GB, and belongs to a volume group composed by 2 disks whose capacity is 140 GB.I have a 70GB free disk available for the vg expansion. I only know to make it via SAM, and I would like to know if this extension is possible ansd secure for th eols file system.

Best regards.
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Resizing a file system

> 2 disks whose capacity is 140 GB

I'm hoping that means 140GB each for a total of 280GB.

You also have another 70GB disk? If so, then you can vgextend your volume group onto that 70GB disk, lvextend your logical volume and extendfs your file system.

Have a look at the man pages for pvcreate, vgextend, lvextend, and extendfs.


Pete

P.S. I have no idea what "th eols file system" means.

Pete
Sunny123_1
Esteemed Contributor
Solution

Re: Resizing a file system

Hi

Did you mean you have the total size is 280 GB and 70 GB free disk space available?

If so then you can

Firstly extend VG by

vgextend your vg name

then lvextend and then extendfs

If you have online jfs file system then you can use fsadm for online extention.


Regards
Sunny
kamaleswaran
Occasional Advisor

Re: Resizing a file system

First

vgextend

Check Online JFS installed in your HPUX

If installed you can increase with out umount the files system

lvextend -L MB /dev/vgname/lvolx

fsadm -b M /example

If don't have Online JFS

umount /example

lvextend -L total sizein MB>MB /dev/vgname/lvolx

extendfs -F vxfs /dev/vgname/lvolx

Re: Resizing a file system

Thank you.