1832595 Members
3005 Online
110043 Solutions
New Discussion

Expand /usr

 
SOLVED
Go to solution
Peter Chuang
Frequent Advisor

Expand /usr

my /usr is 100% full

/dev/vg00/lvol6 861557 775402 0 100% /usr

I have the command from previous thread

lvextend -L 500 /dev/vg00/lvol6

what is 500 stand for?

Thanks in advance
7 REPLIES 7
Jeff_Traigle
Honored Contributor
Solution

Re: Expand /usr

500MB size. See lvextend man page. Since your /usr is around 800MB, you'll want a bigger value than 800.
--
Jeff Traigle
Court Campbell
Honored Contributor

Re: Expand /usr

after you extend the lvol you will want to extend the file system. if you have onlinejfs you can

# fsadm -b 800M /var
"The difference between me and you? I will read the man page." and "Respect the hat." and "You could just do a search on ITRC, you don't need to start a thread on a topic that's been answered 100 times already." Oh, and "What. no points???"
James R. Ferguson
Acclaimed Contributor

Re: Expand /usr

Hi Peter:

# man lvextend

Regards!

...JRF...
Pete Randall
Outstanding Contributor

Re: Expand /usr

And take a look at the examples in "man lvextend". By the way, you will most likely need to reboot in single user mode in order to get /usr unmounted.


Pete

Pete
Robert-Jan Goossens_1
Honored Contributor

Re: Expand /usr

Hi,

If you look at the man page, you will see that the -L option sets the new size in MegaBytes.

If you have onlineJFS installed you can increase the /usr filesystem on the fly.

# swlist -l product | grep -i online

Then the command would be

# lvextend -L xxxxx /dev/vg00/lvol6
xxxxx = new size of /usr
# fsadm -F vxfs -b xxxxxM /usr

If you do not have OnlineJFS installed, you will have to reboot into single user mode.

# shutdown -r -y now
interrupt boor process
boot pri ipl
ISL> hpux -is
# /sbin/lvextend -L xxxxx /dev/vg00/lvol6
# /sbin/extendfs /dev/vg00/lvol6
# mount /usr
# shutdown -r -y now

Regards,
Robert-Jan
Peter Chuang
Frequent Advisor

Re: Expand /usr

Thank you all for the prompt reply. Problem solved.
Peter Chuang
Frequent Advisor

Re: Expand /usr

Thanks again.