hns - 日記自動生成システム - Version 2.19.9

先月 2023年10月 来月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2023年10月16日(月) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [pkgsrc] disk failure

最近設定した RAID1 の pkgsrc host がさっそく fail している
Oct 15 06:25:28 stealth012 /netbsd: [ 770051.3059165] raid0: IO Error (5). Marking /dev/wd1a as failed.
spare disk に label を写す

    6  2023-10-16 07:49  sudo disklabel wd0 > /tmp/R
    8  2023-10-16 07:50  sudo disklabel -R sd0a  /tmp/R
spare を追加
   11  2023-10-16 07:50  sudo raidctl -a /dev/sd0a raid0
これで、しばらく無反応になったので、強制 power off かなと思ったが、しばらくすると、戻って来た。
    1  2023-10-16 07:44  sudo raidctl -s raid0
    2  2023-10-16 07:45  less /var/log/messages
    3  2023-10-16 07:49  less /var/log/messages
    4  2023-10-16 07:49  sudo disklabel sd0
    5  2023-10-16 07:49  sudo disklabel wd0
    6  2023-10-16 07:49  sudo disklabel wd0 > /tmp/R
    7  2023-10-16 07:49  sudo disklabel sd0
    8  2023-10-16 07:50  sudo disklabel -R sd0a  /tmp/R
    9  2023-10-16 07:50  sudo disklabel sd0
   10  2023-10-16 07:50  sudo raidctl -s raid0

   11  2023-10-16 07:50  sudo raidctl -a /dev/sd0a raid0
   12  2023-10-16 07:51  ls /etc/raid*
   13  2023-10-16 07:51  sudo raidctl -G > /tmp/raid0.conf
   14  2023-10-16 07:51  sudo raidctl -G raid0 > /tmp/raid0.conf
   15  2023-10-16 07:51  cat /tmp/raid0.conf
   16  2023-10-16 07:52  sudo cp  /tmp/raid0.conf  /etc/raid0.conf
   17  2023-10-16 07:53  sudo raidctl -s raid0
   18  2023-10-16 07:54  sudo raidctl -F /dev/wd1a raid0
   19  2023-10-16 07:54  sudo raidctl -s raid0

#2 syslog.conf

実は syslog という文字列が思い出せなくて、
ls  /etc/*.conf
を見て、やっと何のと設定か思い出した で、 を見て、
stealth012@pbulk 08:23:38/231016(~)% rcsdiff -u /etc/syslog.conf
===================================================================
RCS file: /etc/RCS/syslog.conf,v
retrieving revision 1.1
diff -u -r1.1 /etc/syslog.conf
--- /etc/syslog.conf    2023/10/15 23:10:11     1.1
+++ /etc/syslog.conf    2023/10/15 23:10:48
@@ -17,3 +17,9 @@
 
 *.emerg                                                        *
 #*.notice                                              root
+# -----------------------------
+!-ntpd
+daemon.*                                                /var/log/daemon
+!+ntpd
+daemon.*                                                /var/log/ntpd
+
touch  /var/log/daemon
touch  /var/log/ntpd
/etc/rc.d/syslogd restart
としたが、多分効いていない気がする。新しい二つの log に記録されるようになったが、 /var/log/messages の方か ら消えていない

looks OK for now:

--- /etc/syslog.conf    2023/10/15 23:10:11     1.1
+++ /etc/syslog.conf    2023/10/16 00:02:47
@@ -1,7 +1,7 @@
 #      $NetBSD: syslog.conf,v 1.9 2004/07/23 03:45:42 mycroft Exp $
 
 *.err;kern.*;auth.notice;authpriv.none;mail.crit       /dev/console
-*.info;auth,authpriv,cron,ftp,kern,lpr,mail.none       /var/log/messages
+*.info;auth,authpriv,cron,ftp,kern,lpr,mail.none,daemon.none   /var/log/messages
 kern.debug                                             /var/log/messages
 
 # The authpriv log file should be restricted access; these
@@ -17,3 +17,11 @@
 
 *.emerg                                                        *
 #*.notice                                              root
+# -----------------------------
+!-ntpd,snmpd
+daemon.*                                                /var/log/daemon
+!+ntpd
+daemon.*                                                /var/log/ntpd
+!+snmpd
+daemon.*                                                /var/log/snmpd
+


2023年10月09日(月) 旧暦 [n年日記] [更新:"2004/08/09 23:43:33"]

#1 [NetBSD] update for RAID1 system

raid1 で運用している NetBSD host の OS を update する時に、 例えば USB memory に install image を入れておいて、その device から 起動すると、 mount root する時に、 USB memory 側でなくて、 upgrade したい方の、古い raid の方につかまってしまって、 kernel は新しいけれど、 disk は古い方で、 multi user で上ってしまう という問題がある、と理解している。きょうも、そうなった。 その時に raidctl -A か raidctl -u か何かで解除しておけば、何とかなる、という 記憶があったのだが、きょう
raidctl -A no
したら、全てを失なった気がする。もっとも、全て、と言っても、もともと何も入っていない、 OS を入れた だけのものだったから、本当に失ったのは時間だけの気もする。つまり parity 作り直しの 1TB なら 3 時間 というくらいのものを失った、という話。
     Status: Running                                           
    Command: raidctl -vi raid0                                 
                                                               
───────────────────────────────────────────────────────
Initiating re-write of parity                                  
Parity Re-write status:                                        
 34% |*************                          | ETA: 01:57:41 \ 
以前、似たようなことをした時には、何も失なわなかった気がするので



最近の日記
2024年05月08日
comparison on ./buildsh tools
2024年05月06日
py-setuptools (python 3.11.9)
make release took 1 hours and 10 min
qemu invocation for 10.99.10
2024年05月05日
Windows 10 version
serial connection
bc bench
2024年05月04日
Trial on 10.99.10
another version (later trial) to succeed
2024年04月29日
dkim
以上、2 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)