1833758 Members
2334 Online
110063 Solutions
New Discussion

fail to enable aux swap

 
SOLVED
Go to solution
Tina Waitherwerch
Occasional Advisor

fail to enable aux swap

after a reboot, I had a FAIL on enable aux swap. swapon says all 3 are enabled, but rc.log reports the following: WHO do I believe??

Enable auxiliary swap space
Output from "/sbin/rc1.d/S500swap_start start":
----------------------------
Enabling device paging on /dev/vg04/swap4.
Enabling device paging on /dev/vg00/lvol2.
/usr/sbin/swapon: /dev/vg00/lvol2 is already enabled for paging.
Enabling device paging on /dev/vg01/swap1.
Warning: swapon returned exit code: 1
"/sbin/rc1.d/S500swap_start start" FAILED

7 REPLIES 7
S.K. Chan
Honored Contributor
Solution

Re: fail to enable aux swap

The error is with your primary swap I think. Take a look at /etc/fstab file and check if /dev/vg00/lvol2 is in that file. If it is, delete that entry. Primary swap should not be in /etc/fstab. What happened is swap_start is trying to enable an already-enabled swap (ie the primary swap /dev/vg00/lvol2).
Tina Waitherwerch
Occasional Advisor

Re: fail to enable aux swap

Yes, /dev/vg00/lvol2 was in /etc/fstab! I removed it, but won't be able to reboot until this weekend. Thank you for your help.
S.K. Chan
Honored Contributor

Re: fail to enable aux swap

Not a problem, you don't even have to reboot at all.
Martin Johnson
Honored Contributor

Re: fail to enable aux swap

Do a "lvlnboot -v". It should show swap on lvol2. This is your primary swap and is enabled during the boot. Your S500swap_start is trying to enable it again. Look at the script and see where it is getting the info for enabling swap. Delete the entry for lvol2.

HTH
Marty
Jeff Schussele
Honored Contributor

Re: fail to enable aux swap

Hi Tina,

SK's correct you shouldn't have to reboot.
Just run swapinfo and verify the lvol2 swap device is listed.
You just needed to edit /etc/fstab & remove it's entry to avoid the "error" message.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Tina Waitherwerch
Occasional Advisor

Re: fail to enable aux swap

Okay, the lvlnboot -v looked good, but when I do a dmesg, the size for swap is 2gb, but I have 3 swap spaces of 1024gb each = 3gb??? Please translate.
Swap device table: (start & size given in 512-byte blocks)
entry 0 - major is 64, minor is 0x2; start = 0, size = 2097152
S.K. Chan
Honored Contributor

Re: fail to enable aux swap

The "dmesg" output ONLY shows you the primary swap configured. Use ..
# swapinfo -ta
to see all of your swap configured. In your case the 2097152 you see in dmesg is actually 2097152/2=1048576 which should match the primary swap in ..
# swapinfo -ta