Either the superblock or the partition table is likely to be corrupted的解决

昨天在debian搞软raid1遇见的问题,在把制作好md0后,在fstab文件加上对应的mount位置,在重启后检查磁盘出错!

在执行fsck /dev/md0就出现,Either the superblock or the partition table is likely to be corrupted 问题,对应的还有一句话,没有抄下来,在google大人的引领下,找到解决方法,网址如下:
http://www.linuxquestions.org/questions/linux-hardware-18/size-in-superblock-is-different-from-the-physical-size-of-the-partition-298175/

也是类似出现
The filesystem size (according to the superblock) is 10485760 blocks
The physical size of the device is 10477568 blocks
Either the superblock or the partition table is likely to be corrupt!

我的不是10485760这个数值,我按照:
resize2fs -f /dev/md0 10477568
这个格式命令,输入我的那个数值,结果一切问题解决。

fsck /dev/md0通过检查,没问题!

其实我的问题,我猜想可能是两个不同型号的西数1T绿盘组成软raid1造成的!

WDC WD10EARS 和 WDC WD10EADX 这两个绿盘
WDC WD10EARS是我在之前买的,已经有很多数据,WDC WD10EADX 是前两天买的。

数据大概如下吧:sda是WDC WD10EARS,sdb是WDC WD10EADX
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
256 heads, 63 sectors/track, 121126 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 1 121127 976762552 fd Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2b0f9d40

Device Boot Start End Blocks Id System
/dev/sdb1 1 121601 976760001 fd Linux raid autodetect

现在问题解决了,一切正常了,我的家用文件服务器终于进入raid时代了,虽然是软raid .

关于无聊人

一个无聊人而已
此条目发表在Linux分类目录。将固定链接加入收藏夹。

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注