The SSD which was holding my container racked up lot of disk usage and is showing “Percent_Lifetime_Remain:FAILINg_NOW”. Is it possible to identify which container is causing high disk usage?
# zpool status ssdpool1
pool: ssdpool1
state: ONLINE
scan: scrub repaired 0B in 0 days 00:12:55 with 0 errors on Fri Dec 4 19:42:56 2020
config:
NAME STATE READ WRITE CKSUM
ssdpool1 ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
ata-Crucial_CT525MX300SSD1_1643146640C9-part1 ONLINE 0 0 0
ata-CT500MX500SSD1_1904E1E531BD-part1 ONLINE 0 0 0
errors: No known data errors
Thanks i ran iotop for sometime. It seems systemd-journal files are causing the writes, as well mysql. Is there any way to identify the container for these systemd-journald and disable the logging?
#iotop -o -P -a
PID PRIO USER DISK READ DISK WRITE SWAPIN IO> COMMAND
29398 be/4 1000000 0.00 B 7.28 M 0.00 % 0.00 % systemd-journald
21530 be/4 usbmux 4.75 M 7.12 M 0.00 % 0.00 % mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --~mysql --pid-file=/run/mysqld/mysqld.pid
21167 be/4 1000000 0.00 B 6.83 M 0.00 % 0.00 % systemd-journald
3912744 be/4 root 748.00 K 5.07 M 0.00 % 0.03 % [kworker/u98:14-kcryptd/254:3]
3679976 be/4 root 624.00 K 3.79 M 0.00 % 0.04 % [kworker/u98:2-kcryptd/254:10]
1743571 be/4 1000000 0.00 B 3.18 M 0.00 % 0.00 % systemd-journald
3912743 be/4 root 248.00 K 2.05 M 0.00 % 0.01 % [kworker/u98:10-kcryptd/254:9]
3991211 be/4 root 272.00 K 2.01 M 0.00 % 0.01 % [kworker/u98:11-kcryptd/254:8]
3991209 be/4 root 360.00 K 1936.00 K 0.00 % 0.04 % [kworker/u98:4-kcryptd/254:10]
7878 be/4 root 0.00 B 1744.00 K 0.00 % 0.00 % systemd-journald
34640 be/4 1000000 0.00 B 1728.00 K 0.00 % 0.00 % systemd-journald
3799867 be/4 root 232.00 K 1416.00 K 0.00 % 0.01 % [kworker/u97:6-kcryptd/254:8]
3679978 be/4 root 272.00 K 1308.00 K 0.00 % 0.01 % [kworker/u98:7-kcryptd/254:9]
3991210 be/4 root 116.00 K 1148.00 K 0.00 % 0.00 % [kworker/u98:6-kcryptd/254:5]
Looked into the proxy container (running nginx) and see this,
# journalctl -r
Dec 10 23:44:27 proxy agetty[783422]: /dev/tty1: cannot open as standard input: No such file or directory
Dec 10 23:44:27 proxy agetty[783418]: /dev/lxc/tty3: cannot open as standard input: No such file or directory
Dec 10 23:44:27 proxy agetty[783419]: /dev/lxc/tty4: cannot open as standard input: No such file or directory
Dec 10 23:44:27 proxy agetty[783421]: /dev/lxc/tty6: cannot open as standard input: No such file or directory
Dec 10 23:44:27 proxy agetty[783416]: /dev/lxc/tty1: cannot open as standard input: No such file or directory
Dec 10 23:44:27 proxy agetty[783420]: /dev/lxc/tty5: cannot open as standard input: No such file or directory
Dec 10 23:44:27 proxy agetty[783417]: /dev/lxc/tty2: cannot open as standard input: No such file or directory
Dec 10 23:44:27 proxy systemd[1]: Started Getty on tty1.
Dec 10 23:44:27 proxy systemd[1]: Stopped Getty on tty1.
Dec 10 23:44:27 proxy systemd[1]: Started Getty on lxc/tty6.
Dec 10 23:44:27 proxy systemd[1]: Stopped Getty on lxc/tty6.
Dec 10 23:44:27 proxy systemd[1]: Started Getty on lxc/tty5.
Dec 10 23:44:27 proxy systemd[1]: Stopped Getty on lxc/tty5.
Dec 10 23:44:27 proxy systemd[1]: Started Getty on lxc/tty4.
Dec 10 23:44:27 proxy systemd[1]: Stopped Getty on lxc/tty4.
Dec 10 23:44:27 proxy systemd[1]: Started Getty on lxc/tty3.
Dec 10 23:44:27 proxy systemd[1]: Stopped Getty on lxc/tty3.
Dec 10 23:44:27 proxy systemd[1]: Started Getty on lxc/tty2.
Dec 10 23:44:27 proxy systemd[1]: Stopped Getty on lxc/tty2.
Dec 10 23:44:27 proxy systemd[1]: Started Getty on lxc/tty1.
Dec 10 23:44:27 proxy systemd[1]: Stopped Getty on lxc/tty1.
Dec 10 23:44:27 proxy systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 111288.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty6.service: Scheduled restart job, restart counter is at 111299.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty5.service: Scheduled restart job, restart counter is at 111288.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty4.service: Scheduled restart job, restart counter is at 111292.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty3.service: Scheduled restart job, restart counter is at 111289.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty1.service: Scheduled restart job, restart counter is at 111287.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty2.service: Scheduled restart job, restart counter is at 111288.
Dec 10 23:44:27 proxy systemd[1]: getty@tty1.service: Succeeded.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty6.service: Succeeded.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty5.service: Succeeded.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty4.service: Succeeded.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty3.service: Succeeded.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty1.service: Succeeded.
Dec 10 23:44:27 proxy systemd[1]: getty@lxc-tty2.service: Succeeded.
Dec 10 23:44:17 proxy agetty[783414]: /dev/tty1: cannot open as standard input: No such file or directory
Dec 10 23:44:17 proxy systemd[1]: Started Getty on tty1.
Dec 10 23:44:17 proxy systemd[1]: Stopped Getty on tty1.
Dec 10 23:44:17 proxy systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 111287.
Dec 10 23:44:17 proxy systemd[1]: getty@tty1.service: Succeeded.
Dec 10 23:44:17 proxy agetty[783408]: /dev/lxc/tty1: cannot open as standard input: No such file or directory
Dec 10 23:44:17 proxy agetty[783411]: /dev/lxc/tty4: cannot open as standard input: No such file or directory
Dec 10 23:44:17 proxy agetty[783410]: /dev/lxc/tty3: cannot open as standard input: No such file or directory
Dec 10 23:44:17 proxy agetty[783409]: /dev/lxc/tty2: cannot open as standard input: No such file or directory
Dec 10 23:44:17 proxy agetty[783412]: /dev/lxc/tty5: cannot open as standard input: No such file or directory
Dec 10 23:44:17 proxy agetty[783413]: /dev/lxc/tty6: cannot open as standard input: No such file or directory
Why is systemd going crazy? It is an archlinux container.
Dec 10 23:53:57 proxy agetty[783857]: /dev/tty1: cannot open as standard input: No such file or directory
Dec 10 23:53:57 proxy systemd[1]: Started Getty on tty1.
Dec 10 23:53:57 proxy systemd[1]: Stopped Getty on tty1.
Dec 10 23:53:57 proxy systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 111344.
Dec 10 23:53:57 proxy systemd[1]: getty@tty1.service: Succeeded.
Dec 10 23:53:47 proxy agetty[783856]: /dev/tty1: cannot open as standard input: No such file or directory
Dec 10 23:53:47 proxy systemd[1]: Started Getty on tty1.
Dec 10 23:53:47 proxy systemd[1]: Stopped Getty on tty1.
Dec 10 23:53:47 proxy systemd[1]: getty@tty1.service: Scheduled restart job, restart counter is at 111343.
Dec 10 23:53:47 proxy systemd[1]: getty@tty1.service: Succeeded.