1826580 Members
3757 Online
109695 Solutions
New Discussion

Re: SWAP configuration

 
SOLVED
Go to solution
Dave Johnson_1
Super Advisor

SWAP configuration

I have an L2000 with 6GB RAM. This server has 2 36GB drives hosting vg00 with all filesystems mirrored on the two drives. SWAP is configured as 4000MB of device on /dev/vg00/lvol2 priority 1 plus 3000MB of device on /dev/vg00/lvolh priority 2.
Next week I will be installed 2 additional 36GB drives. I will be adding RAM at the same time and will be adding swap. Can I move ALL swap to these drives? Can I do this from single user mode or do I need to do an ignite?
I think the steps would be:
1) add new disks to vg00
2) create new 10-12GB swap device on new disks.
3) use lvlnboot to set primary system swap to this new swap
4) reboot to single user mode
5) delete 2 previous swap devices
6) reboot to run level 3
Does this make sence to anyone? I do not play with swap often and do not want to wind up with a mess.
Thankx in advance for your input,
-Dave
4 REPLIES 4
Patrick Wallek
Honored Contributor
Solution

Re: SWAP configuration

Leave your primary swap as LVOL2. Don't mess with it. You HAVE to have some swap at LVOL2.

Once the new disks are installed, set up your SWAP LVOL and make sure it is in /etc/fstab.

Remove your LVOLH LV from /etc/fstab and reboot.

You should verify that your maxswapchunks is set to a high enough number. I would go ahead and set it to its maximum (16384 I think) so you don't have to worry about it ever again. This will require a recompile of the kernel and a reboot.
Dave Johnson_1
Super Advisor

Re: SWAP configuration

This is what I love about this forum, the quick execlent response.
I checked and I will have to modify maxswapchunks, it is 3501 currently.
I will do as suggested.
Thank you,
-Dave
Sandman!
Honored Contributor

Re: SWAP configuration

If all your current swap resides on vg00/lvol2 then you're better off leaving it as it is. Increase swap by igniting the system, re-installing it and then reconfiguring vg00 with the additional disks.

cheers!
Dave Johnson_1
Super Advisor

Re: SWAP configuration

Thanks for your input also sandman.
-Dave