udev start job won't start & swap

If none of the more specific forums is the right place to ask

udev start job won't start & swap

Postby SamTzu » 2018-01-22 14:22

It seems udev start job won't start if there is something wrong with swap.
I have run in to this several times now. Something corrupts the swap (probably a bug in Apache web-server or PHP) - system slows down and debian udev wont start properly on next reboot.
I have to manually comment out the swap UUID from fstab in recovery mode - reboot and create a new swap - then do swapon to use that until I have fixed the old one.

Any idea what is going on?
Why does the swap get corrupted every couple of months?
Why can't udev handle swap corruption?

If you are a noob this is basically a deal-braker.


Sam
User avatar
SamTzu
 
Posts: 8
Joined: 2012-04-02 12:10

Re: udev start job won't start & swap

Postby bw123 » 2018-01-22 17:31

Someone might be able to answer the questions, but you didn't include what debian version, kernel, swap configuration, Apache ver or any other information, like the actual error message you are seeing?

SamTzu wrote:If you are a noob this is basically a deal-braker.


Sam, comeon work with us here. Describing yourself as a noob is strange when you been on here since 2012? What's the deal?
User avatar
bw123
 
Posts: 3572
Joined: 2011-05-09 06:02
Location: TN_USA

Re: udev start job won't start & swap

Postby dryden » 2018-02-09 15:09

And has 8 posts, compared to your 2730 ;-).

Systemd is just not reliable, period.

I don't know if fixing it individually is not more work then fixing it manually every few months.

Maybe you can set swap to "nofail" so at least your system will boot and write a startup script that will swapon the swap and if it fails, redo "mkswap".

Also, if you use an encrypted swap (I mean directly encrypted on its own) one of the benefits is that your swap will be recreated every time.
dryden
 
Posts: 80
Joined: 2015-02-04 08:54

Re: udev start job won't start & swap

Postby debiman » 2018-02-10 07:51

^ another zealot :roll:

SamTzu wrote:Something corrupts the swap (probably a bug in Apache web-server or PHP) -
Why does the swap get corrupted every couple of months?

you should probably investigate that.
for now we only have your word that swap actually is corrupt.
please do some troubleshooting, some searching, and come back with real commands & output, and a better problem description altogether.
i also wouldn't rule out the possibility that udev can be told to behave differently in these situations.

fwiw, i dropped apache for nginx on my small server because it's overkill.
User avatar
debiman
 
Posts: 3064
Joined: 2013-03-12 07:18


Return to General Questions

Who is online

Users browsing this forum: 4D696B65 and 7 guests

fashionable