public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* xfs I/O error
@ 2008-02-23 21:46 Rekrutacja119
  2008-02-23 22:00 ` Fwd: " Rekrutacja119
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Rekrutacja119 @ 2008-02-23 21:46 UTC (permalink / raw)
  To: xfs

hello, is there any way to force XFS to ignore I/O errors? it seems it is
shutting down the fs when it encounters any error.
The problem is that i can't mark badsectors, as XFS doesn't support bad
sector marking, but i also cannot access any correct data on partition,
because when i try to access damaged sector, the whole fs goes down.

any idea why?

i use xfsprogs 2.9.4, my xfs is array made from 3 HDs, RAID 0, and one of
them is getting some bad sectors. i cannot replace it currently.

after i run xfs_repair on it, i was able to mount it and access the data,
but when somebody tries to access bad data, the whole XFS goes down. i don't
want that, i also dont have place to xfsmetadump the whole array to another
disks.

i tried scaning whole disk with badblocks (badblocks -c 1 -s -v /dev/sdb),
and then running dd if=/dev/zero of=/dev/sdb count=1 bs=1
seek=NUMBER_FROM_BADBLOCKOUTPUT

but every block was written fine! (which is strange i guess), and it didnt
help.

please advise me anything other than switching the drive (i will do it,
can't now though) or dumping the whole thing as i need to much space.

the easiest solution would be to just ignore errors, and if not, then to
somehow force xfs to mark them as bad sectors (smartctl is showing errors
like for example

# 2  Extended offline    Completed: unknown failure    90%      9395
-

or


Error 8324 occurred at disk power-on lifetime: 9398 hours (391 days + 14
hours)
  When the command that caused the error occurred, the device was active or
idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 30 33 59 e6  Error: UNC at LBA = 0x06593330 = 106509104


[[HTML alternate version deleted]]

^ permalink raw reply	[flat|nested] 19+ messages in thread
* xfs i/O error
@ 2009-07-30 17:03 rnb
  2009-07-30 19:13 ` Eric Sandeen
  2009-07-30 21:45 ` rnb
  0 siblings, 2 replies; 19+ messages in thread
From: rnb @ 2009-07-30 17:03 UTC (permalink / raw)
  To: xfs


Running Ubuntu 9.04 kernel 2.26.28.14 generic
Drive mounts fine.
xfs_repair shows no errors
sudo xfs_repair /dev/sdg1
 Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
        - scan filesystem freespace and inode maps...
        - found root inode chunk
Phase 3 - for each AG...
        - scan and clear agi unlinked lists...
        - process known inodes and perform inode discovery...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
Phase 5 - rebuild AG headers and trees...
        - reset superblock...
Phase 6 - check inode connectivity...
        - resetting contents of realtime bitmap and summary inodes
        - traversing filesystem ...
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
Phase 7 - verify and correct link counts...
done

xfs_check did move a few things around but finished fine

sudo xfs_fsr -v /dev/sdg1 <== This is just so far it is still running.
/media/Films start inode=0
ino=140
bad read of 0 bytes from ino=140: Input/output error
ino=139
extents before:66 after:8      ino=139
ino=145
extents before:42 after:7      ino=145
ino=146
extents before:40 after:8      ino=146
ino=143
bad read of 0 bytes from ino=143: Input/output error
ino=144
extents before:27 after:8      ino=144
ino=8763008
bad read of 0 bytes from ino=8763008: Input/output error
ino=8763059
bad read of 0 bytes from ino=8763059: Input/output error
ino=8763057
extents before:307 after:12      ino=8763057
ino=8763058
extents before:259 after:11      ino=8763058
ino=8763024
bad read of 0 bytes from ino=8763024: Input/output error
ino=8763055
kk
extents before:125 after:10      ino=8763055
ino=8763030
bad read of 0 bytes from ino=8763030: Input/output error
ino=8763060
bad read of 0 bytes from ino=8763060: Input/output error
ino=8763056
extents before:62 after:13      ino=8763056
ino=8763066

Now my issue is how do I fix it if xfs_repair doesn't see a problem.
Anything getting copied to the drive works fine in place wasn't until i
tried to move it off I noticed the issue. Some things copy fine from it
several others fail. Then i get Input/output error. It is a full 1tb drive .
WD mybook it lost power which I think is what caused this issue. How can I
correct the issue. Everything I try takes a hell of a long time and doesn't
yield a positive result
-- 
View this message in context: http://www.nabble.com/xfs-i-O-error-tp24742623p24742623.html
Sent from the Xfs - General mailing list archive at Nabble.com.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

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

end of thread, other threads:[~2009-07-31 20:36 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-23 21:46 xfs I/O error Rekrutacja119
2008-02-23 22:00 ` Fwd: " Rekrutacja119
2008-02-23 22:08 ` Iustin Pop
2008-02-23 22:14   ` Rekrutacja119
2008-02-24  9:01     ` Iustin Pop
2008-02-24 11:52       ` Rekrutacja119
2008-02-24 12:31         ` Iustin Pop
2008-02-25 16:40           ` Rekrutacja119
2008-02-25 17:17             ` Eric Sandeen
2008-02-24  3:53 ` Eric Sandeen
2008-02-24 12:17 ` Ragnar Kjørstad
     [not found]   ` <2db2c6b80802250847m2d161f5n276026dae396d3cc@mail.gmail.com>
     [not found]     ` <20080225211055.GK29277@vestdata.no>
2008-02-26 20:13       ` Rekrutacja119
  -- strict thread matches above, loose matches on Subject: below --
2009-07-30 17:03 xfs i/O error rnb
2009-07-30 19:13 ` Eric Sandeen
2009-07-30 21:45 ` rnb
2009-07-30 23:48   ` Michael Monnerie
2009-07-31  3:37     ` Eric Sandeen
2009-07-31  9:08       ` Michael Monnerie
2009-07-31 20:36   ` Emmanuel Florac

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