Operating System - HP-UX
1833800 Members
2569 Online
110063 Solutions
New Discussion

Increasing size on existing Filesystems - Part II

 
SOLVED
Go to solution
RedBack
Frequent Advisor

Increasing size on existing Filesystems - Part II

I have a filesystem that is 90046464kb. I want to increase it to about 110000000kb.
The LV that contains the FS is 87936Mb. The PE size is 16Mb. So to increase the LV I would use lvextend -l 6713 /dev/vg01/lv01.
To increase the FS I would use fsadm -F vxfs -b 107422 /fs1.
Is this correct?
12 REPLIES 12
Sandip Ghosh
Honored Contributor

Re: Increasing size on existing Filesystems - Part II

Instead you give lvextend -L 110000 /dev/vg01/lvol1
fsadm -b 112640000 /fs1

Sandip
Good Luck!!!
Steven Mertens
Trusted Contributor

Re: Increasing size on existing Filesystems - Part II


hi,

Can you add some bdf output from the filesytem
just to be sure that we give you the right
numbers.

I think your calculations are wrong.

regards,

Steven
Martin Burnett_2
Trusted Contributor

Re: Increasing size on existing Filesystems - Part II

Hello,

Yes, PE Size x Number of Extents ("-l" option)= total size.

If you have Online JFS (Advanced JFS) yes. If not then the command for the filesystem would be extendfs -F vxfs /dev/vg01/rlvol1.

Thanks for participating in the forums,

Martin
Chaos reigns within. Reflect, repent, and reboot. Order shall return.
RedBack
Frequent Advisor

Re: Increasing size on existing Filesystems - Part II

More info as requested.

bdf
/dev/vgh4data01/h4xpop01 90046464 81577928 8402432 91% /h4xpop01

vgdisplay
LV Name /dev/vgh4data01/h4xpop01
LV Status available/syncd
LV Size (Mbytes) 87936
Current LE 5496
Allocated PE 5496
Used PV 6
Steven Mertens
Trusted Contributor

Re: Increasing size on existing Filesystems - Part II


i should do the following

lvextend -L 112640 /dev/vgh4data01/h4xpop01
fsadm -F vxfs -b 115343360 /h4xpop01

thats approx. 110 GB.

regards.

Steven
Jeff Schussele
Honored Contributor

Re: Increasing size on existing Filesystems - Part II

Hi MWH,

I Assume that was a typo - you stated vgdisplay, but gave an lvdisplay output.
Just wanted to point out that I hope vgdisplay DOES show enough "Free PE" to accomodate the expansion, else you'll have to extend the VG first.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Tom Maloy
Respected Contributor

Re: Increasing size on existing Filesystems - Part II

To avoid some math, instead of:

fsadm -F vxfs -b 115343360 /h4xpop01

do:

fsadm -F vxfs -b 112640M /h4xpop01

Tom

Carpe diem!
Wodisch_1
Honored Contributor

Re: Increasing size on existing Filesystems - Part II

Hi,

since Tom has already mentioned the suffix "M" for the "-b" option of "fsadm", all I can do is to remind you to have a little free space available *before* you try the "fsadm"! About 1Megabyte is usually enough, but with 100% full "fsadm" will complain...

Just my $0.02,
Wodisch
S.K. Chan
Honored Contributor
Solution

Re: Increasing size on existing Filesystems - Part II

All answers are correct. Just one thing that has not been mentioned, you can use SAM to do this too.
Disk&FS->Logical Volumes
Highlight the LV you wanted, then do Action->Increase Size. Simple enter the new size in MB and click OK. Your FS will be extended accordingly.
RedBack
Frequent Advisor

Re: Increasing size on existing Filesystems - Part II

If I was to use
lvextend -L 110000 /dev/vgh4data01/h4xpop01
fsadm -F vxfs -b 110000M /h4xpop01

This would be ok?
Steven Mertens
Trusted Contributor

Re: Increasing size on existing Filesystems - Part II

hi S.K Chan,

Isn't there a problem if you try to
extend volumes that are bigger then 120 GB with sam ?


Steven
S.K. Chan
Honored Contributor

Re: Increasing size on existing Filesystems - Part II

Well, the "used-to-be-limit" is 128GB actually using SAM (couple of years ago), though I have not personally try anything more that 80GB. I hope SAM has matured since then with all the latest patch fixes. Whatever limit that SAM impose has to be consistent with the FS limit. Though I'm not a fan of SAM I'd thought it's good to bring it up, give the user another option to go for.