Auto-restart with kernel panic
I read this thing
Add the following to /etc/sysctl.conf: kernel.panic=20 Is this for is there is a GPU failure for whatever reason, it will auto-restart the whole rig? Until I figure out whats wrong, I need to at least have it auto-restart when something fails, because restarting does fix it, and rarely needs a hard reboot. The only thing is, if this is all the code I need, I did it but it doesnt seem to be working. I actually put a 7 in there like this kernel.panic=7 but that shouldnt matter right? And I put it in the last line of the file at the very bottom, with a line break after the last #: Code:
# And then what is the easiest way to create a "soft" panic to test if its working and not wait for one? Thanks. |
The spacing matters, use no spaces.
There is also a "panic on oops" flag which you can, and should set. These are "modifiable" in sysctl.conf, but they can be set in your kernel boot line. I don't know the sysctl.conf variations as well. Review the kernel parameters documentation, search for the term panic and review the notes describing what the system should do for each flag. Kernel Parameters. |
Quote:
Your latter info, I have no idea what thats about... I used to use DOS and BASIC but I hardly know anything in Linux. |
I'd change the command line parameters adding:
Code:
oops=panic panic=7 unknown_nmi_panic |
Quote:
|
Quote:
|
Quote:
Thanks for your patience. |
Quote:
Mind you; installing and using Linux is fine and sounds like you've done that. At this point you're trying to tune how the kernel operates, but looking for a singular answer without fully understanding the scope of the topic. Therefore my best recommendation is to either leave it alone or learn about grub so that when you do attempt boot option changes, you understand what you're doing and how to deal with it if you happen to make a mistake. |
Quote:
So to me (and suggested by others in similar situations who know more linux than me), a "decent" bandaid is: 1. Set up an auto-reboot whenever there is a hardware failure (kernel panic) or 2. Set up an auto-reboot every 10 (whatever #) minutes so it preempts any failure I know these solutions are not very professional, but its better than losing $$$ all day every day while I have invested time and money in the rig and setup. I was hoping I can just input a few lines in a file or two in the system that will help me achieve this until I find a permanent solution. If I had all the time in the world, I would love to learn linux properly and thoroughly. Unfortunately this project is is less than 10% of all the other stuff I need to do to sustain myself. I hope that clears things up a bit, thanks. |
Someone told me to do this and it actually worked... but I set the timer for way too fast, how do I edit? I tried crontab -e and -i and I cant seem to find it... always something......
Code:
echo "*/10 * * * * root coldreboot" >> /etc/crontab |
Quote:
|
All times are GMT -5. The time now is 03:34 AM. |