Linux XFS filesystem development
 help / color / mirror / Atom feed
* [BUG] xfs.mkfs recognizes wrong disk size
@ 2017-01-05 18:02 Xingbo Wu
  2017-01-05 18:58 ` Eric Sandeen
  0 siblings, 1 reply; 10+ messages in thread
From: Xingbo Wu @ 2017-01-05 18:02 UTC (permalink / raw)
  To: linux-xfs

/dev/sdf is a 3TB hard drive.
It has 2930266584 blocks, as reported in `badblocks -wsv /dev/sdf`:
Checking for bad blocks in read-write mode
>From block 0 to 2930266583

However mkfs.xfs reports a larger block count:
`sudo mkfs.xfs /dev/sdf`:
meta-data=/dev/sdf               isize=512    agcount=4, agsize=183141662 blks
         =                       sectsz=4096  attr=2, projid32bit=1
         =                       crc=1        finobt=1, sparse=0, rmapbt=0
data     =                       bsize=4096   blocks=732566646, imaxpct=5
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal log           bsize=4096   blocks=357698, version=2
         =                       sectsz=4096  sunit=1 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0

It later leads to IO error:
`dmesg`:
[1807875.741674] blk_update_request: I/O error, dev sdf, sector 2930266664
[1807875.741732] blk_update_request: I/O error, dev sdf, sector 2930266664
[1807875.742306] XFS (sdf): metadata I/O error: block 0xaea85228
("xlog_iodone") error 5 numblks 64
[1807875.742369] XFS (sdf): xfs_do_force_shutdown(0x2) called from
line 1200 of file fs/xfs/xfs_log.c.  Return address =
0xffffffffa024090c
[1807875.742381] XFS (sdf): Log I/O Error Detected.  Shutting down filesystem
[1807875.742416] XFS (sdf): xfs_log_force: error -5 returned.
[1807875.742426] XFS (sdf): Please umount the filesystem and rectify
the problem(s)
[1807881.868117] XFS (sdf): xfs_log_force: error -5 returned.
[1807910.701836] XFS (sdf): xfs_log_force: error -5 returned.
[1807910.701841] XFS (sdf): Unmounting Filesystem
[1807910.701854] XFS (sdf): xfs_log_force: error -5 returned.
[1807910.701866] XFS (sdf): xfs_log_force: error -5 returned.



The hard drive information:
Model Family:     Seagate Barracuda 7200.14 (AF)
Device Model:     ST3000DM001-9YN166
Serial Number:    W1F03GXY

-- 

Regards,
        Wu, Xingbo (吴兴博)  <wuxb45@gmail.com>

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-01-05 20:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-05 18:02 [BUG] xfs.mkfs recognizes wrong disk size Xingbo Wu
2017-01-05 18:58 ` Eric Sandeen
2017-01-05 19:04   ` Xingbo Wu
2017-01-05 19:13   ` Darrick J. Wong
2017-01-05 19:19     ` Eric Sandeen
2017-01-05 20:02       ` Xingbo Wu
2017-01-05 19:58     ` Xingbo Wu
2017-01-05 20:01       ` Eric Sandeen
2017-01-05 20:21         ` Darrick J. Wong
2017-01-05 20:41           ` Xingbo Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox