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

Re: [linux-lvm] LVM mirroring questions...

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.

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.
This requires that LVM give md devices preference when scanning for
PVs to work correctly :-)

Mounting without md can be done deliberately (and carefully!) in
certain situations to work around other bugs.  For instance, if grub
won't work with md devices, just fail all but one of the mirrors of the
boot partition, mount /boot as normal parition.  Run grub-install.  Then
umount /boot, remount as md, and add back mirrors.

	      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.

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