/usr size extension question

 
Edgar_10
Frequent Advisor

/usr size extension question

Hi,

I need to extend /usr,can this be done dynamically or do I have to take server to single user mode?

1.lvextend
2.umount /usr
3.extendfs
4.mount /usr

Thanks,

11 REPLIES 11
Leif Halvarsson_2
Honored Contributor

Re: /usr size extension question

Hi,
It depends on is you have OnlineJFS installed (it is licensed). If not, you have to extend /usr in singlr user mode.
Robert-Jan Goossens
Honored Contributor

Re: /usr size extension question

Hi edgar,

Follow next link for a detailed answer,

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

Hope it helps,

Robert-Jan.
RAC_1
Honored Contributor

Re: /usr size extension question

If you have OnlineJFS, it is easy.

Or else, boot into single user mode. hpux -is
init 1 wont do.

lvextend, extendfs.
There is no substitute to HARDWORK
Edgar_10
Frequent Advisor

Re: /usr size extension question

Hi Jan,

Thanks for the reference.The server has JFS installed(swlist |grep JFS), so can I just extend lvol & then use fsadm to extend filesystem?

Thanks
Pete Randall
Outstanding Contributor

Re: /usr size extension question

Edgar,

Yes:

lvextend -L (n) /dev/vgXX/lvolXX

fsadm -F vxfs -b (n) mountpoint

See man fsadm



Pete


Pete
Kent Ostby
Honored Contributor

Re: /usr size extension question

Edgar -- The second part of the answer to your question is that it depends.

Not only do you have to have Online JFS installed, but /usr has to be a JFS filesystem.

grep "usr" /etc/fstab

If it has "hfs" then you have to do the reboot.

If it has "vxfs" then you can use Online JFS.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Leif Halvarsson_2
Honored Contributor

Re: /usr size extension question

Hi,

Don't confuse with the basic JFS included in the HPUXbase64 bundle with OnlineJFS which is a separate product called:
B5118CA B.11.11 HP OnLineJFS

You need this product to extend the filesystem online.
Edgar_10
Frequent Advisor

Re: /usr size extension question

Hi all,

Thanks for the feedback! Yes the /usr filesystem is vxfs, so I will go ahead and attempt the extension!

Thanks again!
Steven E. Protter
Exalted Contributor

Re: /usr size extension question

Even without Online JFS you can do this.

1. lvextend
2. fuser -cuk /usr (Users maybe affected)
3. umount /usr
4. extendfs
5. mount /usr

good luck,

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