我在 iscsi 和 lvm 共享逻辑卷上设置了一个 raid6 阵列,用来确保 iscsi 网络中的一个节点部分每次只能使用 raid 卷。
今天我无法停止音量。以下是我所看到的(简短)完整跟踪:
[root@ceph03 ~]# mdadm --stop /dev/md/disk12
mdadm: failed to stop array /dev/md/disk12: Success
[root@ceph03 ~]#
请忽略上面提示中的 ceph 引用;设置中没有任何与 ceph 相关的内容。
当我运行上述命令时,我看不到任何线索/var/log/messages
,尽管显示了这个跟踪:dmesg
dmesg
[86802.298276] md/raid:md127: device dm-10 operational as raid disk 3
[86802.298309] md/raid:md127: device dm-9 operational as raid disk 2
[86802.298333] md/raid:md127: device dm-8 operational as raid disk 1
[86802.298358] md/raid:md127: device dm-7 operational as raid disk 0
[86802.298858] md/raid:md127: raid level 6 active with 4 out of 4 devices, algorithm 2
[86802.311605] md127: detected capacity change from 0 to 15625334784
[86802.466827] block device autoloading is deprecated and will be removed.
[86802.628293] md/raid:md126: device dm-14 operational as raid disk 3
[86802.628330] md/raid:md126: device dm-13 operational as raid disk 2
[86802.628355] md/raid:md126: device dm-12 operational as raid disk 1
[86802.628379] md/raid:md126: device dm-11 operational as raid disk 0
[86802.628884] md/raid:md126: raid level 6 active with 4 out of 4 devices, algorithm 2
[86802.639225] md126: detected capacity change from 0 to 15625334784
[86802.843550] block device autoloading is deprecated and will be removed.
[86802.961863] md/raid:md125: device dm-18 operational as raid disk 3
[86802.961906] md/raid:md125: device dm-17 operational as raid disk 2
[86802.961932] md/raid:md125: device dm-16 operational as raid disk 1
[86802.962722] md/raid:md125: device dm-15 operational as raid disk 0
[86802.963869] md/raid:md125: raid level 6 active with 4 out of 4 devices, algorithm 2
[86803.009078] md125: detected capacity change from 0 to 15625334784
[538389.817257] systemd-rc-local-generator[9716]: /etc/rc.d/rc.local is not marked executable, skipping.
[541853.695869] block device autoloading is deprecated and will be removed.
[542584.298089] md: md124 stopped.
[542799.943574] block device autoloading is deprecated and will be removed.
[543000.305701] md/raid:md124: device dm-22 operational as raid disk 2
[543000.306453] md/raid:md124: device dm-21 operational as raid disk 3
[543000.307064] md/raid:md124: device dm-20 operational as raid disk 0
[543000.307658] md/raid:md124: device dm-19 operational as raid disk 1
[543000.308793] md/raid:md124: raid level 6 active with 4 out of 4 devices, algorithm 2
[543000.329321] md124: detected capacity change from 0 to 15625334784
但是当我尝试停止数组时没有额外的输出。
对于上述命令和跟踪的上下文:
[root@ceph03 ~]# ls -l /dev/md*
brw-rw---- 1 root disk 9, 124 Apr 11 19:05 /dev/md124
brw-rw---- 1 root disk 9, 125 Apr 11 16:45 /dev/md125
brw-rw---- 1 root disk 9, 126 Apr 11 16:45 /dev/md126
brw-rw---- 1 root disk 9, 127 Apr 11 16:45 /dev/md127
/dev/md:
total 0
lrwxrwxrwx 1 root root 8 Apr 11 19:05 disk12 -> ../md124
lrwxrwxrwx 1 root root 8 Apr 11 16:45 disk7 -> ../md127
lrwxrwxrwx 1 root root 8 Apr 11 16:45 disk8 -> ../md126
lrwxrwxrwx 1 root root 8 Apr 11 16:45 disk9 -> ../md125
[root@ceph03 ~]#
据我所知,该设备没有用于其他任何用途:
[root@ceph03 ~]# lsblk /dev/md124
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
md124 9:124 0 7.3T 0 raid6
[root@ceph03 ~]#
网络中的所有节点都运行 Rocky Linux 9.1。我还能在哪里查找阻止我停止阵列的原因?