- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Deallocating swap spaces
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
Discussions
Discussions
Forums
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
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-28-2009 01:55 PM
тАО01-28-2009 01:55 PM
My server is having EVA5K attached to it and now storage guys are taking off that storage and will assign new storage to my server. I unmounted all the logical volume I have created from this storage but when I found that swap space is also allocated from this storage though of discussing with you guys.
Here is the output:
root@abc:/> swapinfo -a
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 8388608 67112 8321496 1% 0 - 1 /dev/vg00/lvol2
dev 41943040 67304 41875736 0% 0 - 1 /dev/vg05/swap
reserve - 656692 -656692
memory 49937648 11309812 38627836 23%
I have 2 swap spaces one is from local disk that is vg00 and the other one which I want to take off is from vg05.
This server is not in use and downtime is going on. Can you please suggest me the procedure to take off this swap space also I want to know if this swap space is having mirror volume how can check that.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 02:13 PM
тАО01-28-2009 02:13 PM
Solutionyou can do a
#lvdisplay -v /dev/vg05/swap
to see if that has any mirror copies.
#uncomment the /etc/fstab entry for that VG that is activating this swap:
the entry might look like this
/dev/vg05/swap ... swap pri=X 0 1
please uncomment that entry.
reboot the server and the space /dev/vg05/swap will not be activated as swap.
Regards
Sujit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 02:20 PM
тАО01-28-2009 02:20 PM
Re: Deallocating swap spaces
Create a new logical volume on you new san and use that volume to replace the old swap filesystem.
The /etc/fstab holds the entry for both sap files, you just need to change the entry (/dev/vg05/swap) to your new swap lvol and reboot.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 05:59 PM
тАО01-28-2009 05:59 PM
Re: Deallocating swap spaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 07:54 PM
тАО01-28-2009 07:54 PM
Re: Deallocating swap spaces
Hi Panks,
Its ok to comment the swap entry . considering your server "doesn't panic or rebooted accidently" Once the Server reboot or startup it will look for "entry" for swap in the "/etc/fstab" and than will complient.
so choice is yours, ..:)
(For Me, Will perform this activiyt once have moved EVA to EMC)
Hope this Helps
Thanks,
Johnson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-28-2009 07:57 PM
тАО01-28-2009 07:57 PM
Re: Deallocating swap spaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 04:09 PM
тАО02-03-2009 04:09 PM
Re: Deallocating swap spaces
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-03-2009 05:21 PM
тАО02-03-2009 05:21 PM
Re: Deallocating swap spaces
for thsi you can create an LV with the Contiguous Policy that is lvcreate with -C y option and also with the Strict policy -s y.
Then after the creation of such an LV which we intend to use as swap,
you can do this two ways.
1)using SAM/SMH -- Disks and Filesys Management -- Swap Space Managemet -- and add new swap space to the system -- on all reboots -- this shall also add an entry to the /etc/fstab.
2)other way is once you have created the Swap LV using lvcreate -L
a)
add an entry to the /etc/fstab like this
/dev/vgXX/lvolY ... swap pri=1 0 0
then do
#swapon -a
BY the Way you can reopen this thread to continue further.
Regards
Sujit