- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: create secondary 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
11-06-2008 01:56 AM
11-06-2008 01:56 AM
create secondary swap
#/usr/sbin/swapon /dev/vg01/lvswap2
After this my swapinfo looks liek this now:
# /usr/sbin/swapinfo -tam
Mb Mb Mb PCT START/ Mb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4096 1603 2493 39% 0 - 1 /dev/vg00/lvol2
dev 5000 0 5000 0% 0 - 1 /dev/vg01/lvswap2
reserve - 1948 -1948
memory 2037 1605 432 79%
total 11133 5156 5977 46% - 0 -
Both swap are showing as PRI=1, how do I change the /dev/vg01/lvswap2 to PRI=2 without reboot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 02:11 AM
11-06-2008 02:11 AM
Re: create secondary swap
swapon -p could have used for this instead of just swapon
regards
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 02:18 AM
11-06-2008 02:18 AM
Re: create secondary swap
Try this..
swapon -p 2 /dev/vg01/lvswap2
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 02:20 AM
11-06-2008 02:20 AM
Re: create secondary swap
/bin/ksh: swapon: not found
# /usr/sbin/swapon -p 2 /dev/vg01/lvswap2
/usr/sbin/swapon: /dev/vg01/lvswap2 is already enabled for paging.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 02:52 AM
11-06-2008 02:52 AM
Re: create secondary swap
You can change the priority through SAM. But I think it will be effective after you reboot the server.
Ganesh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 02:54 AM
11-06-2008 02:54 AM
Re: create secondary swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 03:15 AM
11-06-2008 03:15 AM
Re: create secondary swap
http://docs.hp.com/en/5992-4174/ch04s05.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 03:25 AM
11-06-2008 03:25 AM
Re: create secondary swap
You have to take a reboot to reset swap PRI=1 to PRI=2 no other option.
Suraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2008 09:42 AM
11-06-2008 09:42 AM
Re: create secondary swap
You would need to reboot the server.
One important thing prior to reboot - please add the entry of the swap device in /etc/fstab (with the PRI set to 2), so that the secondary swap will persist to be enabled across reboots.
Regards,
Ninad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2008 01:34 AM
11-12-2008 01:34 AM
Re: create secondary swap
But before that you need to edit the /etc/fstab file amd change priority for this swap lvol to 2.
Sagar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2008 02:26 AM
11-12-2008 02:26 AM