[linux-lvm] Errors from a mirrored LV

Fredrik Tolf fredrik at dolda2000.com
Sat Sep 11 05:02:58 UTC 2010

Hi list,

Having a disk that's going awry, I'm glad I've got the data in a
mirrored LV so that I can replace it.

However, now that I still haven't got a new disk to replace it with, it
seems that LVM is nevertheless returning I/O errors for reads from the
broken sectors, as evidenced by logs like these:

ata4.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0
ata4.00: BMDMA2 stat 0xc0009
ata4.00: cmd 25/00:08:a7:1c:84/00:00:27:00:00/e0 tag 0 dma 4096 in
         res 51/40:00:aa:1c:84/00:00:27:00:00/e0 Emask 0x9 (media error)
ata4.00: status: { DRDY ERR }
ata4.00: error: { UNC }
ata4.00: configured for UDMA/100
sd 3:0:0:0: [sdd] Result: hostbyte=DID_OK
sd 3:0:0:0: [sdd] Sense Key : Medium Error [current] [descriptor]
Descriptor sense data with sense descriptors (in hex):
        72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00 
        27 84 1c aa 
sd 3:0:0:0: [sdd] Add. Sense: Unrecovered read error - auto reallocate
end_request: I/O error, dev sdd, sector 662969514
ata4: EH complete
I/O error in filesystem ("dm-3") meta-data dev dm-3 block 0x27841ae8
("xfs_trans_read_buf") error 5 buf count 4096

Note that last line of log, emitted by XFS.

Shouldn't LVM, when a read fails in a mirror, try to fetch that data
from the second disk instead?


Fredrik Tolf

More information about the linux-lvm mailing list