HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

HP-UX 11.11 increasing the size of /opt

 
SOLVED
Go to solution
Stuart Powell
Super Advisor

HP-UX 11.11 increasing the size of /opt

It's been a while since I have had to deal with this issue. But I may need to increase the size of /opt to upgrade to Data Protector 6.2. Is that one of the filesystems that requires going to single user mode?

Input will be appreciated.

 

Stuart

Sometimes the best answer is another question
3 REPLIES
Robert_Jewell
Honored Contributor
Solution

Re: HP-UX 11.11 increasing the size of /opt

Most likely, but only if you do not have OnlineJFS.  With this feature you can expand your filesystem online.

 

With OnlineJFS (Advanced JFS) installed:

 

  # lvextend -l <new total PE size> | -L <new total MB size> <lv_path>

  # fsadm -b <size> <file_system>

       size = (PE size x 1024) (Total PE)

         -- or --

       size = xxxxM (value in Megabytes)

 

example:

  # lvextend -L 2500 /dev/vg00/lvol7 (increase size of lvol7 to 2500 MB)

  # fsadm -b 2500M /usr (increase size of /usr filesystem to 2500 MB)

 

Without OnlineJFS Unmount filesystem (for those such as /var /usr, reboot to single-user mode)

  # lvextend -l <new total PE size> | -L <new total MB size> <lv_path>

  # extendfs <lv_path> (the max available size is used by default Mount filesystem

 

example:

  # lvextend -l 400 /dev/vg00/lvol5 (increase the number of extents to 400 on lvol5)

  # umount /home

  # extendsfs /dev/vg00/lvol5 (increase the size of the filesystem to the max allowed by the LV)

  # mount /home

 

-Bob

----------------
Was this helpful? Like this post by giving me a thumbs up below!
Stuart Powell
Super Advisor

Re: HP-UX 11.11 increasing the size of /opt

Bob,

 

I do have on-line JFS, so I will be able to follow your steps.  Thanks for the confirmation.

 

Stuart

Sometimes the best answer is another question
Pete Randall
Outstanding Contributor

Re: HP-UX 11.11 increasing the size of /opt

Stuart,

 

It is highly unlikely that you will be able unmount /opt while in multi-user mode, so you will probably have to go to single user.


Pete