[linux-lvm] LVM mirroring questions...

Luca Berra bluca at comedia.it
Fri Apr 11 16:18:20 UTC 2008


On Tue, Apr 08, 2008 at 07:25:05AM -0400, Stuart D. Gathman wrote:
>On Tue, 8 Apr 2008, Jess Bromley wrote:
>
>> Also does the fact that software RAID doesn't use a disk log mean that
>> LVM is actually better/faster than RAID at correctly recovering from
>> crashes that leave the mirrored disks out of sync?
>
>The md driver doesn't track which blocks are out of sync.  It recovers
>from a crash by copying the entire partition.  On recent versions, it
>tracks how far it has gotten on the resync in the md superblock, so that it
>doesn't have to start from scratch on a reboot.

this is not entirely correct.
md has a bitmap feature that is used to track which blocks are out of
sync.

>The md driver keeps its superblock at the *end* of the partition.  This
>means that you can mount any filesystem/pv as the raw partition.
again, newer version of md allow to put the superblock at the beginning
of the device (or 4k from the beginning)

>This requires that LVM give md devices preference when scanning for
>PVs to work correctly :-)

this should be the default in lvm.

L.

-- 
Luca Berra -- bluca at comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \




More information about the linux-lvm mailing list