我最近在 Ubuntu 22.04 上设置了一个包含 4 个磁盘的 raid-5 阵列。当我尝试使用
sudo mount /dev/md0 /mnt/md0
整个系统冻结。我可以看到桌面,但鼠标没有反应。Ctrl+F1
不起作用,系统似乎与网络断开连接,甚至Alt+SysReq+REISUB
似乎什么也不做!
我已经检查过/var/log/syslog
,没有出现错误或任何表明崩溃的迹象。
cat /proc/mdstat
输出如下:
Personalities : [raid1] [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid10]
md127 : active raid1 sdf1[0] sdf2[1]
1999808 blocks [2/2] [UU]
md0 : active raid5 sde[2] sdc[3] sdd[1] sda[0]
11720659392 blocks super 1.2 level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
bitmap: 0/30 pages [0KB], 65536KB chunk
unused devices: <none>
sudo /usr/share/mdadm/checkarray -a /dev/md0
达到约 0.3% 然后以同样的方式崩溃。
就上下文而言,我最初有一个带有 2 个磁盘的 raid-1 阵列,并将其转换为带有另外 2 个磁盘的 raid-5 阵列,所有磁盘均为 4 TB。我确实设法在某个时候安装了新阵列,但转换后不久就开始出现问题。我想这可能是因为我将阵列从 4 TB 扩展到 12 TB,但我不确定。我也尝试过重新安装 ubuntu,但问题仍然存在。
/var/log/syslog
冻结之前的最后一部分:
Aug 16 10:58:16 dolly systemd[1]: Reloading.
Aug 16 10:58:16 dolly systemd[1]: Mounting Mount unit for snapd, revision 16292...
Aug 16 10:58:16 dolly kernel: [ 326.362036] loop8: detected capacity change from 0 to 96176
Aug 16 10:58:16 dolly systemd[1]: Mounted Mount unit for snapd, revision 16292.
Aug 16 10:58:17 dolly kernel: [ 327.149055] audit: type=1400 audit(1660643897.246:60): apparmor="STATUS" operation="profile_load" profi
le="unconfined" name="/snap/snapd/16292/usr/lib/snapd/snap-confine" pid=3145 comm="apparmor_parser"
Aug 16 10:58:17 dolly kernel: [ 327.150068] audit: type=1400 audit(1660643897.246:61): apparmor="STATUS" operation="profile_load" profi
le="unconfined" name="/snap/snapd/16292/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=3145 comm="apparmor_parser"
Aug 16 10:58:18 dolly kernel: [ 328.322198] audit: type=1400 audit(1660643898.418:62): apparmor="STATUS" operation="profile_replace" in
fo="same as current profile, skipping" profile="unconfined" name="snap-update-ns.firefox" pid=3147 comm="apparmor_parser"
Aug 16 10:58:18 dolly kernel: [ 328.394564] audit: type=1400 audit(1660643898.490:63): apparmor="STATUS" operation="profile_replace" in
fo="same as current profile, skipping" profile="unconfined" name="snap-update-ns.snap-store" pid=3148 comm="apparmor_parser"
Aug 16 10:58:19 dolly kernel: [ 329.413958] audit: type=1400 audit(1660643899.510:64): apparmor="STATUS" operation="profile_replace" in
fo="same as current profile, skipping" profile="unconfined" name="snap-update-ns.snapd-desktop-integration" pid=3149 comm="apparmor_pars
er"
Aug 16 10:58:19 dolly kernel: [ 329.429861] audit: type=1400 audit(1660643899.526:65): apparmor="STATUS" operation="profile_replace" in
fo="same as current profile, skipping" profile="unconfined" name="snap.firefox.hook.configure" pid=3160 comm="apparmor_parser"
Aug 16 10:58:19 dolly kernel: [ 329.440241] audit: type=1400 audit(1660643899.538:66): apparmor="STATUS" operation="profile_replace" in
fo="same as current profile, skipping" profile="unconfined" name="snap.snap-store.hook.configure" pid=3161 comm="apparmor_parser"
Aug 16 10:58:19 dolly kernel: [ 329.441872] audit: type=1400 audit(1660643899.538:67): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.firefox.firefox" pid=3159 comm="apparmor_parser"
Aug 16 10:58:19 dolly kernel: [ 329.459354] audit: type=1400 audit(1660643899.558:68): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.snap-store.snap-store" pid=3162 comm="apparmor_parser"
Aug 16 10:58:19 dolly kernel: [ 329.460914] audit: type=1400 audit(1660643899.558:69): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.snap-store.ubuntu-software" pid=3163 comm="apparmor_parser"
Aug 16 10:58:19 dolly snapd[740]: daemon.go:521: gracefully waiting for running hooks
Aug 16 10:58:19 dolly snapd[740]: daemon.go:523: done waiting for running hooks
Aug 16 10:58:20 dolly snapd[740]: overlord.go:504: Released state lock file
Aug 16 10:58:20 dolly systemd[1]: snapd.service: Deactivated successfully.
Aug 16 10:58:20 dolly systemd[1]: snapd.service: Consumed 9.814s CPU time.
Aug 16 10:58:20 dolly systemd[1]: snapd.service: Scheduled restart job, restart counter is at 1.
Aug 16 10:58:20 dolly systemd[1]: Stopped Snap Daemon.
Aug 16 10:58:20 dolly systemd[1]: snapd.service: Consumed 9.814s CPU time.
Aug 16 10:58:20 dolly systemd[1]: Starting Snap Daemon...
Aug 16 10:58:20 dolly snapd[3170]: AppArmor status: apparmor is enabled and all features are available
Aug 16 10:58:20 dolly snapd[3170]: overlord.go:263: Acquiring state lock file
Aug 16 10:58:20 dolly snapd[3170]: overlord.go:268: Acquired state lock file
Aug 16 10:58:20 dolly snapd[3170]: daemon.go:247: started snapd/2.56.2+22.04ubuntu1 (series 16; classic) ubuntu/22.04 (amd64) linux/5.15.0-46-generic.
Aug 16 10:58:20 dolly kernel: [ 330.352142] loop9: detected capacity change from 0 to 8
Aug 16 10:58:20 dolly systemd[1]: tmp-syscheck\x2dmountpoint\x2d2185967355.mount: Deactivated successfully.
Aug 16 10:58:20 dolly snapd[3170]: daemon.go:340: adjusting startup timeout by 1m10s (pessimistic estimate of 30s plus 5s per snap)
Aug 16 10:58:20 dolly systemd[1]: Started Snap Daemon.