1835116 Members
3795 Online
110076 Solutions
New Discussion

Re: swapon error

 
SOLVED
Go to solution
Seth Clarke
Frequent Advisor

swapon error

Swap was getting full and OVO sent out a critical message. I created another LV and attempted a swapon but recieved this error.

Kernel tunable parameter "maxswapchunks" needs to be increased to add paging on device /dev/vg00/lvol6 (lvol 6 is 250 pysical extents)

I then opened SAM and changed the parameter but it gave me another error

semmnu must be <= (nproc - 4)

nproc = 4096
semmnu = 4096
maxswapchucks = 384

So I reduced semmnu to 4088 and raised maxswapchunks to 1024 and processed the new kernel and rebooted. But the parameters didn't change and I still couldn't perform the swapon

Any ideas why the tunable parameters didn't change. Any log files that I should check?
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: swapon error

Kernel processing appeared to fail.

There may be missing files in the /stand directory.

There should be a log of the problem. Perhaps try processing it with sam, there will be a command and error log.

Make sure /stand isn't too full.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ermin Borovac
Honored Contributor

Re: swapon error

Have a look in /var/sam/log/samlog. There may be some clues in there.
Seth Clarke
Frequent Advisor

Re: swapon error

I'll attach the samlog but it just says that everything completed successfully.

Also, /stand has 217MB available
Patrick Wallek
Honored Contributor
Solution

Re: swapon error

Run the following:

# grep -e nproc -e semmnu -e maxswap /stand/system

And see what the results are.

It appears to me from your log that only semmnu was changed. I did not see anything in the attached log about maxswapchunks.

Try changing it again. Also, if you are going to raise the value of maxswapchunks, go ahead and raise it to its maximum (16384). That way you NEVER have to worry about that particular kernel parameter again.
Seth Clarke
Frequent Advisor

Re: swapon error

I probably didn't get enough of the samlog to show the change of the maxswapchunks

here's the output from the grep

maxswapchunks 1024
nproc 4096
semmnu 4088

They are what they should be but SAM does not show them as such
Victor BERRIDGE
Honored Contributor

Re: swapon error

Hi,
Did you change your params in 2 steps? I mean changing then before rebooting decide to do some more corrections?

Anyway my 2 cents would be having swap issues can be avoided by configuring maxswapchunks to a decent value (in your case 2048) which leaves you enough flexibility to add if needed more swap without having to reboot...


All the best
Victor
Seth Clarke
Frequent Advisor

Re: swapon error

I may have found the issue, but am presented with another issue. I was going through the process list and saw processed from days ago, then did and uptime and saw that it was up for weeks. Which means that when the kernel was processed with SAM it didn't actually reboot. I lost my shell and the network went down but I don't think that it actually rebooted. I may have to perform a halt or shutdown -r to see if it actually boots. That would explain why the grep gave me the correct parameters.
Tony Scully_2
Valued Contributor

Re: swapon error

Seth,

I have occasionally seen this kind of hang when using X11 SAM to change kernel parameters. The session you are using dies, but the server stays up. When I can I use a console session to make kernel changes, or use the cmd line. As you have suggested it's worth a reboot -- it looks like the parameters have been updated in the new kernel, but that one needs moving into place.

Tony
You CAN do that on HP
Seth Clarke
Frequent Advisor

Re: swapon error

rebooting the system was crucial. It did not shutdown after the parameter change. An in house application delayed the shutdowns