System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

is it good to extend the /opt file system online?

Sreer
Valued Contributor

is it good to extend the /opt file system online?

Hello Gurus,

Could you pls advice that whether can we extend the /opt FS online? Any restriction or good practice is there for it?

rgds

Sreekumar
7 REPLIES
Michal Kapalka (mikap)
Honored Contributor

Re: is it good to extend the /opt file system online?

hi,

if you have JFS Online activated, yes it is possible, without any problem.

mikap
Robert-Jan Goossens
Honored Contributor

Re: is it good to extend the /opt file system online?

Hi Sreekumar,

Do you have Online-JFS installed?

#swlist -l product | grep Online

If you have Online-jfs installed

# lvextend -L

# fsadm -b

otherwise you need to umount the LV and you need to extendfs after lvextend

# umount /mountpoint
# extendfs -F vxfs /dev//r
# mount /mountpoint

Umounting /opt is going to be difficult in multi-user mode, you might need to reboot to single user mode before you can resize your /opt logical volume.

Hope this helps a bit.

Regards,
Robert-Jan
Michael Steele_2
Honored Contributor

Re: is it good to extend the /opt file system online?

HI

Only the first three logical volumes of vg00 are contiguous and can not be extended online. (* boot, swap, root *). The other filesystems are random access and can be extended online no problem. Run,

fsadm -F vxfs -D -E /opt

If you get a fragmentation report then you have online jfs and can

lvextend
fsadm -F vxfs -b(bytes) /opt
Support Fatherhood - Stop Family Law
James R. Ferguson
Acclaimed Contributor

Re: is it good to extend the /opt file system online?

Hi:

As noted, if you have OnlineJFS you most certainly can extend the '/opt' filesystem online. You need a small amount of free space to enlarge a filesystem. In the absence of this tiny free space, the expansion will fail and you will have to resort to an 'extendfs' and an unmounted filesystem.

Having OnlineJFS to allow dynamically resizing filesystems is only one of many uses for OnlineJFS.

Regards!

...JRF...
Johnson Punniyalingam
Honored Contributor

Re: is it good to extend the /opt file system online?

Questions:-

why do you need to extend /opt ? are you running out of space or any other application you are going to Install ?

>>good practice is there for it? <<<

if you have ONLINE JFS, you can extend the file system with out unmouting the /opt file system

>>Any restriction<<

if you d'not have enough "PE" under your Volume group vg00 also its not possible

if you d'not have Online JFS => you need extend your /opt file under single user mode
Problems are common to all, but attitude makes the difference
Sreer
Valued Contributor

Re: is it good to extend the /opt file system online?

Hi Gurus,

Thanks for all.

This thread can be closed.
Dennis Handly
Acclaimed Contributor

Re: is it good to extend the /opt file system online?

>This thread can be closed.

Please read the following for info how to close threads:
http://forums.itrc.hp.com/service/forums/helptips.do?#40