- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to extend the swap after i add memory
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-18-2003 11:01 PM
11-18-2003 11:01 PM
The memory in my host is 2GB now ,but i will add it to 6GB, how to extend the swap after i add the memory ?
(it's impossible to re-install the system!)
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 11:03 PM
11-18-2003 11:03 PM
Solutionso create a new lvol in vg00 to the size of the extra RAM you just added, add in /etc/fstab set it to swap, then do swapon -a and youre done! (see man swapon)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 11:05 PM
11-18-2003 11:05 PM
Re: how to extend the swap after i add memory
Assuming that your kernel parameters (maxswapchunks & swchunk) will allow the extra space without extension, all you need to do is:
1) Create a swap LV - create VG if necessary.
2) Add the swap entry to /ets/fstab - this will enable this swap at boot. Entry will look like:
/dev/vg_name/swap_lv_name ... swap pri=0 0 0
3) Run swapon -a
That's it.
HTH,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 11:06 PM
11-18-2003 11:06 PM
Re: how to extend the swap after i add memory
if you want make it 4GB mirrored and put it in vg00:
create lvol:
lvcreate -L 4196 -m 1 -r n -C y -n lv_swap vg00
add into /etc/fstab:
/dev/vg00/lv_swap swap swap pri=3 0 0
activate:
swapon -a
check
swapinfo -mt
Regards
Bernhard
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 11:07 PM
11-18-2003 11:07 PM
Re: how to extend the swap after i add memory
Stefan is correct (as always? :), but if you're unsure about the procedure you can use SAM to add new swap LVOLs.
good luck,
Thierry.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 11:08 PM
11-18-2003 11:08 PM
Re: how to extend the swap after i add memory
With the addition of RAM check the utilization of memory and swap.
If the swap which is configured now is not fully used then you can stay with the present amount of memory.
Also,It is not that you need to extend your primary swap size.
You can add secondary swap on a non-system vg and enable it to add to swap area.
Another thing is to note if you are configuring a dump then your swap should be more than the RAM on the machine.
Just add a secondary swap on teh machine.There is no need to extend the primary
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2003 11:10 PM
11-18-2003 11:10 PM
Re: how to extend the swap after i add memory
I'm of the belief that secondary swap *especially* on non-vg00 VGs should *always* be given a higher (i.e. lower pri #) simply to keep the traffic off vg00.
My 2 cents,
Jeff