某 VPS 、「22日20:10(以下すべて+0900)ごろから24日19:00ごろまでサービス停止する」というメールが22日22:38に届いた。端末のスクロールバッファに残ってる、23日00:43時点のプロセスリストがこれ:
$ ps ux -H
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
yuta 32026 0.0 0.1 94136 1116 ? S Jun21 0:00 sshd: yuta@notty
yuta 32027 0.0 0.0 100948 316 ? Ss Jun21 0:00 tail -f /dev/null "$tunnel_name"
yuta 22175 0.0 0.2 93984 2180 ? S 00:43 0:00 sshd: yuta@notty
yuta 22176 0.0 0.1 108172 1624 ? Ss 00:43 0:00 -bash
yuta 22198 0.0 0.1 110204 1080 ? R 00:43 0:00 ps ux -H
yuta 14466 0.0 0.0 100948 748 ? Ss Jul22 0:00 tail -f /dev/null "$broken_another_tunnels_tail"
yuta 6552 0.0 2.4 108160 25548 ? S Jul22 0:17 /usr/bin/ruby -W "$gathering_data_from_web.rb"
yuta 17565 0.1 22.7 1227340 238532 ? Sl 2018 614:47 /home/yuta/opt/qemu-2.11.1/bin/qemu-system-x86_64 -m 640 -hda archlinux.img -hdb "$work.img" -hdc swap.img -nographic -vga none -serial mon:telnet:127.0.0.1:4444,server,nowait -no-shutdown
yuta 25977 0.0 0.3 55212 3604 ? S 2017 30:46 ruby -W "$junk_web_app.rb"
yuta 12694 0.0 0.0 120004 8 ? Ss 2015 0:00 SCREEN -ln -U -S work
yuta 12822 0.0 0.0 4076 8 pts/4 Ss+ 2015 0:00 emacsclient -t
yuta 9055 0.0 0.0 265144 168 ? Ss 2014 1:03 emacs --daemon
yuta 476 0.0 0.0 119004 136 ? Ss 2014 0:01 SCREEN -S "$super_old_session"
yuta 477 0.0 0.0 108408 120 pts/1 Ss+ 2014 0:00 /bin/bash
こんな具合なもので、「止まらねーじゃん」って慢心。最後に使えてたのがこの日の朝07:12:50。次に触ろうとしたのが昼休みの終わりかけ13:52(±2分)で、これが Connection timed out
。
帰宅後の23:41:36には復帰していて接続成功。昨晩取った last の記録はこんな感じであって、
$ last -Fawx | grep -nv yuta | sed 's/\(:[0-9]*) *\).*/\1(snipped)/'
1:runlevel (to lvl 3) Tue Jul 23 23:01:14 2019 - Wed Jul 24 21:03:47 2019 (22:02) (snipped)
2:reboot system boot Tue Jul 23 23:01:14 2019 - Wed Jul 24 21:03:47 2019 (22:02) (snipped)
3:shutdown system down Tue Jul 23 13:04:54 2019 - Tue Jul 23 23:01:14 2019 (09:56) (snipped)
4:runlevel (to lvl 0) Tue Jul 23 13:04:36 2019 - Tue Jul 23 13:04:54 2019 (00:00) (snipped)
671:runlevel (to lvl 3) Mon Sep 8 18:14:43 2014 - Tue Jul 23 13:04:36 2019 (1778+18:49) (snipped)
672:reboot system boot Mon Sep 8 18:14:43 2014 - Tue Jul 23 13:04:36 2019 (1778+18:49) (snipped)
673:shutdown system down Mon Sep 8 17:44:04 2014 - Mon Sep 8 18:14:43 2014 (00:30) (snipped)
674:runlevel (to lvl 0) Mon Sep 8 17:44:00 2014 - Mon Sep 8 17:44:04 2014 (00:00) (snipped)
1183:root pts/4 Sun Apr 27 15:10:01 2014 - Sun Apr 27 15:31:32 2014 (00:21) (snipped)
1184:root pts/3 Sun Apr 27 15:00:42 2014 - Sun Apr 27 15:10:21 2014 (00:09) (snipped)
1185:root pts/1 Sun Apr 27 14:51:16 2014 - Sun Apr 27 15:10:21 2014 (00:19) (snipped)
1186:runlevel (to lvl 3) Sun Apr 27 14:45:29 2014 - Mon Sep 8 17:44:00 2014 (134+02:58) (snipped)
1187:reboot system boot Sun Apr 27 14:45:29 2014 - Mon Sep 8 17:44:00 2014 (134+02:58) (snipped)
1188:
1189:wtmp begins Sun Apr 27 14:45:29 2014
停止されていたのは13:04からの10時間弱であったと分かる。5年弱の無停止運用は途切れてしまったね。