1847009 Members
4874 Online
110258 Solutions
New Discussion

Increase /opt

 
SOLVED
Go to solution
Jose_129
Regular Advisor

Increase /opt

As I can increase file system /opt
Change password in way single user, beginning in multiuser way console
9 REPLIES 9
Brian Bergstrand
Honored Contributor
Solution

Re: Increase /opt

# bdf /opt

Note the device file from the output

# lvextend -L /dev/vg00/lv???

lv??? will be the device that represents /opt

Now, you will have to boot to single user mode and unmount /opt

# shutdown now

Wait for the transition

# umount /opt
# extendfs /dev/vg00/rlv???

If you have paid for OJFS, you skip the shutdown and unmount and use fsadm to extend the filesystem while it's mounted.

HTH.
TSaliba
Trusted Contributor

Re: Increase /opt

hi
if there space on your volume group vg00, then you can increase the size opt file system
jj
Jose_129
Regular Advisor

Re: Increase /opt

Some additional information
Change password in way single user, beginning in multiuser way console
Patrick Wallek
Honored Contributor

Re: Increase /opt

like what? What exactly is it you require?
Jose_129
Regular Advisor

Re: Increase /opt

Is correct?
First
# lvextend -L /dev/vg00/lv???

Second
Now, you will have to boot to single user mode and unmount /opt

Third
# umount /opt
# extendfs /dev/vg00/rlv???


# shutdown -ry 0

Verification increase /opt
Change password in way single user, beginning in multiuser way console
TSaliba
Trusted Contributor

Re: Increase /opt

hi
1- check if you have space
# vgdisplay vg00
the free space(MB)= Free PE * 4

2- if you have a free space run bdf
to note the device file for opt
bdf | grep opt
you have an output like this:
/dev/vg00/lvolX ??? ???? ??? ??% /opt
3- you can increase opt file system online or you can go to single user mode
online mode
# lvextend -L new_size /dev/vg00/lvolX

#fuser -kc /opt
#umount /opt
# extendfs /dev/vg00/rlvolX
#mount -a

check the new size bdf

ofline follow the procedure of brian
jj
DGH_2
Valued Contributor

Re: Increase /opt

Is correct?
Hi,
#bdf
locate what is the /opt ex: lvol6 in hpux11.00
# lvextend -L /dev/vg00/lvol6

#shutdown 0
#umount /opt
#extendfs -F vxfs /dev/vg00/rlvol6
#shutdown -ry 0

DGH
Mark Grant
Honored Contributor

Re: Increase /opt

Jose,

what you said is correct as long as you don't have onlineJFS. This product allows you to do this without unmounting the filesystem and without re-booting

check if you have it with "swlist | grep JFS"
Never preceed any demonstration with anything more predictive than "watch this"
Colin Topliss
Esteemed Contributor

Re: Increase /opt

Why exactly are you doing this? Is /opt full (or nearly full), or are you intending to install another application under /opt and you don't believe you have the space?

Have you any idea why /opt is full? Has it suddenly become full, or is it just that its grown as you've installed more products?

I usually install applications on their own filesystems mounted under /opt rather than just increase the size of /opt. That way if, for example, an application goes nuts and starts creating huge log-files, it won't affect other applications.

So, the things to consider:
1) Why /opt is full, and how quickly did it fill up. Do you have an application writing stuff there which can be cleared down, or is it just natural growth.
2) Are you installing a new application which will fill up /opt? You can either extend /opt as suggested by others in this thread, or create and mount a new filesystem under /opt and install your application there.

Regards

Col.