1819978 Members
3330 Online
109607 Solutions
New Discussion юеВ

/usr 98% full

 
SOLVED
Go to solution
Fred Ruffet
Honored Contributor

Re: /usr 98% full

As long as you don't have OnlineJFS, you can't use "fsadm -b". This command is used to increase FS size without umount/mount.

First suppress unwanted package before you go into increasing size.

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Adrian Sobers2
Super Advisor

Re: /usr 98% full

Question this 1572664 figure, do I have to type 1572664M in command or just 1572664, I think it was 1572664 plain but just checking.

I also would like to know something about extending mount points and all that. How do I know (what commands) how much space is available for each volume group etc? Is there a doc. that has some basic information along these lines?
Pete Randall
Outstanding Contributor

Re: /usr 98% full

Adrian,

The lvextend -L is in MB so your syntax is fine: # /sbin/lvextend -L 1572864 /dev/vg00/lvol7

To find the space available, look at the volume group itself with vgdisplay. You'll see several PE lines - total, alloc and free. The Free PE multiplied by the PE size tells you how much space you have.


Pete

Pete
Fred Ruffet
Honored Contributor

Re: /usr 98% full

-L option of lvextend uses MB as unit.
-b option of fsadm uses KB.
extendfs without option grows to the max.
I think that specifying M isn't supported.

To see space left in VG :
vgdisplay -v vgname gives you 2 lines like the following
PE Size (Mbytes) 8
Free PE 4594

To see free space in FS, you can use bdf which output has a column for available space.

To see free space left in LV, you have to substract FS size (given by bdf) to LV size (given by lvdisplay). But this is generally 0, as long as you extend fs each time you extend LV.

Regards,

Fred



--

"Reality is just a point of view." (P. K. D.)
Fred Ruffet
Honored Contributor

Re: /usr 98% full

No points for this one and sorry for the mistake :
use "vgdisplay" without -v option

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Geoff Wild
Honored Contributor

Re: /usr 98% full

Before you schedule this - make sure you have room in vg00 - vgdisplay /dev/vg00

Look at:

Free PE 3670

My:

PE Size (Mbytes) 8

So I have 29360 MB avail (but I mirror - so only half).

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Adrian Sobers2
Super Advisor

Re: /usr 98% full

attached is the output from

# vgdisplay vg00


Adrian Sobers2
Super Advisor

Re: /usr 98% full

I have 17088MB free, but from the lvextend command I have above, I think that would push me over what I have available no?

The lvextend command is with the figure of 1572864, I'm confused now...
Robert-Jan Goossens_1
Honored Contributor

Re: /usr 98% full

Hi Adrian

you have 2136 X 8 = 17088 mb free space left in vg00.

below is the output from bdf of your system.

Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol7 1261568 1236384 25120 98% /usr

why would you extend your filesystem with 15 GB ?

I would add a gyg, maybe 1 1/2 GB.

lvextend -L 3000
extendfs ...

Just my 2 cents.
Robert-Jan
Fred Ruffet
Honored Contributor

Re: /usr 98% full

"/sbin/lvextend -L 1572864 /dev/vg00/lvol7" will bring you to 1572864MB (i.e. 1.5TB). I think what you want it 1.5GB (which a bit more reasonable :).

So command will be
lvextend -L 1536 /dev/vg00/lvol7
extendfs -F vxfs /usr

Regards,

Fred
--

"Reality is just a point of view." (P. K. D.)
Victor BERRIDGE
Honored Contributor

Re: /usr 98% full

Hi Arian,
Wouldnt 2Gb be enough?
-L 2000 ...


All the best
Victor
Pete Randall
Outstanding Contributor

Re: /usr 98% full

Adrian,

You're looking to increase it about .5 GB and you have 17 BG free - No Problem!


Pete

Pete
Steven E. Protter
Exalted Contributor

Re: /usr 98% full

Assuming the standard 4K PE size you have over 8 GB free on /dev/vg00

I personally would do this:

lvdisplay /dev/vg00/lvol7 (assumes this is /usr

I'd want to extend the logicaol volume to provide for it being say 80% full.

Lets say /usr /dev/vg00/lvol7 is currently 2000 units. I tend to use -l versus -L with lvextend.

In this example:

lvextend -l 2500 /dev/vg00/lvol7 /dev/dsk/c1t1d0

You have to use a real disk device btw.

That will put you at what I consider optimal, /usr 80% full with plenty of room for growth.

Every admin has his own formula and some may find my policyto be wasteful. I'm currently running /usr at 96% on my rp5450 servers but I pretty much have all the software on them that I need to reach replacement in 2006.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adrian Sobers2
Super Advisor

Re: /usr 98% full

thanks for all the help. Excellent solutions as usual. I will extend to 2GB this evening.

Cheers!