1834571 Members
3817 Online
110069 Solutions
New Discussion

Adding space to /opt

 
SOLVED
Go to solution
Larry Scheetz
Advisor

Adding space to /opt

This might be a stupid one but here goes. I am used to using Online JFS with 11.00 I have a machine with no Online JFS and want to add space that is available to the /opt. Do I need to go into a single user mode to umount /opt and then add and then boot back into regular run level? Thank you for your help.
A Happy heart makes the face cheerful
6 REPLIES 6
Patrick Wallek
Honored Contributor
Solution

Re: Adding space to /opt

Yes, that is the easiest way.

Make sure that you actually reboot, interrupt the boot process, do an 'hpux -is' to get to single-user mode.

Just doing an 'init 1' may leave some processes running that still access /opt.
A. Clay Stephenson
Acclaimed Contributor

Re: Adding space to /opt

Unless you have OnlineJFS then you have to do it by your method. You may very well have to knock down and boot single user depending on what processes are actually running. You will have to first extend the LVOL and then the filesystem.
If it ain't broke, I can fix that.
James R. Ferguson
Acclaimed Contributor

Re: Adding space to /opt

Hi Larry:

You might be able to unmount '/opt' to extend the filesystem. This is easier than dealing with '/usr' and '/var'. You can use 'fuser' to find and kill processes using '/opt'. These will include Measureware, etc.

Otherwise, I suggest you boot into single-user mode; 'lvextend' and 'extendfs' appropriately; and either reboot or do 'init 3' (or to whatever constitutes your default run-level).

Regards!

...JRF...
steven Burgess_2
Honored Contributor

Re: Adding space to /opt

Hi

I would go to single user and then increase

You can do this from your desktop

shutdown -y 0

lvextend -L /dev/vg0#/lvol#

extendfs -F vxfs /dev/vg0#/rlvol#

reboot

HTH

Steve
take your time and think things through
Leif Halvarsson_2
Honored Contributor

Re: Adding space to /opt

Hi

If you want to install one large application in opt and dont have enough space it can be easier to create a new logical volume for this application and mount this volume on (for example) /opt/largeapp.
Sajid_1
Honored Contributor

Re: Adding space to /opt

Always when you don't have online JFS, go to single user mode and do these type of tasks. It will be more convenient and easy. Take a make_recovery tape and good full backup before making any changes. Once extended, do a fsck on the file system and make sure that everything is alright.

gl,
learn unix ..