Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I can't find a way to create a filesystem on one of my disks.

first i'm geting the following output:

[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.

after using -F flag:

[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

what i've tried so far: recreating partition with parted rm 1

share|improve this question
    
Disk /dev/sdb: 3001GB 1 1049kB 3001GB 3001GB primary –  Crazy_Bash Oct 24 '12 at 20:26
    
Version of Linux and distribution? –  ewwhite Oct 24 '12 at 20:33
    
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 –  Crazy_Bash Oct 24 '12 at 20:36

1 Answer 1

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

The message is very clear: it's a hardware problem. If it's a simple SATA or SAS drive, check connections, look dmesg for driver error messages. You could also give badblocks a try; my guess is that the disk is failing and needs to be replaced, plain and simple.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.