From: alexei@taf.ru
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] Непонятное поведение p9
Date: Thu, 21 Nov 2019 16:23:11 +0800 (IRKT)
Message-ID: <1462300108.85661.1574324591232.JavaMail.zimbra@taf.ru> (raw)
In-Reply-To: <CAA8E9_tm-_Go4TxKp1x9AtsPbTMHXaVOGL0U8bcNovUaqqhRzw@mail.gmail.com>
----- Исходное сообщение -----
> От: "Yuri Khachaturyan" <yukh@yukh.ru>
> Кому: "ALT Linux Community general discussions" <community@lists.altlinux.org>
> Отправленные: Четверг, 21 Ноябрь 2019 г 16:10:03
> Тема: Re: [Comm] Непонятное поведение p9
> чт, 21 нояб. 2019 г. в 00:07, Sergey < [ mailto:a_s_y@sama.ru | a_s_y@sama.ru ]
> >:
>
>
> On Thursday 21 November 2019, Павел Исопенко wrote:
>
>> > В логах ни слова о проблеме нет.
>>
>> Когда подсистема хранения останавливается внезапно, куда писать лог?
>
> Кстати, можно на соседний сервер лить параллельно.
>
> Пока не нашел как это настроить в случае с systemd и journal.
Когда сыпется железо, достаточно следить за dmesg. Как-то вот так:
#!/bin/sh
# set log level for kernel messages
dmesg -n 8
modprobe configfs
modprobe netconsole
# 'netconsole' dir is auto created if the module is loaded
mkdir /sys/kernel/config/netconsole/target1
cd /sys/kernel/config/netconsole/target1/
# set local IP address
echo IP_LOCAL > /sys/kernel/config/netconsole/target1/local_ip
# set destination IP address
echo IP_LOGSERVER > /sys/kernel/config/netconsole/target1/remote_ip
# set local network device name (find it trough ifconfig, examples: eth0, eno1, wlan0)
echo IFNAME > /sys/kernel/config/netconsole/target1/dev_name
# find destination MAC address
arping -I $(cat /sys/kernel/config/netconsole/target1/dev_name) \
$(cat /sys/kernel/config/netconsole/target1/remote_ip) -f | \
grep -o ..:..:..:..:..:.. > /sys/kernel/config/netconsole/target1/remote_mac
echo 1 > /sys/kernel/config/netconsole/target1/enabled
На стороне IP_LOGSERVER запустить что-то типа
nc -u -l 6666 >> /var/log/netconsole.log
и ждать
next prev parent reply other threads:[~2019-11-21 8:23 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-06 12:07 ` Pavel Isopenko
2019-09-06 13:08 ` Pavel Isopenko
2019-09-06 13:24 ` Pavel Isopenko
2019-09-09 7:33 ` Sergey
2019-09-09 8:13 ` Sergey
2019-11-20 20:39 ` Michael Shigorin
2019-11-20 20:42 ` Павел Исопенко
2019-11-20 21:07 ` Sergey
2019-11-21 8:23 ` alexei [this message]
2019-11-21 14:19 ` Sergey
2019-12-02 21:37 ` Павел Исопенко
2019-12-03 9:13 ` alexei
2019-12-03 9:30 ` Michael Shigorin
2019-12-03 10:34 ` Michael Shigorin
2019-12-03 12:37 ` Pavel Isopenko
2019-11-21 11:44 ` Pavel Isopenko
2019-09-09 7:32 ` Sergey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1462300108.85661.1574324591232.JavaMail.zimbra@taf.ru \
--to=alexei@taf.ru \
--cc=community@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git