- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: how to increase the primary 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
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
тАО02-20-2001 10:59 PM
тАО02-20-2001 10:59 PM
Swap space of my server is configured as :Primary swap /dev/vg00/lvol2 size is 1GB
I want increase it to 2 GB. but while trying to increase swap it gives following error :
The command used to extend logical volumes, /sbin/lvextend, has
failed. The stderr output from the command is shown below. The
logical volume has not been extended.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol2" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy
I have enough free space on vg00.
thanks
Animesh
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2001 11:45 PM
тАО02-20-2001 11:45 PM
Re: how to increase the primary swap space
You could alternatively create a new logical volume for swap eg. lvol9, and set the swap priority lower (probably 1) than the existing swap space.
But ideally, if you have another volume group on another physical disk, you should make the same on that volume group and set the swap priority equal to your existing swap. This would increase swap performance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 12:06 AM
тАО02-21-2001 12:06 AM
Re: how to increase the primary swap space
You have enough free space in your volume group but they're not contiguous, that means consecutive blocks. As I remember one requirement for primary swap is that it must be contiguous, that was the reason why you coudln't extend the swap volume.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 12:56 AM
тАО02-21-2001 12:56 AM
Re: how to increase the primary swap space
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 02:01 AM
тАО02-21-2001 02:01 AM
Re: how to increase the primary swap space
Have a look at swapon(1M), this will tell you all the options you have.
For better swap performance i would recomend using a second swap on a second disk with the same priority.
Regards Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 12:34 PM
тАО02-21-2001 12:34 PM
Re: how to increase the primary swap space
I agree that your best bet is to add secondary swap on another disk rather than increase the size of primary swap. However, if you must, try this:
Use pvdisplay -v on your boot disk and note which extents are used for your primary swap. More importantly, note what logical volume(s) follow the swap extents.
Use pvmove -n to move the other logical volumes onto another disk
Use lvextend to increase your primary swap.
*IMPORTANT* Use pvmove -n to replace the moved logical volumes back onto the boot disk. (Depending on what was moved, you may have an unbootable system if you don't put the lv's back.)
I think these steps will work but I'm not really sure so...
--Bruce
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2001 10:48 PM
тАО02-21-2001 10:48 PM
Re: how to increase the primary swap space
Thanks a lot for your response.
I have created a secondary swap on different VG.
Thanks
Animesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-07-2001 06:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2001 12:25 AM
тАО03-12-2001 12:25 AM
Re: how to increase the primary swap space
lvcreate -r n -C y /dev/vgNAME
You need to give points too..
not just to one person!!
Later,
Bill