- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Primary Swap extending.
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
03-23-2008 08:09 AM
03-23-2008 08:09 AM
Can anyone guide me to extend the primary swap . I need primary swap only.
HP UX 11iV1
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2008 08:41 AM
03-23-2008 08:41 AM
SolutionFor all purposes, you can't extend primary swap. Swap extents must be contiguous disk extents and the ability to move extents in the logical volume adjacent to primary swap (that is in lvol3) is not going to exist. If you insist, take an Ignite image and recovery your server using that image while resizing your vg00 filesystems during the recovery process.
In reality, there is no need to extend primary swap. Simply add one or more secondary swap devices.
You can build your secondary swap on a non-vg00 volume group, or if necessary on vg00. Make the secondary device swap something *other* than one (1), which is the priority assigned to primary swap. Lower swap priority devices are used in preference to higher priority ones. Do something like:
# lvcreate -C y -r n -L 4096 -n lvol1 /dev/vg01
# swapon -p 0 /dev/vg01/lvol1
# echo "/dev/vg01/lvol1 ... swap pri=0 0 0" >> /etc/fstab
The idea of making the swap device priorities unequal, especially when they reside on the same physical volume, is to avoid mechanical disk head movement should swapping ever occur. Of course, if/when you do actually perform swap I/O your performance is degrading anyway!
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-23-2008 07:54 PM
03-23-2008 07:54 PM
Re: Primary Swap extending.
Extending your primary swap area isnt going to be easy, as it needs to be contiguous. This will be a long and tricky job.
Much easier to simply add another swap area, you can do this online without a reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 02:52 AM
03-24-2008 02:52 AM
Re: Primary Swap extending.
follow up the above answeres
do it like this way
first create logical volume
then
create new swap space
activate it
swapon -a
if u want it permanently
put in /etc/fstab file
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2008 10:39 PM
03-24-2008 10:39 PM
Re: Primary Swap extending.
HP recommended U, never extend root, boot & swap space. If U want extend the root, boot & swap then U do ignite backup then start ignite recovery that time U change existing root, boot & swap space (I mean it is new install OS).
If it is urgent matter then U creates a new VGxx then U following this process:
1) lvcreate -C y -m 1 -L 8192(physical memory dubel space) -n lvolx /dev/vgxx
2) Next create an entry in /etc/fstab like this:
/dev/vgxx/lvolx ... swap pri=2 0 0
3) swapon â a
Best of luck,
Thanks â Yaqub
HP Support!!!