[linux-lvm] Disk dying and LVM2

Stuart D. Gathman stuart at bmsi.com
Mon Feb 11 18:27:50 UTC 2008


On Mon, 11 Feb 2008, Jonathan Brassow wrote:

> pvmove will ignore the errors it encounters and "do the best it can"  
> to transfer all data.  If it can't read a certain sector, that will be  
> missing from the move.

Having done logic like that for my own filesystem, it is not trivial to
do efficiently.  You have to read a large buffer, but when there
is an IO error, the OS doesn't always report the bad sector correctly,
so you have to then narrow down the bad parts in that buffer.
Reading the buffer 1 sector at a time works, using binary search 
(read each half, read each half of failing half, etc) is faster but
more complex.  Without some such logic, more data is lost in the buffer
containing bad blocks that is necessary.

pvmove source is available, and I'll take a look when I get to it, but in the
meantime maybe someone knows, does pvmove incorporate such logic?

-- 
	      Stuart D. Gathman <stuart at bmsi.com>
    Business Management Systems Inc.  Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flammis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.




More information about the linux-lvm mailing list