DM Exception Store: clusterized type
Subsystems (2)
PATCH 1/1 DM Exception Store: clusterized type
Patch name: dm-exception-store-clusterized-type.patch
This patch provides an exception store implementation that is capable of "wrapping" other exception store implementations and making them cluster-aware. It is not a stand-alone implementation. It merely uses distributed locking to protect exception store metadata as the single-machine "core" exception stores perform their actions independently. This is why the module uses the term "clusterized" instead of "clustered". This is just a toy right now. I'm not sure how it will perform - I have more optimizations to do yet.
Preliminary test shows the concept works to provide cluster-aware snapshots. Testing is somewhat difficult... and there is quite a bit to do yet. I have a script that will convert single machine snapshots to cluster-aware snapshots that I am willing to share to those who wish to test cluster-aware snapshots.
drivers/md/Kconfig +17 -4
@@ -244,10 +244,10 @@ config DM_CRYPT If unsure, say N. config DM_SNAPSHOT - tristate "Snapshot target" - depends on BLK_DEV_DM - ---help--- - Allow volume managers to take writable snapshots of a device. + tristate "Snapshot target" + depends on BLK_DEV_DM + ---help--- + Allow volume managers to take writable snapshots of a device. config DM_EXSTORE_SHARED tristate "Shared exception store (EXPERIMENTAL)"
@@ -257,6 +257,19 @@ config DM_EXSTORE_SHARED yields space and performance gains when more than one snapshot is taken of a device. +config DM_EXSTORE_CLUSTERIZED + tristate "Cluster-aware exception store wrapper (EXPERIMENTAL)" + depends on BLK_DEV_DM && DM_SNAPSHOT + select DLM + ---help--- + An exception store is a module that is used by snapshots to + record COW areas. This module is capable of wrapping certain + exception stores so that they appear to be cluster-aware. This + has the affect of making device-mapper snapshots cluster-aware. + Not every exception store type can be wrapped. Check the end + of drivers/md/dm-ex-store-clusterized.c to find out what stores + are supported. + config DM_MIRROR tristate "Mirror target" depends on BLK_DEV_DM
drivers/md/Makefile +2 -0
@@ -8,6 +8,7 @@ dm-multipath-objs := dm-path-selector.o dm-snapshot-objs := dm-snap.o dm-exception.o dm-exception-store.o \ dm-snap-persistent.o dm-snap-transient.o dm-exstore-shared-objs := dm-ex-store-shared.o +dm-exstore-clusterized-objs := dm-ex-store-clusterized.o dm-mirror-objs := dm-raid1.o md-mod-objs := md.o bitmap.o raid456-objs := raid5.o raid6algos.o raid6recov.o raid6tables.o \
@@ -37,6 +38,7 @@ obj-$(CONFIG_DM_DELAY) += dm-delay.o obj-$(CONFIG_DM_MULTIPATH) += dm-multipath.o dm-round-robin.o obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o obj-$(CONFIG_DM_EXSTORE_SHARED) += dm-exstore-shared.o +obj-$(CONFIG_DM_EXSTORE_CLUSTERIZED) += dm-exstore-clusterized.o obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o obj-$(CONFIG_DM_ZERO) += dm-zero.o
drivers/md/dm-ex-store-clusterized.c new file +522 -0
522 lines not on this page · raw message
Bah! Sorry, please ignore... there should be two patches in this series...
brassow
Quoted 1 line · Jonathan Brassow
Patch name: dm-exception-store-clusterized-type.patch