[linux-lvm] LVM1 pvmove fails to move PE with read errors
Ville.Sulko at elisa.fi
Fri Jan 5 14:07:00 UTC 2007
I have an old linux server running RH9. The system
has two scsi disks, one of which shows scsi-errors
for a few sectors.
I mapped these disk sectors to one PE, number 00097
on PV sda2 (LE 00097 on vg00/lvol02). I tried to
move this LE to different PV (sdb1), using command:
pvmove -v -i -n lvol02:97 /dev/sda2 /dev/sdb1
However, moving fails with the following errors:
pvmove -- /dev/sda2 [PE 97 [lvol02 [LE 97]] -> /dev/sdb1 [PE 1946] [1/1]
/dev/Volume00/group::/dev/Volume00/lvol02: 0802 803200, 0811 15950208
pvmove -- ERROR "Input/output error" copying extent from "/dev/sda2"
pvmove -- ERROR "Input/output error" moving physical extents
and as a result LE was not moved. I would expect this to
work as I used the -i -option (--ignore_read_errors).
pvmove result code is 23 (error moving physical extent(s)).
Moving the PE to working disk would allow me to run fsck
and repair the filesystem. Of course some of the data
would be corrupt, because of the read errors. Well, this
is irrelevant, the point is, that -i -option seems not to
I know this is old LVM1 version, with little or no
maintenance. Kernel and LVM utility versions are as
Example SCSI error:
scsi0: ERROR on channel 0, id 0, lun 0, CDB: Read (10) 00 00 0f 8d 8b 00 03 c2 00
Info fld=0xf8d8b, Current sd08:02: sense key Medium Error
Additional sense indicates Data synchronization mark error
I/O error: dev 08:02, sector 810430
More information about the linux-lvm