Operating System - HP-UX
1753716 Members
4657 Online
108799 Solutions
New Discussion

Error whit enabled swap at startp

 
Miguel Carabano_1
Regular Advisor

Error whit enabled swap at startp

Hi,

I have one error at moment startup of server:
Enable auxiliary swap space ......................................... FAIL
*
output of /etc/rc.log:
Enable auxiliary swap space
Output from "/sbin/rc1.d/S500swap_start start":
----------------------------
Enabling device paging on /dev/vg00/lvol2.
/usr/sbin/swapon: /dev/vg00/lvol2 is already enabled for paging.
Warning: swapon returned exit code: 1
"/sbin/rc1.d/S500swap_start start" FAILED

Regards,

Miguel
1 REPLY 1
Robert-Jan Goossens
Honored Contributor

Re: Error whit enabled swap at startp

Hi Miquel,

The primary swap area is a contiguous area of the root disk
used by the virtual memory system (see white paper on Memory
Management) to temporarily store a process image. The primary
swap area is specified in /etc/fstab, until
/sbin/rc1.d/S500swap_start executes swapon, primary swap is
your only swap device.

This error message is because primary swap, lvol2, is listed
in the fstab file. It is automagically enabled, so when
swap_start goes through the fstab and finds it listed, it
tries to enable it again.

Is lvol2 (primary swap) listed in the /etc/fstab file?
It will look like: /dev/vg00/lvol2 ... swap pri=0 0 2

You do not need (and should not have) the above entry
in the /etc/fstab file.

Go ahead and remove the line in your /etc/fstab file. This
should resolve the error message.

Regards,
Robert-Jan