Operating System - HP-UX
1832211 Members
2600 Online
110041 Solutions
New Discussion

Grow /opt using veritas volume manager commands.

 
Juan Gonzalez_2
Frequent Advisor

Grow /opt using veritas volume manager commands.

I am new to veritas volume manager. I did a vxprint and the root drive is mirrored with a internal second drive. How would I grow /opt?

Do I just run the vxassist growto command and that will be it or do I have to do fsadm -b -r to increase the filesystem? By the way the root disk that /opt is on does have space to grow any of the root file systems.
7 REPLIES 7
NMory
Respected Contributor

Re: Grow /opt using veritas volume manager commands.

Since /var, /usr, /tmp (and sometimes /opt) are always in use by the operating
system, they cannot be unmounted with the umount command. In order to extend
these filesystems, the system must be in single user mode.

1) Backup the filesystem before extending
2) Display disk information on the logical volume

lvdisplay -v /dev/vg00/lvol# | more


Make sure this is enough Free PE's to increase this filesystem.
Make sure that allocation is NOT strict/contiguous.

3) Reboot the machine
shutdown -r now
4) When prompted, press "ESC" to interrupt the boot.
5) Boot from the primary device and invoke ISL interaction.
bo pri isl

NOTE: If prompted to interact with ISL, respond "y"

6) Boot into single user mode

hpux -is

NOTE: Nothing will be mounted.
7) Extend the logical volume that holds the filesystem.

/sbin/lvextend -L 400 /dev/vg00/lvol#

(NOTE: the -L option is the NEW size)

8) Extend the file system.

/sbin/extendfs -F hfs /dev/vg00/rlvol#

NOTE: The use of the character device.
9) Ensure the filesystem now reports to be the new size

bdf
10) Reboot the system to its normal running state.

shutdown -r now

Check this link for extending mirrored lvols:

http://www1.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchCrit=allwords&docType=Security&docType=Patch&docType=EngineerNotes&docType=BugReports&docType=Hardware&docType=ReferenceMaterials&docType=ThirdParty&searchString=LVMKBRC00005095

LN
NMory
Respected Contributor

Re: Grow /opt using veritas volume manager commands.

Juan Gonzalez_2
Frequent Advisor

Re: Grow /opt using veritas volume manager commands.

I can not do a lvextend on the /opt because those commands are LVM commands and mnot VxVM commands when I do a bdf I see
/dev/vx/dsk/rootdg/optvol not /dev/vg00/lvol6.










NMory
Respected Contributor

Re: Grow /opt using veritas volume manager commands.

Oopps...sorry!!! I just read on the question real quick without reading the question in the proper way....
Robert-Jan Goossens
Honored Contributor

Re: Grow /opt using veritas volume manager commands.

Hi Juan,

why not use the gui, vea or vmsa (depends on your version.

vxassist examples commands.

http://docs.hp.com/en/B7961-90017/ch03s02.html

Regards,
Robert-Jan
NMory
Respected Contributor

Re: Grow /opt using veritas volume manager commands.

You can grab some tips from the VXVM Administration guide also:

http://docs.hp.com/en/5991-0603/index.html

http://docs.hp.com/en/5991-0603/ch08s15.html

LN
NMory
Respected Contributor

Re: Grow /opt using veritas volume manager commands.

This other doc might help you better, specially the part of Volume Tasks:

http://docs.hp.com/en/B7961-90020/index.html

LN