[DRBD-user] drbd and lvm

Lars Ellenberg Lars.Ellenberg at linbit.com
Sat Mar 20 14:40:44 CET 2004

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


/ 2004-03-19 16:58:01 -0800
\ Kees Cook:
> resulting in the following stack:
> 
> fs
> lv
> vg
> pv
> drbd
> md/hardware
> disks

LVM expects to be the layer immediately below the file system,
so snapshots in general do not work properly if there is some
stacking driver like DRBD in between.

With this stacking order, even snapshots do work now.
Though there probably will be some "unexpected" behaviour ...

> > You need to use LVM2 for this to work.
> 
> Yup!  That's the situation so far.

Well, someone *could* of course hack up the lvm1 tools,
would only be minor changes... grep for MD_MAJOR and .*_MD, add
appropriate code similar to the MD special cases for the
NBD_MAJOR, and give NBD_MAJOR higher priority for the
pv_check_and_add_path and so on...

But, lvm2 is available, so why not use it.

	Lars Ellenberg



More information about the drbd-user mailing list