我正在使用 Debian 11。
我有一个包含 5 个磁盘(4 个活动磁盘,1 个备用磁盘)的 mdadm RAID 5 阵列,用作 VG 的 PV,其中创建了 2 个 LV:一个用于家庭,一个用于备份。
每次启动时都会安装家庭 LV,没有问题。备份 LV 没有,启动过程在 fsck 上稍稍挂起,然后失败。我必须进入紧急模式,在备份 LV 上以 root 身份手动运行 fsck(它似乎尝试并纠正大量 inode),重新启动,然后一切正常。
我一直在尝试查看每个磁盘的 smartctl 输出,但所有磁盘的 Realulated_Sector_Ct 或 Current_Pending_Sector 均为 0。
有人知道吗?让我知道您需要什么输出。多谢。
编辑:所以,是的,在检查 my 后/etc/fstab
,备份 LV 是在交换和 ODD 之后安装的,而主 LV 是在这些之前安装的。我尝试将备份 LV 移到主 LV 之后、交换和 ODD 之前,问题就消失了。问题已解决,谢谢大家的帮助。
Edit2:不,定期关闭后问题仍然存在。所以正如所问:
消息
[ 1.388548] sd 1:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 1.388556] sd 1:0:0:0: [sda] Write Protect is off
[ 1.388558] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.388578] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.388603] sd 1:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[ 1.388631] sd 2:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 1.388633] sd 2:0:0:0: [sdb] 4096-byte physical blocks
[ 1.388643] sd 2:0:0:0: [sdb] Write Protect is off
[ 1.388646] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[ 1.388659] sd 4:0:0:0: [sde] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 1.388661] sd 2:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.388662] sd 4:0:0:0: [sde] 4096-byte physical blocks
[ 1.388667] sd 5:0:0:0: [sdd] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 1.388668] sd 5:0:0:0: [sdd] 4096-byte physical blocks
[ 1.388670] sd 3:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[ 1.388672] sd 3:0:0:0: [sdc] 4096-byte physical blocks
[ 1.388672] sd 4:0:0:0: [sde] Write Protect is off
[ 1.388674] sd 4:0:0:0: [sde] Mode Sense: 00 3a 00 00
[ 1.388676] sd 5:0:0:0: [sdd] Write Protect is off
[ 1.388678] sd 5:0:0:0: [sdd] Mode Sense: 00 3a 00 00
[ 1.388683] sd 3:0:0:0: [sdc] Write Protect is off
[ 1.388684] sd 3:0:0:0: [sdc] Mode Sense: 00 3a 00 00
[ 1.388686] sd 2:0:0:0: [sdb] Preferred minimum I/O size 4096 bytes
[ 1.388691] sd 4:0:0:0: [sde] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.388694] sd 5:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.388699] sd 3:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.388712] sd 4:0:0:0: [sde] Preferred minimum I/O size 4096 bytes
[ 1.388714] sd 5:0:0:0: [sdd] Preferred minimum I/O size 4096 bytes
[ 1.388725] sd 3:0:0:0: [sdc] Preferred minimum I/O size 4096 bytes
[ 1.429357] sde: sde1
[ 1.429601] sd 4:0:0:0: [sde] Attached SCSI disk
[ 1.429697] sdd: sdd1
[ 1.429869] sd 5:0:0:0: [sdd] Attached SCSI disk
[ 1.430626] sdb: sdb1
[ 1.430853] sd 2:0:0:0: [sdb] Attached SCSI disk
[ 1.441422] sda: sda1
[ 1.441590] sd 1:0:0:0: [sda] Attached SCSI disk
[ 1.450143] sdc: sdc1
[ 1.450331] sd 3:0:0:0: [sdc] Attached SCSI disk
[ 1.531633] sr 0:0:0:0: [sr0] scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda tray
[ 1.531644] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 1.594613] sr 0:0:0:0: Attached scsi CD-ROM sr0
[ 1.868769] md/raid:md0: device sda1 operational as raid disk 3
[ 1.868771] md/raid:md0: device sdd1 operational as raid disk 2
[ 1.868772] md/raid:md0: device sdc1 operational as raid disk 0
[ 1.868772] md/raid:md0: device sde1 operational as raid disk 1
[ 1.869107] md/raid:md0: raid level 5 active with 4 out of 4 devices, algorithm 2
[ 1.892978] md0: detected capacity change from 0 to 11720288256
[ 33.846459] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Quota mode: none.