From: Eric Sandeen <sandeen@sandeen.net>
To: Rekrutacja119 <rekrutacja119@gmail.com>
Cc: xfs@oss.sgi.com
Subject: Re: xfs I/O error
Date: Sat, 23 Feb 2008 21:53:28 -0600 [thread overview]
Message-ID: <47C0EA38.5060601@sandeen.net> (raw)
In-Reply-To: <2db2c6b80802231346r78d59381j49927e15f40e7ef8@mail.gmail.com>
Rekrutacja119 wrote:
> 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.
It does not shut down on any error; it should only be shutting down on
errors after which it cannot guarantee filesystem consistency.
> 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?
Depends on what the sector is and what xfs is doing with it.
(btw the trace you posted in your next messages looks like you edited
out some relevant information)
> 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.
xfs can't really help you with your bad hardware ;)
> 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 do not think metadump does what you think it does... it only copies
metadata.
> 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.
as iustin said, I think you just pretty well clobbered some important
metadata on your disk. badblocks gives you block numbers in 1024 units.
You gave dd a block size of 1... then rather than seeking out the
proper number of 1024 units, you seeked that many bytes; overwriting
probably important stuff at the beginning of your disk (since your wrote
at 1/1024 the offset that you should have)
> 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.
mount it readonly to get to the data you need?
> 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
IMHO marking sectors bad is pointless. If you have a failing drive, it
will only get worse. At best you could use badblocks to try some writes
to remap; assuming you don't get it wrong and just zero out more of your
disk...
-Eric
> # 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]]
>
>
next prev parent reply other threads:[~2008-02-24 3:53 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47C0EA38.5060601@sandeen.net \
--to=sandeen@sandeen.net \
--cc=rekrutacja119@gmail.com \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox