- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing unwanted filesets - reason is space neede...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:28 AM
09-29-2004 01:28 AM
Attached is the output from swlist
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:35 AM
09-29-2004 01:35 AM
Re: Removing unwanted filesets - reason is space needed
The command cleanup will remove superceded patches from the system. Run it in preview mode and then remove the superceded patches.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:41 AM
09-29-2004 01:41 AM
Re: Removing unwanted filesets - reason is space needed
#cleanup -p -c 2
Best Regards,
Eric Antunes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:45 AM
09-29-2004 01:45 AM
Re: Removing unwanted filesets - reason is space needed
you can check for integirty of patches using /usr/contrib/bin/check_patches, it will show you corrupted patches/filesets. and you can select to remove.
cleanup -p -c 1 or 2
this can take care of supersaded patches.
Hope this helps
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:48 AM
09-29-2004 01:48 AM
Re: Removing unwanted filesets - reason is space needed
you can use "cleanup" for removing unwanted filesets
eg
cleanup -c 2 (where 2 indicates to remove 2-times superseeded patches, 3 means 3-times ... and so on)
Regards
Franky
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:50 AM
09-29-2004 01:50 AM
Re: Removing unwanted filesets - reason is space needed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:51 AM
09-29-2004 01:51 AM
Re: Removing unwanted filesets - reason is space needed
/opt/contrib/bin/freedisk -v 2>&1 | tee filename.
Freedisk analyses which filesets are not used for so many days.
And to remove then you can do
/opt/contrib/bin/freedisk -a 90 filesets thats have not been used for last 90 days will be removed.
Its a risk basically to something like this except you are very sure of doing it
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 01:54 AM
09-29-2004 01:54 AM
Re: Removing unwanted filesets - reason is space needed
I see software like netscape, netscape6, mozilla that we don't use under /opt. This machine will be used to host Oracle 8i that's all.
Any more suggestions also I'm checking my disk and filesystem info in SAM here is what is reads:
vg00 4MB of 4092 available
vg02 1016 of 6096 available
vg03 0 of 4092 available
vg04 0 of 8680 available
vg05 96 of 17344 available
vg06 3544 of 10712 available
Attached is the output from the bdf command
Any more suggestions? I need to free as much space as possible to install some OS patches, and prepare for upgrading Oracle 8 to 8i.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:06 AM
09-29-2004 02:06 AM
Re: Removing unwanted filesets - reason is space needed
What filesystems are you trying to create space in ?
Doing a :
find
will give you a list of files greater then 1 megabyte.
I find that removing filesets is very rarely the answer to getting more space although the cleanup command mentioned above can be useful and is safe.
Best regards,
Kent M. Ostby
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:15 AM
09-29-2004 02:15 AM
Re: Removing unwanted filesets - reason is space needed
/var -> /dev/vg00/lvol7 (73% used)
/opt -> /dev/vg00/lvol6 (88% used)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 02:49 AM
09-29-2004 02:49 AM
Re: Removing unwanted filesets - reason is space needed
And also cleanup -p -c 1 or 2 shall do the patch cleanup.
Under /var you can check what logs/files you can truncate/compress/delete, regular ones and otherwise too.
use du -sxk | sort -n and find out what is large and needs to be removed/truncated.
Hope this helps
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 03:03 AM
09-29-2004 03:03 AM
Re: Removing unwanted filesets - reason is space needed
If you have some space left on your disks inside vg00 you could extend your /var + /opt filesystems.
Otherwise you need add disks or move a filesystem ( /opt ) to an other volume group.
Check if you have free extends with
# lvdisplay -v vg00
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 03:07 AM
09-29-2004 03:07 AM
Re: Removing unwanted filesets - reason is space needed
# swlist -l product -l subproduct | perl -ne '/\b[a-zA-Z]{2}_[a-zA-Z]{2}\b/ and print'
PHCO_16489 1.0 S-Chinese zh_CN.utf8 locale src and binary
PHCO_16490 1.0 T-Chinese zh_TW.utf8 locale src and binary
PHCO_16491 1.0 Hong Kong zh_HK.utf8 locale src and binary
PHCO_16492 1.0 Japanese ja_JP.utf8 locale src and binary
PHCO_16493 1.0 Korean ko_KR.utf8 locale src and binary
PHCO_18124 1.0 French fr_CA, fr_FR.utf8 locale src, binary
PHCO_18125 1.0 German de_DE.utf8 locale src and binary
PHCO_18126 1.0 Italian it_IT.utf8 locale src and binary
PHCO_18127 1.0 Spanish es_ES.utf8 locale src and binary
PHCO_18128 1.0 Swedish sv_SE.utf8 locale src and binary
then filer out the packages you indeed want to remove, and do
# swremove PHCO_18127 PHCO_18128 ...
Enjoy, Have FUN! H.Merijn [ Who for that reason always compiles his GNU utils with --disable-nls ]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 03:11 AM
09-29-2004 03:11 AM
Re: Removing unwanted filesets - reason is space needed
Is there anything else I need to know?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 03:27 AM
09-29-2004 03:27 AM
Re: Removing unwanted filesets - reason is space needed
swlist -l product | grep -i netscape
swlist -l fileset | grep -i netscape
This will give you idea on what to remove. Then follow using swremove..
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 03:38 AM
09-29-2004 03:38 AM
Re: Removing unwanted filesets - reason is space needed
What disks do you have and why so many groups?
It may seem a silly question: What requirement are you trying to satisfy by purging /var /opt?
Because they seem already quite minimalist compared to standard HPUX11 installs
So if you are short of space its not trying to recuperate in vg00 that will solve your problem but more in reconfiguring you existing other vgs and in that Im sure people her have plenty of suggestions...
My 2 cents
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 03:41 AM
09-29-2004 03:41 AM
Re: Removing unwanted filesets - reason is space needed
swlist -l fileset | grep -i "string"
does it for me. I'll do some removing then see how that goes in terms of freeing space.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 06:54 AM
09-29-2004 06:54 AM
Re: Removing unwanted filesets - reason is space needed
I inherited this system. It is now out of production and I'm trying to prepare it for an Oracle 8 > 8i upgrade.
The confiugration of groups and volume groups I had nothing to do with. Just trying to free space on this machine to install the latest Quality Pack from HP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 07:20 AM
09-29-2004 07:20 AM
Re: Removing unwanted filesets - reason is space needed
this will require a reboot I'm assuming?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 07:24 AM
09-29-2004 07:24 AM
Re: Removing unwanted filesets - reason is space needed
You will need a reboot to extend /var filesystem and probably the same for /opt filesytem.
RJ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 07:26 AM
09-29-2004 07:26 AM
Re: Removing unwanted filesets - reason is space needed
To be exact you need to boot to single user mode.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 07:33 AM
09-29-2004 07:33 AM
Re: Removing unwanted filesets - reason is space needed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 07:58 AM
09-29-2004 07:58 AM
Re: Removing unwanted filesets - reason is space needed
Im waiting on a box to reboot so I have some time to spare...
To help you would be possible knowing what disks you have, its not that I dont trust sam but more prefer some text when it comes to having quickly the needed info
what does vgdisplay vg00 give? seems if you have truly just 4MB available that you are on a 2 GB disk the rest is occupied by your swap... I would suggest then after clearing up a bit vg00 that you take a make_recovery of you system / vg00
You boot on your ignite tape and reduce the swap to say new size 500MB.
Try to give the extra space to /opt and /var
And since /opt/oracle3 in almost unused, reduce it by 500MB or suppress it and create a new swap of 500MB instead
Now you should be more comfortable
All the best
Victor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 08:19 AM
09-29-2004 08:19 AM
Re: Removing unwanted filesets - reason is space needed
root:INLAND3>vgdisplay vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 9
Open LV 9
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 2500
VGDA 2
PE Size (Mbytes) 4
Total PE 1023
Alloc PE 1022
Free PE 1
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
What do I do next?
Please explain in step-by-step. I'm newbie at UNIX thrown into deep end. Any help will be greatly appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-29-2004 08:35 AM
09-29-2004 08:35 AM
Re: Removing unwanted filesets - reason is space needed
So your disk is bigger than I expected...
Total PE 1023 means 1023 blocks of 4Mb...
used 1022 leaving 4 MB as you have seen in sam.
You have one disk of 4 GB!
So I suspect you have 1.5 or more swap configured which is really a lot when running out of space...
Do you have ignite-ux istalled?
$ which make_recovery
/opt/ignite/bin/make_recovery
Do you have a DAT?
In which case put a tape (I hope DDS2) in it and type (as root) make_recovery -A
This will allow you to use this tape to reconstruct your vg00 => reducing your swap to something more affordable like why not 750 MB...
I have some work now but if you reply:
Yes I have a DATand Yes I ptu in a tape and made a make_recovery, And NOW??
It will be with pleasure some good hearted forumers will assist you...
Maybe me from home?
All the best
Victor