Skip to contentSkip to conversation

LVM2 lvcreate multi snapshots and dm-devel patches

linux-lvm Hubert 2 participants 2 messages Oct 3, 2005

lore
Share & tools
lore

Hubert

author
#0 lore raw

Hello all,

Which below dm-devel patch or patches should help to create multiple snapshots of LVM2 logical volume and which 2.6 kernel version should i use ?

ftp://sources.redhat.com/pub/dm/patches/2.6-unstable/editing-quilt/patches/

Thanks for all help

Regards
Hubert

----------------------------------------------------------------------
Moto TV w Internecie! >>> http://link.interia.pl/f18b7

#1 lore raw
Quoted 1 line · Hubert

ftp://sources.redhat.com/pub/dm/patches/2.6-unstable/editing-quilt/patches/

dm-snapshot-metadata-reading-separation.patch

followed by:

dm-snapshot-load-metadata-on-creation.patch

[with any recent kernel]

These patches are meant to solve one of the problems: they mean that the metadata for snapshots is set up when the snapshot is created instead of the first time it is accessed.

However, if you apply them, you'll find that some LVM2 snapshot operations are incomplete or hang and need prodding or finishing with dmsetup (eg with a dmsetup resume or remove). This is because the order LVM2 does some operations needs to be changed.

You should also apply dm-snapshot-chunksize-fix.patch - it stops you choosing a chunk size that is too big and causes a crash. (Validation has also been added to LVM2 in CVS to validate the chunk size better.)

Alasdair

Signature · 1 line
[email protected]