Re: Disk dying and LVM2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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.

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux