1848169 Members
5638 Online
104022 Solutions
New Discussion

Re: /opt Full

 
Eric Jacklin
Regular Advisor

/opt Full

Hi

/opt is 100% so would you please let me know can i extend this FS if yes, Please let me know the procedure.

I want to increase it by 4 gb in VG i am having 10 gb free PE.
OS is 11.11 with out online JFS so also let me know can install the online JFS and do the FS management online ?

6 REPLIES 6
Ganesan R
Honored Contributor

Re: /opt Full

Hi Eric,

If you do not have online JFS then you cannot extend the filesystem online. You need to reboot into single user mode to extend it, since you cannot unmount /opt in multiuser mode.

Yes you can install online JFS and after that you can do FS management online. Once you have installed online JFS run the below commands to extend /opt online.

#lvextend -L
#fsadm -F vxfs -b M

Examble:
# lvextend â L 10000 /dev/vg00/lvol4
# fsadm â F vxfs â b 10000M /opt
Best wishes,

Ganesh.
Ganesan R
Honored Contributor

Re: /opt Full

Hi Eric,

Ignore the Junk characters in the example.

examble: To extend to 10GB of total size

#lvextend -L 10000 /dev/vg00/lvol4
#fsadm -F vxfs -b 10000M /opt
Best wishes,

Ganesh.
Johnson Punniyalingam
Honored Contributor

Re: /opt Full

Hi Eric,

You need bring down file system below 100% example:- 99%, Than Only It will allow to Increase you file system,

Step1 :- We need look for large file

cd /opt
du -sk *

or

find /opt -xdev -type f -size +5000000c -exec ll {} \; | sort -nk 5

>>OS is 11.11 with out online JFS so also let me know can install the online JFS and do the FS management online ?<<

Its Lincensed version , You buy this product

Thanks,
Johnson

Problems are common to all, but attitude makes the difference
Johnson Punniyalingam
Honored Contributor

Re: /opt Full

How to extend File system with out JFS Installed,

Hence you /opt part vg00 ,

You need bring Server into Single User mode and extend file system,

steps:-

shutdown -ry 0
interupt ISL> hpux -is
# mount -a

Sum up the recent size of the file system and the additional size.

Extend the logical volume.

# lvextend -L

# lvextend -L 10000 /dev/vg00/lvol2
# extendfs -F vxfs /dev/vg00/rlvol2


If you have ONline JFS no need downtime you can do ONLINE Extention as below

lvextend -L
fsadm -F vxfs -b 10000M /opt

Thanks,
Johnson
Problems are common to all, but attitude makes the difference
Tingli
Esteemed Contributor

Re: /opt Full

I don't think you need to bring system down to single user mode when without online JFS. The only thing need to be done is to umount /opt, although it is safe to have an ignite backup for /opt. The procedure is:
# vgextend vg00 /dev/dsk/c*t*d* (in case you don't have enough vg)
# lvextend -L 4000 /dev/vg00/opt /dev/dsk/c*t*d*
# umount /opt
# extendfs -F vxfs /dev/vg00/opt
# mount /opt
# bdf /opt
sujit kumar singh
Honored Contributor

Re: /opt Full

Hi

Online JFS is a Priced that is a Licensed product of HP and you need to order for that.

The install is quite Straight Forward that is swinstall and add the codeword and install.

After that you can online Extend/reduce Fileystems (Reduction has got limitations),Online Defreag, Snapshot, change and set Extent Attributes etc