- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- removing /swap question
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
12-21-2004 03:04 AM
12-21-2004 03:04 AM
/dev/vg00/swap 5120000 2428 4797795 0% /swap
when I run the swapinfo command I get:
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 0 /dev/vg00/lvol2
dev 4096000 0 4096000 0% 0 - 1 /dev/vg00/swap2
reserve - 170168 -170168
memory 1459116 400412 1058704 27%
To me it looks like I have about 13GB of swap. I have 2GB of RAM so I would only need 4GB of swap. Is it safe for me to remove /dev/vg00/swap and should I remove /dev/vg00/swap2 and leave /dev/vg00/lvol2?
Also I have to increase the size of /opt, currently it is:
/dev/vg00/lvol6 1327104 1284560 42352 97% /opt
Could anyone recommend a size I should increase it to? It's only about 200MB right now.
And finally, I need to increase my / size but have read you are not able to, is that true?
Thanks for any help you can give!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 03:12 AM
12-21-2004 03:12 AM
Re: removing /swap question
Yes, it looks like you could safely remove the "swap2" entry.
As far as the size of /opt is concerned, it depends. Do you anticipate a lot of growth? Do you have a lot of application software to install? If you do, then you might want to double the size to roughly 2Gb. If not, then adding a couple of hundred Mb would be sufficient.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 03:13 AM
12-21-2004 03:13 AM
Re: removing /swap question
It doesn't look like your system is defined to use /swap as actual swap. If it were I would highly recommend against it as file system swap is really slow.
Most likely this /swap file system was intended for another purpose. If you are sure you are not using it then you can remove it without having to worry about reconfiguring swap.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 03:17 AM
12-21-2004 03:17 AM
SolutionUnless you desperately need the disk space, I wouldn't worry too much with swap2. Keep in mind that the only way to remove swap is to comment it out of /etc/fstab (or just delete the line) and reboot your system. There is NO other way.
Judging from your swapinfo output, you aare doing fine so 4GB swap would probably be safe for you.
Now for /opt -- If you have the disk space increase it to 3GB (3072 MB). You are currently at 1.3 GB and 97% used so if anything else needs to be installed to /opt it will probably fail because of disk space issues.
Finally / -- The ONLY fairly easy supported way to increase your / LV is to create an Ignite backup (either tape or network via make_tape_recovery or make_net_recovery), boot from that backup and increase / as part of the reinstall.
There have been discussions here about manipulating the LV immediately following /, but that can be a pain.
The key thing to keep in mind with the / LV is that /stand (lvol1), pri. swap (lvol2) and / (lvol3) MUST be contiguous and all their extents must be contiguous. That's why it is not an easy task.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2004 04:39 AM
12-21-2004 04:39 AM
Re: removing /swap question
Thanks!
Chris