Operating System - HP-UX
1834285 Members
2362 Online
110066 Solutions
New Discussion

confused output of swapinfo

 
SOLVED
Go to solution
svilen888
Occasional Advisor

confused output of swapinfo

Hi!
I was created a new pri-swap device /old was lvol10/,
using:
#lvcreate -l 400 -C y -r n -n lvol2 /dev/vg00
#lvrmboot -s vg00
#lvlnboot -s /dev/vg00/lvol2
#lvlnboot -d /dev/vg00/lvol2
#lvlnboot -v

... shutdown ...

After reboot I'm seeing:

#lvlnboot -v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c2t1d0 (0/1/1/0.1.0) -- Boot Disk
/dev/dsk/c2t0d0 (0/1/1/0.0.0)
Boot: lvol1 on: /dev/dsk/c2t1d0
Root: lvol3 on: /dev/dsk/c2t1d0
Swap: lvol2 on: /dev/dsk/c2t1d0
Dump: lvol2 on: /dev/dsk/c2t1d0, 0

#swapinfo -tam

TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 12800 0 4096 0% 0 - 1 /dev/vg00/lvol2
reserve - 83 -83
memory 12981 292 12689 2%
total 25781 375 16702 1% - 0 -

So as you see the output of last #swapinfo
is confused - used+free is not equal to all swap space on /dev/vgoo/lvol2.

What is the problem?
Regards.


liana
2 REPLIES 2
Patrick Wallek
Honored Contributor
Solution

Re: confused output of swapinfo

Check your syslog.log file for errors relating to the maxswapchunks kernel parameter. You pobably need to increase the value of the parameter.

The error in syslog.log should show how the value it needs to be increased by.

This is one parameter I always increase to its maximum value when installing a new system. That prevents problems like this.
svilen888
Occasional Advisor

Re: confused output of swapinfo

Yes, you are right!
liana