- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Changing 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
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
тАО11-27-2001 01:29 PM
тАО11-27-2001 01:29 PM
Please advise?
# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 1536000 148772 1387228 10% 0 - 1 /dev/vg00/lvol2
dev 2048000 144856 1903144 7% 0 - 1 /dev/vg00/lvswap2
reserve - 919096 -919096
memory 1171704 643264 528440 55%
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2001 01:36 PM
тАО11-27-2001 01:36 PM
SolutionYou can easily do this by adding another
logical volume and placing swap on it.
# lvcreate -n lvswap3 /dev/vg00
# lvextend -L 256 /dev/vg00/lvswap3
# swapon /dev/vg00/lvswap3
Edit your /etc/fstab file and add the
following entry.
/dev/vg00/lvswap3 ... swap pri=1 0 0
HTH
-Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2001 01:37 PM
тАО11-27-2001 01:37 PM
Re: Changing Swap
This is from an HP LVM doc.
IX) How to increase the primary swap
Note: Because of the contiguous allocation policy, create a bigger
logical volume and modify the Boot Data Reserved Area (BDRA) to make it
primary.
1) lvcreate -C y -L 240 /dev/vg00
The name of this new logical volume will be displayed on the
screen, note it, it will be needed later. (let say it
is /dev/vg00/lvol8)
Note: This new logical volume has to be in vg00
2) lvlnboot -v /dev/vg00
This will display the current root and swap volumes
Note: lvol2 is the default primary swap.
3) lvlnboot -s /dev/vg00/lvol8 /dev/vg00
Note: use the logical volume name from step 1
4) lvlnboot -R /dev/vg00
Recover any missing links to all of the logical volumes specified
in the BDRA and update the BDRA of each bootable physical volume in
the volume group
5) reboot the system
Hope this helps,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2001 01:48 PM
тАО11-27-2001 01:48 PM
Re: Changing Swap
If you have additional space, create another swap volume of required size and enable swap on it.
Remove the entry for existing swap (lvswap3) from /etc/fstab and reboot the machine to reclaim the lvol.
Thanks.
Prashant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2001 01:51 PM
тАО11-27-2001 01:51 PM
Re: Changing Swap
If you don't want to add a third swap area and just want to expand the lvswap2 one, you will have to comment out the entry for lvswap2 in /etc/fstab and reboot. When the system comes back up, you can use lvextend to expand that logical volume (lvextend -L 2250 /dev/vg00/lvswap2) and then use swapon /dev/vg00/lvswap2
to add it back in. There is no way to remove a swap area without rebooting.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО11-27-2001 02:05 PM
тАО11-27-2001 02:05 PM
Re: Changing Swap
Morever you want to make sure the swap logical volume sizes are equal (not mandatory). So, I would say the preferred method is Craig's. During that process you would want to create two lvols of equal size and contiguous on different disks totalling to 3.75 GB having equal priority.
-Sri