1825719 Members
2854 Online
109686 Solutions
New Discussion

Device swap

 
Ashish_29
Occasional Contributor

Device swap

One LVOL was created of 10GB as secondary device swap.

later extended the same volume to 15GB from SAM. While executing 'swapon' it says paging is already enabled.

But swapinfo shows the available swap space is 10GB.

How to enable the rest 5GB space for swap?
5 REPLIES 5
RAC_1
Honored Contributor

Re: Device swap

If swap space is used from that lvol, you can not doo that on the fly. You will have to reboot. (Also need to tune maxswapchunks parameter)

Anil
There is no substitute to HARDWORK
TwoProc
Honored Contributor

Re: Device swap

I don't think you're going to get it until a reboot. For that reason - in the past when I've needed more swap, I've generally made a "tertiary" secondary swap. But, I think I've always assumed that it wasn't do-able to extend swap in the same lvol live, and therefore have never tried it.
We are the people our parents warned us about --Jimmy Buffett
A. Clay Stephenson
Acclaimed Contributor

Re: Device swap

This can only be done via a reboot. I hate to think that you actually need this much swapspace because if you do, your performance is absolutely terrible.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: Device swap

It's also a good idea to check your current maxswapchunks kernel tunable because otherwise it might require two reboots.
If it ain't broke, I can fix that.
HGN
Honored Contributor

Re: Device swap

Hi

Enabling swap on the fly is not possible and a reboot is required to enable this, like thers who have suggested you can look into the maxswapchunks kernel parm also.

Rgds

HGN