- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: increase / reduce 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
06-25-2006 03:36 AM
06-25-2006 03:36 AM
I have 16gb of swap on /dev/vg00/lvol2.
I have created an additional /dev/vg00/lvswap at 18gb.
I dont require both however I do need 18gb therefore can I remove lvol2 or is it better to remove lvswap and extend lvol2?
Thanks for the help.
Solved! Go to Solution.
- Tags:
- swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2006 03:42 AM
06-25-2006 03:42 AM
SolutionFirst of all it's strongly not recommended to have to swap spaces on the same physical disk, so you are 100% right when want to cancel one of them.
I'm not sure that you can extend lvol2 because swap MUST be contigious, so HPUX almost surely will not permit you to extend lvol2, so you have to replace swap spaces.
I'm afraid, you will have to reboot the server. Before the reboot edit /etc/fstab and delete from it lvol2 and leave lvswap.
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2006 04:34 AM
06-25-2006 04:34 AM
Re: increase / reduce swap
I will remove lvswap from vg00 and assign 2gb to another disk as I am not sure I can remove lvol2.
unless any other suggestions?
i require 18gb swap.
cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2006 04:39 AM
06-25-2006 04:39 AM
Re: increase / reduce swap
You cannot remove 'lvol2' which is your primary swap. Too, unless you have free, contiguous extents immediately adjacent to the last physical extent of 'lvol2' you cannot extend primary swap.
If you haven't done a 'swapon' to activate your secondary swap, you could simply 'lvremove' it. If, on the other hand, you have activated it, as noted, remove any entry from '/etc/fstab', reboot, and then 'lvremove the logical volume.
You note that you really are trying to add only 2GB (18-16=2).
If you don't have 'swapmem_on=1' tuned in your kernel, I urge you to do this. This will activate "pseudoswap". This enables 75% of your physical memory to be considered as swap space for process swap reservation. This is ideal for large memory systems and is intended to reduce the need for large amounts of device (disk) swap.
If pseudoswap is on, you will have a line labeled "memory" when you do:
# swapmem -tam
The absence of the "memory"-labeled line means that 'swapmem_on=0' (off).
Since turning on 'swapmem_on" will require a reroot if it is off, you may be able to do one reboot to deactivate your secondary device swap and substitute pseudoswap.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-25-2006 05:10 AM
06-25-2006 05:10 AM
Re: increase / reduce swap
swapmem param is equal to 1 so I will leave 16gb as it is.
cheers
Chris