Operating System - HP-UX
1834944 Members
2440 Online
110071 Solutions
New Discussion

clearing out space in /opt

 
Adam Noble
Super Advisor

clearing out space in /opt

I have a problem whereby i have no space in VG00 and no disk to add. I need to install Glance on the server but do not have sufficient space in /opt. I'm trying to remove unwanted files, however its proving difficult. Can anyone confirm whether I can safely remove everything under /opt/hparray as it appears to be disk array software and we don't have a disk array. I can't see it however when I do a software listing.
9 REPLIES 9
Steve Steel
Honored Contributor

Re: clearing out space in /opt

Hi

Do

swlist -l file|grep hparray

see what fileset it is in and then if you are sure you can remove with swremove



Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Jeroen Peereboom
Honored Contributor

Re: clearing out space in /opt

Maybe creating a symbolic link for your glance software directory to another filesystem helps?

JP.
Sanjay Kumar Suri
Honored Contributor

Re: clearing out space in /opt

Is it possible to reclaim some space from /tmp or /var which are in vg00 than deleting software from /opt?

sks
A rigid mind is very sure, but often wrong. A flexible mind is generally unsure, but often right.
Adam Noble
Super Advisor

Re: clearing out space in /opt

I think even if I reclaim some space from other filesystems it gets very messy as I would need to reduce these lvols which would get very messy indeed. I suppose I could create a mountpoint under vg01 for glance but ideally I'd like everything on the root disks.
Trond Haugen
Honored Contributor

Re: clearing out space in /opt

Get bigger roor disk(s) og add another disk to vg00.
If you manage to squeze enough space out to install Glance you will surely run into the problem again before too long.
Time spent getting just a little more diskspace by removing or moving files are seldom worth spending.

Regards,
Trond
Regards,
Trond Haugen
LinkedIn
Steve Steel
Honored Contributor

Re: clearing out space in /opt

Hi


It is always your choice but software that is installed is generally there for a reason.

Do you have any corefiles or so on /opt


DO
du -s /opt/* /opt/*/*|sort -n

See what the largest things are at the end

A softlink to another directory will maintain your current referenc epattern and is better than throwing soft away

Steve STeel
If you want truly to understand something, try to change it. (Kurt Lewin)
john kingsley
Honored Contributor

Re: clearing out space in /opt

/opt/hparray contains sw used to monitor and configure disk arrays. If you do not have a disk array attached to your system, you are probably don't need this software.
Bill Hassell
Honored Contributor

Re: clearing out space in /opt

You can remove the hparray software but use swremove, not rm. Most software in /opt is installed and managed with the software distributor. swremove will remove all components in all the different directories and remove the information swinstall creates to track software packages.


Bill Hassell, sysadmin
Adam Noble
Super Advisor

Re: clearing out space in /opt

Thanks all for the advice, I'm still not sure what to do but thanks anyway.