Operating System - HP-UX
1846828 Members
9879 Online
110256 Solutions
New Discussion

how to increase size of /opt by sam

 
SOLVED
Go to solution
Asif_8
Regular Advisor

how to increase size of /opt by sam

Hi !
I have 11i no jfs How to increase of /opt
in CLI or Sam

thank
7 REPLIES 7
Hazem Mahmoud_3
Respected Contributor

Re: how to increase size of /opt by sam

If you do not have onlinejfs (ie: fsadm command), do the following:
1. Unmount /opt (make sure you are not in /opt)
2. lvextend -L /dev/vg00/lvol1 (<- change path accordingly)
3. extendfs /dev/vg00/lvol1 (<- again change path accordingly)

And that should be it!
Make sure you have enough space beforehand to do this.

-Hazem
RAC_1
Honored Contributor
Solution

Re: how to increase size of /opt by sam

First check what process are using /opt file system. User fuser -cu /opt or use lsof tool for that.

If you can stop all processes usinf that file system, then unmount the filesystem.

Do lvextend -L "new_size_in_MB" /dev/vgxx/lvolxx
Then do extebdfs /dev/vgxx/lvolxx

Mount the filesystem and check it with bdf /opt.

Anil
There is no substitute to HARDWORK
Asif_8
Regular Advisor

Re: how to increase size of /opt by sam

Hi Hazem Mahmoud !

thanks Ido not have JFS

Do I this in signal user mode ? what about procese are running?

If This I do by SAM then also unmount the
volume
my disk(vg00) is mirror
Marvin Strong
Honored Contributor

Re: how to increase size of /opt by sam

You shouldn't have to go into single user for /opt, if you can stop all the processes running against /opt without causing a system outage.

fuser -cu /opt
if there are no processes
umount /opt
lvextend -L (new size in MB) /dev/vg00/lvol4
extendfs /dev/vg00/lvol4

if fuser shows you processes running, stop them if you can. Then do the steps above.

Single user would also be the safest way to do it, if you are unsure of any processes running from /opt.

Note: lvol4 may no tbe /opt so modify the above accordingly.
Hazem Mahmoud_3
Respected Contributor

Re: how to increase size of /opt by sam

No, you do not have to do this in single user mode. Like what was suggested above, just make sure there are no processes running. You will probably want to do this after-hours if this is a production system. I recommend you try and get Online JFS, it really adds much more flexibility.

-Hazem
Asif_8
Regular Advisor

Re: how to increase size of /opt by sam

thanks again !


what happen on Mirror hard drive


asif
SS_6
Valued Contributor

Re: how to increase size of /opt by sam

I am wondering you must have online JFS in 11i,
#swlist -l product |grep -i jfs
when you extend a already mirrored logical voulme, it will also extend the mirror copy but you must checked the space on mirrored disk by
vgdisplay -v vg00|more
By providing solutions I am helping myself