有两个基于分区的 PV 上有一个带有 VG 的 LVM
我的错了,以下所有事情都发生在已挂载的文件系统上。
我已成功添加第三个 PV
pvcreate /dev/sdc2
成功延长 VG
vgextend vgstorage /dev/sdc2
成功延长 LV
lvextend -r -l +100%FREE /dev/vgstorage/lvstorage
扩展后一到两小时发生电源故障,之后文件系统被破坏。
dmesg | grep dm-4
[ 7.705752] EXT4-fs (dm-4): VFS: Found ext4 filesystem with invalid superblock checksum. Run e2fsck?
我试过:
e2fsck /dev/dm-4
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Superblock checksum does not match superblock
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Superblock checksum does not match superblock while trying to open /dev/dm-4
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
这里建议的超级块也不起作用。
Testdisk 下的 >[ Advanced ] Filesystem Utils 中的 >[Superblock] 显示以下内容:
Disk /dev/mapper/vgstorage-lvstorage - 35 TB / 32 TiB - 70219857920 sectors
Partition Start End Size in sectors
ext4 0 70219857919 70219857920
superblock 0, blocksize=4096 []
ext4 262144 70220120063 70219857920
superblock 0, blocksize=4096 []
ext4 786432 70220644351 70219857920
superblock 0, blocksize=4096 []
ext4 1310720 70221168639 70219857920
superblock 0, blocksize=4096 []
ext4 1835008 70221692927 70219857920
superblock 0, blocksize=4096 []
ext4 2359296 70222217215 70219857920
superblock 0, blocksize=4096 []
ext4 6553600 70226411519 70219857920
superblock 0, blocksize=4096 []
ext4 7077888 70226935807 70219857920
superblock 0, blocksize=4096 []
ext4 12845056 70232702975 70219857920
superblock 0, blocksize=4096 []
ext4 21233664 70241091583 70219857920
superblock 0, blocksize=4096 []
To repair the filesystem using alternate superblock, run
fsck.ext4 -p -b superblock -B blocksize device
enter code here