- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Removing swap
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
05-06-2002 11:44 AM
05-06-2002 11:44 AM
I have on my system two swap space configured on two different disk and I want to remove one of the swap space. I know I can use sam to do this or do lvreduce. Is their any way I can prevent data loss. What I am trying to find out, is their a right way to do this?
Thanks for your help.
Mike
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:46 AM
05-06-2002 11:46 AM
Solutiona) Comment out the line for the swap area in /etc/fstab.
b) Reboot the machine.
c) The swap lvol is now not activated anymore and you can remove it with lvremove command.
Ex:
# lvremove /dev/vg01/lvol2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:47 AM
05-06-2002 11:47 AM
Re: Removing swap
The key to removing a swap device is that you must reboot. Delete the swap entry (that you want to negate) from '/etc/fstab'. Next, reboot. Lastly, 'lvremove' the device swap.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:47 AM
05-06-2002 11:47 AM
Re: Removing swap
It is not possible to remove swap online. You must deactivate the swap you want to remove and reboot by using these steps:
1. Comment out the line for the swap area in /etc/fstab.
2. Reboot.
3. The swap lvol is not activated anymore, so you can remove it with lvremove.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:47 AM
05-06-2002 11:47 AM
Re: Removing swap
If your more comfortable with sam use that.
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:54 AM
05-06-2002 11:54 AM
Re: Removing swap
You cannot remiove secondary swap online. You need to disable it or commnet the entry in /etc/fstab , then reboot the machine and the reclaim the volume .
Manoj Srivastava
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 11:57 AM
05-06-2002 11:57 AM
Re: Removing swap
What about my "maxswapchunck" entry in kernel. Do I need to reduce that?
Thanks,
Mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 12:03 PM
05-06-2002 12:03 PM
Re: Removing swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 12:03 PM
05-06-2002 12:03 PM
Re: Removing swap
no, you would not even want to reduce it:
Imagine at some point in the future the needs for more swap space might occur. Then you can add more swap space again *online* (without reboot, or the need to stop the application)!
Regards,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 12:05 PM
05-06-2002 12:05 PM
Re: Removing swap
NO. You can leave it like that. There is no need to do this.
HTH,
Shiju
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2002 12:10 PM
05-06-2002 12:10 PM
Re: Removing swap
Thanks, I will assign points. It's a party time, every one gets 10 points for quick reply.
Thanks,
Mike