服务器崩溃后超级块坏了

服务器崩溃后超级块坏了

我的服务器(CentOS 6)崩溃了,现在启动时出现内核恐慌。它当前使用带有两个 1TB 驱动器的 mdadm RAID1 阵列。

安装:文件系统类型错误、选项错误、/dev/mapper/vg_server2422-LogVol01 上的超级块错误

  • 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就因“分段错误”而崩溃了。

相关内容