Operating System - HP-UX
1833768 Members
1892 Online
110063 Solutions
New Discussion

Re: extending a root lvol

 
Mark Smith T-Systems
Frequent Advisor

extending a root lvol

I am running HP 11.00 and might want to lvextend /opt, doesnt it have to be unmounted first? How can that be done if the system is up and running
6 REPLIES 6
Kenan Erdey
Honored Contributor

Re: extending a root lvol

hi,

why do you want to extend it ?
opt is not mountpoint. just look for what is filling your root volume (core, log files etc.) then remove them.
Computers have lots of memory but no imagination
James R. Ferguson
Acclaimed Contributor

Re: extending a root lvol

Hi:

If you have OnlineJFS, there is no need to unmount '/opt' before enlarging it. use 'lvextend' to resize the logical volume; then use 'fsadm' to enlarge the filesystem.

If you don't have OnlineJFS, you will need to unmoount '/opt' first and then use 'lvextend and 'extendfs'.

Depending on what you have running, it may be easiest to boot into single user mode (when '/opt' isn't mounted) and increase its size then. Afterwards, it is easiest to reboot to resume normal processing.

Regards!

...JRF...
Kenan Erdey
Honored Contributor

Re: extending a root lvol

pardon for my previous post. because of the thread subject everyday is posted :)

look for "extending /opt" in the forum.

Computers have lots of memory but no imagination
Mark Smith T-Systems
Frequent Advisor

Re: extending a root lvol

I've done that, it's at 96% and barely growing, and theres not much more I can remove or the DBA's can remove. The IGNITE directory has a couple of very large install files (not logs) but I am unsure if I need those or not.
Tim Nelson
Honored Contributor

Re: extending a root lvol

If /opt is it's own filesystem ( which it should be) then you have a couple options.

1) create new filesystem and mount point for large applications ( e.g. oracle, should have been its own filesystem anyway, or ignite, or any other non-critial large app install) move the app files there, clear the old directory and mount the new one in its place.

2) extend the fs. If no onlineJFS then you will need to stop all services running from /opt ( good luck ). It is easier to take the system to single-user mode, lvextend and extendfs.

Organization of filesystems is the key to maximum uptime. keep the OS stuff segragated from other applications. /dev/vg00 is for the OS, other vgs and disk are for the rest.

MarkSyder
Honored Contributor

Re: extending a root lvol

/opt is for installation of software. If you're not planning to install anything it shouldn't grow. If you do need to install something and don't think there is enough space, there is an alternative to extending /opt.

Let us assume you want to install software called yoursoft which needs a directory called /opt/yoursoft. There is nothing to stop you from creating a logical volume with filesystem called /opt/yoursoft. As far as the product is concerned, it will be just the same as being installed in /opt.

Mark Syder (like the drink but spelt different)
The triumph of evil requires only that good men do nothing