* xfs_repair Input/output error
@ 2009-04-29 3:40 Cory Coager
2009-04-29 4:28 ` Michael Monnerie
0 siblings, 1 reply; 2+ messages in thread
From: Cory Coager @ 2009-04-29 3:40 UTC (permalink / raw)
To: xfs
[-- Attachment #1.1: Type: text/plain, Size: 2298 bytes --]
I had a power failure while I was running a defrag on an xfs partition. Now
I am unable to mount, xfs_check or xfs_repair the partition. The partition
is lvm and all other partitions seem to be fine except this one. When
attempting to mount the partition the drive makes some funny noises and
these messages spit out on the console:
hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=268552872,
high=16, low=117416, sector=268552868
ide: failed opcode was: unknown
end_request: I/O error, dev hda, sector 268552868
I believe the drive is fine because check_ide_smart reports:
Id= 1, Status=11 {PreFailure , OnLine }, Value=100, Threshold= 60, Passed
Id= 2, Status= 5 {PreFailure , OffLine}, Value=100, Threshold= 50, Passed
Id= 3, Status= 7 {PreFailure , OnLine }, Value=151, Threshold= 24, Passed
Id= 4, Status=18 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id= 5, Status=51 {PreFailure , OnLine }, Value=100, Threshold= 5, Passed
Id= 7, Status=11 {PreFailure , OnLine }, Value=100, Threshold= 67, Passed
Id= 8, Status= 5 {PreFailure , OffLine}, Value=100, Threshold= 20, Passed
Id= 9, Status=18 {Advisory , OnLine }, Value= 96, Threshold= 0, Passed
Id= 10, Status=19 {PreFailure , OnLine }, Value=100, Threshold= 60, Passed
Id= 12, Status=50 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id=192, Status=50 {Advisory , OnLine }, Value= 99, Threshold= 50, Passed
Id=193, Status=18 {Advisory , OnLine }, Value= 99, Threshold= 50, Passed
Id=194, Status= 2 {Advisory , OnLine }, Value=137, Threshold= 0, Passed
Id=196, Status=50 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id=197, Status=34 {Advisory , OnLine }, Value=100, Threshold= 0, Passed
Id=198, Status= 8 {Advisory , OffLine}, Value=100, Threshold= 0, Passed
Id=199, Status=10 {Advisory , OnLine }, Value=200, Threshold= 0, Passed
OffLineStatus=0 {NeverStarted}, AutoOffLine=No, OffLineTimeout=92 minutes
OffLineCapability=27 {Immediate Auto SuspendOnCmd}
SmartRevision=16, CheckSum=151, SmartCapability=3 {SaveOnStandBy AutoSave}
I can xxd and dd this partition without getting any console errors. I can
also mount the partition with -o ro,norecovery. How do I repair this and
recover my data?
[-- Attachment #1.2: Type: text/html, Size: 2615 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: xfs_repair Input/output error
2009-04-29 3:40 xfs_repair Input/output error Cory Coager
@ 2009-04-29 4:28 ` Michael Monnerie
0 siblings, 0 replies; 2+ messages in thread
From: Michael Monnerie @ 2009-04-29 4:28 UTC (permalink / raw)
To: xfs
[-- Attachment #1.1: Type: text/plain, Size: 1861 bytes --]
On Mittwoch 29 April 2009 Cory Coager wrote:
> When attempting to mount the partition the drive makes some funny
> noises and these messages spit out on the console:
>
> hda: dma_intr: status=0x51 { DriveReady SeekComplete Error }
> hda: dma_intr: error=0x40 { UncorrectableError }, LBAsect=268552872,
> high=16, low=117416, sector=268552868
> ide: failed opcode was: unknown
> end_request: I/O error, dev hda, sector 268552868
This is definitely your drive gone bad.
> I believe the drive is fine because check_ide_smart reports:
If the drive "makes funny noises" and I/O errors are logged, it has bad
sectors. Try with
# smartctl -a /dev/sda
and look for a line like this:
5 Reallocated_Sector_Ct 0x0033 100 100 036 Pre-fail Always - 0
If the last number is >0, your drive has problems - replace it!
For a full SMART check, please try:
smartctl --smart=on --offlineauto=on --saveauto=on --test=long /dev/sda
This tells your drive to make a long selftest. It prints the estimated
time for the test to run (usually 1-3h). Then check your smart values
again. You should try to not use your drive during this time.
> I can xxd and dd this partition without getting any console errors.
It is possible the drive remapped the bad sectors itself.
> I can also mount the partition with -o ro,norecovery. How do I repair
> this and recover my data?
Plug in new drive.
Boot from recovery cd
dd if=/dev/sda of=/dev/sdb
remove old drive
xfs_repair
enjoy
mfg zmi
--
// Michael Monnerie, Ing.BSc ----- http://it-management.at
// Tel: 0660 / 415 65 31 .network.your.ideas.
// PGP Key: "curl -s http://zmi.at/zmi.asc | gpg --import"
// Fingerprint: AC19 F9D5 36ED CD8A EF38 500E CE14 91F7 1C12 09B4
// Keyserver: wwwkeys.eu.pgp.net Key-ID: 1C1209B4
[-- Attachment #1.2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
[-- Attachment #2: Type: text/plain, Size: 121 bytes --]
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-04-29 4:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29 3:40 xfs_repair Input/output error Cory Coager
2009-04-29 4:28 ` Michael Monnerie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox