- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- what is the quickest way to increase 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
10-24-2001 03:48 AM
10-24-2001 03:48 AM
what is the quickest way to increase swap space
thanx
mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 03:51 AM
10-24-2001 03:51 AM
Re: what is the quickest way to increase swap space
/usr/sbin/swapon -l 5000 -r 10000 -p 2 /paging
do a man on swapon
man 1m swapon
live free or die
harry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 03:55 AM
10-24-2001 03:55 AM
Re: what is the quickest way to increase swap space
First you have to make sure you have space to extend it, ie unpartitioned space. If not, it will be more complicated since you will have to reduce the size of some other partition and increase the size of the swap.
E.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 03:59 AM
10-24-2001 03:59 AM
Re: what is the quickest way to increase swap space
You can add more device swap without having to reboot (assuming that you have a sufficient value for 'maxswapchunks' already defined for your kernel.
You can use SAM if you like. Ideally, construct a secondary device swap that is the same size as your primary, but on a different disk, and set its priority to the same as the primary's. In this way, you will achieve interleaving and improve performance.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 04:01 AM
10-24-2001 04:01 AM
Re: what is the quickest way to increase swap space
by the way it is currently 1024mb
and space available in vg00 is 26752mb.
should there be any problem increasing it using sam
mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 04:14 AM
10-24-2001 04:14 AM
Re: what is the quickest way to increase swap space
If the 1024 mb of space is lvol2...than you do not want to increase your swap by increasing lvo2. lvol2 is set when you ignite a box..the space here must remain contiguous...and to add space here is very involved and tricky.
If you are going to add disk swap than you want to ensure that the new swap will be on a seperate disk device. So, make sure where you create your new swap_lvol that it is. And yes you can add this via SAM.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 04:17 AM
10-24-2001 04:17 AM
Re: what is the quickest way to increase swap space
No SAM should be fine for that. If your try to add too much swap space you may receive a warning about needing to increase maxswapchunks and rebuild the kernel. If vg00 is consists of one 1 disk or 2 strictly mirrored disks then make certain that you do not assign priority 1 (that of primary swap) to your new swap space. If you do that primary and new swap will be interleaved on the same disk and you can imagine what the head positioning mechanism would be doing. Equal priority is desired if the swap is spread over multiple devices but definitely not desired if spread over one.
Clay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 06:25 AM
10-24-2001 06:25 AM
Re: what is the quickest way to increase swap space
Since you have space in
Vg00, you can create a new
device swap partition there as
follows:
lvcreate -L Size -C y -n swap1 /dev/vg00
(size in Mb)
swapon /dev/vg00/swap1
If you want this to be'
permanent across reboots,
edit the fstab file and
add the entry
/dev/vg00/swap1 ... swap pri=1 0 0
# do a swapinfo -mt to see
whether the swap is enabled
and being used.
For more info, do a man on
swapon
HTH
raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 06:38 AM
10-24-2001 06:38 AM
Re: what is the quickest way to increase swap space
Another thing, once you add your swap device, make sure you add the entry to the /etc/fstab
/dev/vgxx/lvoly ... swap defaults 0 0
(man fstab for more information on adding entries to the fstab)
Otherwise the next time you reboot the machine, the additional swap won't be configured.
-Regards
Ramesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 08:50 AM
10-24-2001 08:50 AM
Re: what is the quickest way to increase swap space
i created another lv /dev/vg02/swap
and it increased maxswapchunks for me.
swapinfo showed it being used and thus far
my problem hasn't returned.
Again thanks everyone
Have a great week
:-))
MIke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2001 09:42 AM
10-24-2001 09:42 AM
Re: what is the quickest way to increase swap space
Look at the thread below.
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90742/B2355-90742_top.html&con=/hpux/onlinedocs/B2355-90742/00/00/50-con.html&toc=/hpux/onlinedocs/B2355-90742/00/00/50-toc.html&searchterms=add%20swap&queryid=20011024-104520
Hope this helps.
thanks