- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Removing 2nd 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
01-20-2003 07:59 AM
01-20-2003 07:59 AM
Removing 2nd swap
I have created it by commands:
#newfs -F vxfs -R 200 /dev/vgs/rlvs
#swapon -e /dev/vgs/lvs
Then I have received by swapinfo the following:
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1126400 0 1126400 0% 0 - 1 /dev/vg00/lvol2
dev 102400 0 102400 0% 1978368 - 1 /dev/vgs/lvs
reserve - 330244 -330244
memory 805408 235956 569452 29%
Can I remove 2nd swap on /dev/vgs/lvs without reboot the system?
If not, how I can proceed after reboot to remove it from the system, keeping the primary swap: /dev/vg00/lvol2 ?
Regards,S.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:02 AM
01-20-2003 08:02 AM
Re: Removing 2nd swap
No.
>If not, how I can proceed after reboot to remove it from the system, keeping the primary swap: /dev/vg00/lvol2 ?
swap is required on the boot drive. For secondary swap, comment out the secondary swap entry in /etc/fstab, reboot. The secondary swap is gone. Reclaim the lvol now.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:03 AM
01-20-2003 08:03 AM
Re: Removing 2nd swap
The easiest thing to do is to edit your /etc/fstab file and remove the line that looks some like
/dev/vgs/lvs ... swap
After you reboot it will not be used for swap anymore. You can then remove the LV and VG is you desire with the lvremove and vgremove commands. Or if this LV is the only one in that VG you could vgexport the VG to remove it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:09 AM
01-20-2003 08:09 AM
Re: Removing 2nd swap
To remove your secodary swap space, delete its entry from '/etc/fstab' and reboot. Once activated a swap space cannot be deactivated. Hence a reboot must intervene so that it is not activiated and thus can be removed.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2003 08:15 AM
01-20-2003 08:15 AM
Re: Removing 2nd swap
Manoj Srivastava