[Перевод] Диагностика неполадок в Linux: эти 4 шага помогут исправить 99% ошибок
Любая неожиданная ошибка в Linux может выбесить. Но хорошая новость в том, что почти каждую проблему в Linux можно решить, если действовать просто и системно. Всего четыре базовых шага, которые подходят почти под любую ситуацию. Главное, оставаться последовательным. Эффективная диагностика в Linux — это системный подход, когда вы проверяете по одному возможному источнику проблемы за раз. В этой статье я разберу основные шаги, которыми чаще всего пользуются системные администраторы, когда Linux выдает ошибку. Этот подход одинаково хорошо работает и на серверах Linux, и на настольных системах и поможет вам справиться с чем угодно — от проблем при загрузке до «упрямых» приложений, которые не хотят нормально запускаться. 4 шага диагностики
https://habr.com/ru/companies/otus/articles/967276/
#линукс #диагностика_Linux #поиск_ошибок #системное_администрирование #логирование #journalctl #dmesg #анализ_логов #сбой_загрузки #неисправности_серверов
I was thinking about the https://dmesgd.nycbug.org/dmesgd?do=index&fts=cybersec website.
Do you guys believe that it is ok, to post your dmesg ? Or... doing it might raise security concerns ?
Thanks in advance, Yours Truly
#Linux 6.16 will report the cause to a reset/reboot of system if you have a #AMD #Zen based CPU like #Ryzen or #EPYC
This can be handy to see it in the #dmesg output, just hope this will be logged properly so it's easy to find if you have a lot of clutter reported.
Source: https://www.phoronix.com/news/AMD-Report-Previous-Reset-Cause
In the event of your AMD Ryzen or EPYC system being randomly reset or unexpectedly rebooted under Linux, the Linux kernel with the upcoming Linux 6.16 cycle is gaining the ability to report the reason for that reset
Too Good To #014
In today’s installment:
- #dmesg from before the machine crashed
- #Kill process ID from #pidfile
- Let #systemd retry a task
- Set #MTU on #OpenVPN connections in #Networkmanager
When was the last time that you ran
`dmesg|less` on your linux system?
You **NEVER** did?
You dont know what you are missing my POSIX dweller!
Look at the awsome input to your brains!!!
Of course you should first run
`man dmesg` since you should not trust a command which uses sudo from a stranger on the internet
https://www.man7.org/linux/man-pages/man1/dmesg.1.html
<< dmesg - print or control the kernel ring buffer
Yes on debian based machines, for some odd reason you are not allowed to run dmesg anymore as a regular user, so I run
`sudo dmesg|less`
Now you know what dmesg does, run it and learn to the bit, what happens on your linux machine when you cycle through the POST sequence