- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- 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
04-25-2007 03:35 AM
04-25-2007 03:35 AM
Could you please guide line to me, how I can create secondary swap space in my system under vg00 (H/W rp4440 & OS 11.23.
Please give me your feedback ASAP.
Regards-Yaqub
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 03:48 AM
04-25-2007 03:48 AM
Re: Secondary swap
1) Create a logical volume with contiguous allocation. I'll assume that it is mirrored as well. Let's pretend it is /dev/vg00/lvol9, size 8192MiB.
lvcreate -C y -m 1 -n lvol9 /dev/vg00
2) Next create an entry in /etc/fstab like this:
/dev/vg00/lvol9 ... swap pri=2 0 0
3) swapon -a
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 03:51 AM
04-25-2007 03:51 AM
Re: Secondary swap
first create the logical volume
lvcreate -L 4000 -n lvsecswap -C y -r n /dev/vg00
then activate it with priority 1
swapon -p 1 /dev/vg00/lvsecswap
then check to see if it came online
swapinfo -ta
if everything looks okay, add it to your fstab so that it gets activated every time your system reboots
(edit /etc/fstab with editor of your choice and add this line below to it)
/dev/vg00/lvsecswap ... swap pri=1 0 1
hope this helps
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 03:56 AM
04-25-2007 03:56 AM
Re: Secondary swap
This:
lvcreate -C y -m 1 -n lvol9 /dev/vg00
should be:
lvcreate -C y -m 1 -L 8192 -n lvol9 /dev/vg00
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 04:05 AM
04-25-2007 04:05 AM
Re: Secondary swap
http://docs.hp.com/en/B2355-90672/B2355-90672.pdf
Hope this helps,
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 04:10 AM
04-25-2007 04:10 AM
Re: Secondary swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 04:48 AM
04-25-2007 04:48 AM
Re: Secondary swap
Thank you very much for your reply.
I will configer on my system secondary swap only 4GB. When I will mirror other lvol then secondary swap mirror or befor? If after then I will execute only for below command:
lvcreate -C y -m 1 -L 4096 -n lvol9 /dev/vg00 then creat /etc/fstab
/dev/vg00/lvol9 ... swap pri=2 0 0
Please confirm me.
Regards-Yaqub
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 04:53 AM
04-25-2007 04:53 AM
Re: Secondary swap
You can create a LVOL in a certain size, setup your swap and mirror
or
create the LVOL with a 0 size, mirror, extend the size and create your swap
the second procedure is much faster, but this is the only difference
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 04:58 AM
04-25-2007 04:58 AM
SolutionYour steps are:
1) lvcreate
2) Add a "swap" line to /etc/fstab.
3) swapon -a
I prefer this to the the swapon -e method which takes the options from the command line because the swapon -a command reads your /etc/fstab tab, checks for syntax, and enables any unused swap entries. This ensures that not only is your new swap space enabled now but also will be enabled at the next boot.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2007 11:11 PM
04-25-2007 11:11 PM
Re: Secondary swap
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2007 12:22 AM
04-26-2007 12:22 AM