mkfs.xfs:libxfs_device_zero写入失败:input/输出错误

我找不到在我的一个磁盘上创build文件系统的方法。

首先我geting下面的输出:

[root@~]# mkfs.xfs /dev/sdb1 mkfs.xfs: /dev/sdb1 appears to contain a partition table (dos). mkfs.xfs: Use the -f option to force overwrite. 

使用-F标志后:

 [root@~]# mkfs.xfs -f /dev/sdb1 meta-data=/dev/sdb1 isize=256 agcount=32, agsize=22892696 blks = sectsz=512 attr=2 data = bsize=4096 blocks=732566272, imaxpct=5 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=357698, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 **mkfs.xfs: libxfs_device_zero write failed: Input/output error** 

的/ dev / sdb的:

 Disk /dev/sdb: 3001GB 1 1049kB 3001GB 3001GB primary 

Linux的:

 Centos 6.3 Linux 1 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux 

到目前为止,我已经尝试过:使用parted rm 1重新创build分区

 mkfs.xfs: libxfs_device_zero write failed: Input/output error 

消息非常明确:这是一个硬件问题。 如果是简单的SATA或SAS驱动器,请检查连接,查看驱动程序错误消息的dmesg。 你也可以试试badblocks; 我的猜测是磁盘失败,需要更换,简单明了。