![服务器崩溃后超级块坏了](https://linux22.com/image/27530/%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%B4%A9%E6%BA%83%E5%90%8E%E8%B6%85%E7%BA%A7%E5%9D%97%E5%9D%8F%E4%BA%86.png)
我的服务器(CentOS 6)崩溃了,现在启动时出现内核恐慌。它当前使用带有两个 1TB 驱动器的 mdadm RAID1 阵列。
vg_server2422-LogVol01
是 /vg_server2422-LogVol00
是交换vg_server2422-LogVol02
是包含我所有数据的分区。
我已通过以下方式启动到 CentOS 6.3 LiveCD。虚拟媒体,并且我已运行lvscan
,这会将卷返回为活动状态。
fsck
说:
文件系统大小(根据超级块是232603648块
设备的物理大小为214958080块
超级块或分区表可能已损坏!
如果我不中止 LogVol02:
/dev/mapper/vg_server2422-LogVol02 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary informatoin
Error reading block 214958080 (Attempt to read block from filesystem resulted in short read) while reading inode and block bitmaps. Ignore error<y>? yes
Force rewrite<y>? yes
Error reading block 214958080 (Attempt to read block from filesystem resulted in short read) while reading inode and block bitmaps. Ignore error<y>? yes
Force rewrite<y>? yes
Error reading block 214958081 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? yes
Force rewrite<y>? yes
Error reading block 214958081 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? yes
Error reading block 215482368 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? yes
Force rewrite<y>? yes
Error reading block 215482368 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? yes
Error reading block 216006656 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>? yes
Force rewrite<y>? yes
Error reading block 216006656 (Invalid argument) while reading inode and block bitmaps. Ignore error<y>?
...你明白了。它持续了很长一段时间。之后尝试挂载会引发相同的错误(错误的文件系统类型、错误的选项、错误的超级块)。我已经尝试了所有的 SuperBlock 备份fsck
,但它们都不起作用。
有任何想法吗?
我遵循了以下建议之一恢复 ext4 超级块mke2fs -S -b 4096
然后跑了fsck
,但是过了一会儿fsck
就因“分段错误”而崩溃了。