Operating System - HP-UX
1752393 Members
6912 Online
108788 Solutions
New Discussion

Re: 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 3
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