- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Add more 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
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-21-2002 09:55 AM
03-21-2002 09:55 AM
Vito
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 09:58 AM
03-21-2002 09:58 AM
Solution1. Create a contiguous logical volume:
lvcreate -L size -C y /dev/vgX
2. Turn swap on in the logical volume:
swapon /dev/vgX/lvolY
IMPORTANT: The default priority for swap is "1". It is a recommended to have
all the swap devices set to the same priority.
3. Edit the /etc/fstab so that swap will be turned on at boot-up; add the
following line:
/dev/vgX/lvolY ... swap defaults 0 2
/dev/vg00/swap2 ... swap pri=1 0 0
or (to enable every swap definition in /etc/fstab, run swapon -a )
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 10:00 AM
03-21-2002 10:00 AM
Re: Add more swap space
# lvcreate -L 800 -n swap2 -C y -r n /dev/vg00
==> create 800MB contigous lv called swap2 in vg00 with bad block reallocation turned off
# swapon -p 1 /dev/vg00/swap2
==> enable swap with priority 1.
# swapinfo -tam
==> check to see if added swap is enabled.
# vi /etc/fstab
....
/dev/vg00/swap2 ... swap pri=1 0 1
....
==> add entry in /etc/fstab file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 10:01 AM
03-21-2002 10:01 AM
Re: Add more swap space
volume group /dev/vg00:
- As root type lvcreate -L 100 -C y -s y -r n /dev/vg00, which should return:
Logical volume "/dev/vg00/lvol10" has been successfully created with character device "/dev/vg00/rlvol10".
Logical volume "/dev/vg00/lvol10" has been successfully extended.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
* Note: -L 100 in the previous command specifies the size of the swap device
- Add "/dev/vg00/lvol10 ... swap pri=1 0 0" to the /etc/fstab file (where pri=1 is the priority of the swap)
- Type swapon -a
Hope that helps,
Ross Martin
HP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 10:03 AM
03-21-2002 10:03 AM
Re: Add more swap space
If your kernel is not prepared for the extra swap, you will have to walk through a couple of others steps and then reboot.
Hope it helps.
John
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 10:32 AM
03-21-2002 10:32 AM
Re: Add more swap space
Try these links,
http://us-support.external.hp.com/cki/bin/doc.pl/sid=11c1711b177c8afc57/screen=ckiDisplayDocument?docId=200000055877489
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2002 04:26 PM
03-21-2002 04:26 PM
Re: Add more swap space
lvcreate -L 500 -n swap -C n /dev/vg00
This command will create a 500 megabyte contigious logical volume called swap in
the vg00 volume group
You can enable the swap using swapon command.
swapon -p 2 /dev/vg00/swap
This command enables swap on the new "/dev/vg00/swap" volume that you just created, with a priority of 2. You may want to make that a priority 1 also.