Operating System - HP-UX
1752805 Members
5520 Online
108789 Solutions
New Discussion

Re: swapon: The kernel tunable parameter "swchunk" needs to be increased

 
laiju.c.babu
Regular Advisor

swapon: The kernel tunable parameter "swchunk" needs to be increased

Hi Team,

 

My OS is 11.23

 

I tried to create one swap. When i am trying to do swapon -a i am getting the below error

 

The entry which i give in /etc/fstab is

 

/dev/vgtest/lvol1 ... swap pri=1 0 0

 

Command used for creating the swap is

 

swapon -f /dev/vgtest/lvol1

 

     [6]> swapon -a
Enabling device paging on /dev/vgtest/lvol1.
swapon: The kernel tunable parameter "swchunk" needs to be increased to add
        paging on device /dev/vgtest/lvol1.

Then i increased  swchunk to maximum vaule

 

     [5]> kctune swchunk
Tunable  Value  Expression
swchunk  65536  65536

 

Then i rebooted the machine . after this also  i am not able add the swap.

 

Could you please help me on this

 

Regards

 

Laiju.C.Babu
2 REPLIES 2
Patrick Wallek
Honored Contributor

Re: swapon: The kernel tunable parameter "swchunk" needs to be increased

>>Then i rebooted the machine . after this also  i am not able add the swap.

 

How much swap are you trying to add?  What is the exact 'swapon' command you are using?  What is the exact error message you now receive?

laiju.c.babu
Regular Advisor

Re: swapon: The kernel tunable parameter "swchunk" needs to be increased

Hi Patrick,

 

I am  trying to add a swap of 4GB. Existing swap space is 8GB

 

 

             Mb      Mb      Mb   PCT  START/      Mb
TYPE      AVAIL    USED    FREE  USED   LIMIT RESERVE  PRI  NAME
dev        8192       0    8192    0%       0       -    1  /dev/vg00/lvol2
reserve       -     756    -756
memory     8161    1695    6466   21%
total     16353    2451   13902   15%       -       0    -

 

 

     [3]> lvdisplay /dev/vgtest/lvol1  =====>  this is the LV i tried to add for swap
--- Logical volumes ---
LV Name                     /dev/vgtest/lvol1
VG Name                     /dev/vgtest
LV Permission               read/write
LV Status                   available/syncd
Mirror copies               0
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            4096
Current LE                  1024
Allocated PE                1024
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

 

The below error i got from rc.log

 

Enable auxiliary swap space
Output from "/sbin/rc1.d/S500swap_start start":
----------------------------
Enabling device paging on /dev/vgtest/lvol1.
/usr/sbin/swapon: The kernel tunable parameter "swchunk" needs to be increased to add
        paging on device /dev/vgtest/lvol1.
Warning: swapon returned exit code: 1
"/sbin/rc1.d/S500swap_start start" FAILED

 

The same swchunk error i got while i was doing the below command

 

     [5]> swapon /dev/vgtest/lvol1
swapon: The kernel tunable parameter "swchunk" needs to be increased to add
        paging on device /dev/vgtest/lvol1.
hpuxsg8:[opsroot]/u01/ltd/opsroot
     [6]>

 

Regards

 

Laiju.C.Babu