Operating System - HP-UX
1850403 Members
1910 Online
104054 Solutions
New Discussion

Warning : swapon returned exit code : 1

 
SOLVED
Go to solution
federico_3
Honored Contributor

Warning : swapon returned exit code : 1


I have rebootted my HP-UX 11 machine and on console i got the message:
Enable auxiliary swap space : FAILED

From the /etc/rc.log :


Enable auxiliary swap space
Output from "/sbin/rc1.d/S500swap_start start":
----------------------------
Enabling device paging on /dev/vg00/lvol9.
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


What has happened ?


Federico
1 REPLY 1
John Palmer
Honored Contributor
Solution

Re: Warning : swapon returned exit code : 1

This is due to having an entry for /dev/vg00/lvol2 in /etc/fstab. It's only a warning to say that this swap volume is already activated.

You don't need this entry as primary swap is automatically allocated at boot time.

Remove the entry '/dev/vg00/lvol2' from fstab and the error will go away.