Operating System - HP-UX
1837365 Members
3335 Online
110116 Solutions
New Discussion

error starting swap at boot

 
SOLVED
Go to solution
Roberto Gallis
Regular Advisor

error starting swap at boot

Hi all,
yesterday I tried to set swap priority to 0 to the 2 lvol of swap space in a L2000 system running hpux 11.00
At boot, I found this message

Enable auxiliary swap space.....FAIL *

What's wrong?
Now I reset the parameter to 1
Reboot and the message was the same as above.

Enybody can explain me??
Thanks all

Roberto
6 REPLIES 6
Stefan Farrelly
Honored Contributor

Re: error starting swap at boot


To find out what the exact return (error) code was you can run the swap_start script manually;

/sbin/rc1.d/S500swap_start start

This will give you the error code which may better indicate the problem.

I think you should change your /etc/fstab entry for your swap areas back to the default;

/dev/vg00/lvol2 / swap defaults 0 0
/dev/vg00/lvolX / swap defaults 0 0

Then run the above swap_start script again, this should work fine.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Vincent Stedema
Esteemed Contributor

Re: error starting swap at boot

Is this swap space that you added recently? If so, did you increase that value of the maxswapchunks kernel paramater? This parameter determines how much swap space the system can actually activate.

What error message do you get when you issue:

swapon -a

Vincent
Vincenzo Restuccia
Honored Contributor

Re: error starting swap at boot

Pedro Sousa
Honored Contributor
Solution

Re: error starting swap at boot

Hi Roberto.
Check your /etc/rc.log file or perform the test with /sbin/init.d/swap_start, as Stefan said, to get the output.

Your fstab should not include the default primary swap, normally /dev/vg00/lvol2, because it is automatically enabled when the system starts up, and if it stays in fstab, it will try to enable it again. Maybe this is generating that failure output.

check your swap devices with "swapinfo".
good luck.
Tim D Fulford
Honored Contributor

Re: error starting swap at boot

This is not the answer you want, what has been mentioned is (as far as I know) correct

If the extra swap lvol is on the same disk as /dev/vg00/lvol2 then it is probably wise to give is a lower priority. If the priorities are equal the OS will round robin the two areas wich will fragment up your data and thrash your disk!!

Just a comment

Tim
-
Roberto Gallis
Regular Advisor

Re: error starting swap at boot

Hi all,
I found the problem.
Viewing /etc/rc.log:

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


And in file /etc/fstab at the bottom a new line was added after I changed the priority level of swap from sam
The new line was /dev/vg00/lvol2

So I took a look at fstab of other systems and I understand that lvol2 is never mentioned.
So I removed and the problem was solved at next boot

Now, let me the time to assign point!!!
I'd like to open another question on swap for the parameter
allocate_fs_swapmap

So, keep tuned!!!

Regards
Roberto