swapon: The kernel tunable parameter "swchunk" needs to be increased (6834 Views)
Reply
Regular Advisor
laiju.c.babu
Posts: 122
Registered: ‎07-06-2008
Message 1 of 3 (6,834 Views)

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
Please use plain text.
Honored Contributor
Patrick Wallek
Posts: 13,736
Registered: ‎06-21-2000
Message 2 of 3 (6,788 Views)

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?

Please use plain text.
Regular Advisor
laiju.c.babu
Posts: 122
Registered: ‎07-06-2008
Message 3 of 3 (6,784 Views)

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
Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation