1837232 Members
2036 Online
110115 Solutions
New Discussion

increase /opt

 
SOLVED
Go to solution
Ratzie
Super Advisor

increase /opt

We needed to increase the /opt partition. It would not let us unmount the disk.

What would be the correct procedures?
7 REPLIES 7
Pete Randall
Outstanding Contributor
Solution

Re: increase /opt

Boot into single user mode. Re-boot the machine, interrupt at the 10 second prompt, enter "hpus -is" and the machine will come up in single user mode with nothing but / mounted. I normally do a mount -a at that point so I can access all the commands and stuff I need. Then unmount /opt, lvextend and extendfs.


Pete

Pete
RAC_1
Honored Contributor

Re: increase /opt

1. Goto single user mode.
2. extennd the LV for opt.
3. Extend the fs

If you have Online JFS, no need to go to single user mode, just LVextend and fsadm

Anil
There is no substitute to HARDWORK
Mauro Gatti
Valued Contributor

Re: increase /opt

If you don't have online JFS, You have to go in single user mode and then extend lvol6.
In this case:
-reboot
-interact with IPL
-Boot with tool "HPUX -is"
-You are in single user mode.
-Extend lvol6
-Reboot.

That's all.


RGDS

Mauro
Ubi maior, minor cessat!
Geoff Wild
Honored Contributor

Re: increase /opt

You could also do a :

fuser -cu /opt

See what processes are there - if you can - kill them, then unmount it, lvextend, extendfs it.

Otherwise, single user mode as above, or if you have online JFS:

lvextend -L /vgXX/lvolX

fsadm -b M /opt

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Prashant Zanwar_4
Respected Contributor

Re: increase /opt

Hi,

It would be worth nothing the space available in the VG.
Plan for the application/s outage. Then it is good idea to go for single user mode otherwise stop all applications ,might be init 2.
then fuser -u /opt
fuser -ku /dev/vg00/lvolx
umount /opt
lvdisplay /dev/vg00/lvolx | egrep "Allocated|Size"
Add to it the PE's you will be allocating.
then
lvextend -l|L | /dev/vg00/lvolx
fsadm -b -r .
Hope this helps
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
HGN
Honored Contributor

Re: increase /opt

Hi

You can logon to single user mode ,extend the logical volume for /opt and extend the filesystem ,mount it back & check.Online JFS will be helpful to extend without unmounting /opt.

Rgds

Gopi
Ratzie
Super Advisor

Re: increase /opt

You have all answered my questions