- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Erase Swap space
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-13-2002 12:04 AM
09-13-2002 12:04 AM
Erase Swap space
I wuold like to remove swap space. Actually my swap space is configured as:
/dev/vg00/lv_swap1 ... swap pri=1 0 0
/dev/vg00/lv_swap2 ... swap pri=1 0 0
/dev/vg00/lvol_swap ... swap defaults 0 0
/dev/vg00/lvol2 ... swap pri=1 0 0
I want remove it and put all swap space in /dev/vg00/lvol9, same as:
#swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol2
dev 8388608 0 8388608 0% 0 - 1 /dev/vg00/lvol9
reserve - 170852 -170852
memory 6473996 1668212 4805784 26%
How to do it ? Correct me if I wrong:
edit and comment the line related to swap in /etc/fstab.
Reboot the machie.
Create logical volume with swap.
Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 12:10 AM
09-13-2002 12:10 AM
Re: Erase Swap space
I think you mean remove all the swap areas apart from vg00/lvol2 as you cant remove this one ?
Anyway, easy enough. Create your new swap area, lvol9 to the size you want, add it to /etc/fstab, then run swapon -a to activate it.
Then to deactivate the old ones simply comment out their entries from /etc/fstab and reboot and youre done!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 12:13 AM
09-13-2002 12:13 AM
Re: Erase Swap space
Steps to be followed
1) Edit /etc/fstab
2) comment old swap entries
3) leave this entry
/dev/vg00/lvol9 ... swap pri=1 0 0
4)Reboot the system
regards,
U.SivaKumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 12:30 AM
09-13-2002 12:30 AM
Re: Erase Swap space
The firs one (miss one) give me this info:
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol2
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol_swap
dev 3072000 0 3072000 0% 0 - 1 /dev/vg00/lv_swap1
dev 3072000 0 3072000 0% 0 - 1 /dev/vg00/lv_swap2
reserve - 167772 -167772
memory 6463800 149936 6313864 2%
Teh second one (correct one) is:
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1048576 0 1048576 0% 0 - 1 /dev/vg00/lvol2
dev 8388608 0 8388608 0% 0 - 1 /dev/vg00/lvol9
reserve - 170852 -170852
memory 6473996 1668932 4805064 26%
How to put the first machine equal to the second one ?
Thanks a lot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2002 02:49 AM
09-13-2002 02:49 AM
Re: Erase Swap space
vg00/lvol2 is (usually) default swap and should not appear in fstab. But WILL be enabled (before fstab is read. Seeoutput of lvlnboot -v.)
Also remember that swap lvols have to be contiguous.
Regards,
Trond