cancel
Showing results for 
Search instead for 
Did you mean: 

extend /opt on 11.23 using LVM

 
SOLVED
Go to solution
bigdaddy68
Advisor

extend /opt on 11.23 using LVM

hi,

i was installing sw and /opt filled up on 11.23. is ther a way to grow it online or barring that can i somehow get down to a single user mode where i can umount it and then lvextend it or somesuch ?

i have free cyls on that same OS disk that will suffice (according to vgdisplay -v)

thx
bigdaddy68
BigDaddy68
7 REPLIES 7
Steven E. Protter
Exalted Contributor

Re: extend /opt on 11.23 using LVM

Shalom,

My patch process for vxvm systems checks free space and issues a vxresize +1g to make sure there is adequate free space on /opt, /usr and /var.

Patching processes can and should be scripted.

My process uses bdf output and issues the appropriate expansion of logical volumes and file systems.

Let me know or contact me offline if you want to see the script. It is something I am proud of.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor
Solution

Re: extend /opt on 11.23 using LVM

Shalom again.

lvextend -L

fsadm to extend without umount or extendfs to extend the filesystem if you can umount.

See man pages for more detail.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ismail Azad
Esteemed Contributor

Re: extend /opt on 11.23 using LVM

Hi,

This depends on if you have a base or online JFS product. Base JFS does_not normally allow you to extend without "unmounting". However, if you have an MCOE you could do this online by commands mentioned by SEP.

Execute, swlist -l product | grep -i online to see if the Online JFS product is installed and proceed for extension accordingly.

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
INH
Regular Advisor

Re: extend /opt on 11.23 using LVM

When you try installing the patch depot in preview mode ( -p option) it should give you the space available and free space requirement on these mounts.

As said above, use either option depending on the online jfs insatlled, if your vg00 is of type vxfs
Knowledge is power
Sajjad Sahir
Honored Contributor

Re: extend /opt on 11.23 using LVM

if u have online jfs just do the following steps

#lvextend -L 2000 /dev/vg00/lvol9

# fsadm -b 2000m /opt

where /opt is the mount point

thanks and regards

Sajjad Sahir
Manix
Honored Contributor

Re: extend /opt on 11.23 using LVM

Can be done very much on fly with online -JFS
as mentioned above !!

Thanks
Manix
HP-UX been always lovable - Mani Kalra
bigdaddy68
Advisor

Re: extend /opt on 11.23 using LVM

thanks all

thank gosh i had 11.23 0706 MCOE installed and i had online jfs ...

also steve protter thx for the script offer but i am so new here i have no idea how to email or contact you for that script - thx for offering it

much thanks to all
bigdaddy68
BigDaddy68