- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: 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
03-13-2003 01:07 PM
03-13-2003 01:07 PM
Can I create swap in diferents vgs?
How can I increase the primery swap?
How can I create the secondary swap commands?
My problem is when I want to create another swap with the sam, I have the error, that I have to compile the new kernel, what parameters I have to change to enable the second swap in the kernel?
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:13 PM
03-13-2003 01:13 PM
Re: Swap?
You can create swap in different VGs.
Primary can not be increased.
Best way for you to use sam to create secondary swap.
SAM>disk and File systems> swap.. and go from there...
Goodluck...
-USA..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:19 PM
03-13-2003 01:19 PM
Re: Swap?
You can't extend a primary swap partition, but you can create addition ones.
The difference between primary and secondary is simply the priority number given.
The kernel parameter your after is called 'maxswapchunks'. Before we can really recommend a value what do you have now?
# kmtune -l -q maxswapchunks
I've attached a white paper on memory management. It also contains a great deal of information on understanding swap.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:20 PM
03-13-2003 01:20 PM
Re: Swap?
1) Certainly, although swap is at the LV level - not VG.
You just create an LV normally & in it's fstab entry you denote it like
/dev/vgSwap/swap1 ... swap pri=0 0 0
2) Primary can be increased ONLY if you have free space contigous to the existing sawp - highly unlikely. One normally has to Ignite the system & reconfigure on reload to do this. I never increase primary, I normally add more & rearrange priority to give the faster array disks where I'm designating swap a higher priority which means they're used first.
3) swapon -a is the normal command to enable new swap.
4) You're probably bumping up against maxswapchunks - the limit of swap chunks that can be managed. You take that value & the value of swchunk - the size of the chunks in 1K blocks - that value determines the maximum amount of swap you can have until you increase one or the other. I would recommend you increase maxswapchunks. This will require a reboot.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:23 PM
03-13-2003 01:23 PM
Re: Swap?
How much should be increase? To create another swap the 700 MB
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:31 PM
03-13-2003 01:31 PM
Re: Swap?
- Primary swap must be contiguous because the dump space (usually in pri swap) has to be contigous. Since pri swap is defined during OS installation, you'll will not be able find any free contigous extents to extend your pri swap. To extend it you need to use the ignite process. Hence secondary swap space is added if additional swap is needed.
- To create a 400MB 2ndary priority 1 swap space (say /dev/vg01/swap2)..
# lvcreate -L 400 -n swap2 -C y -r n /dev/vg01
# swapon -p 1 /dev/vg01/swap2
# swapinfo -tam
# vi /etc/fstab
....
/dev/vg01/swap2 ... swap pri=1 0 1
....
- The parameter to change is "maxswapchunks".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:40 PM
03-13-2003 01:40 PM
Re: Swap?
As mentioned, the existing primary swap area is contiguous. Attempting to fix this can only be done with an ignite tape with an outage of at least 1-2 hours. I would suggest that you create a second primary swap partition. Our friend SK Chan has provided a good example.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-13-2003 01:43 PM
03-13-2003 01:43 PM
Solutionmax-swap=maxswapchunk*swchunk*1024bytes
The "swchunk" is another kernel parameter (default is 2048 I think). You need to add up all the swap space to determine the total before you can calculate the maxswapchunk needed. For example setting maxswapchunk to 1024 gives ..
1024*2048*1024bytes ie about 2GB of total swap.