dm-replicator: introduce new remote replication target
Subsystems (3)
v3 cover dm-replicator: introduce new remote replication target
From: Heinz Mauelshagen <[email protected]>
* 3rd version of patch series (dated Oct 23 2009) *
Reworked to allow for Build after each single patch has been applied.
This is a series of 4 patches introducing the device-mapper remote data replication target "dm-replicator" to kernel 2.6.
Userspace support for remote data replication will be in a future LVM2 version.
The target supports disaster recovery by replicating groups of active mapped devices (ie. receiving io from applications) to one or more remote sites to paired groups of equally sized passive block devices (ie. no application access). Synchronous, asynchronous replication (with fallbehind settings) and temporary downtime of transports are supported.
It utilizes a replication log to ensure write ordering fidelity for the whole group of replicated devices, hence allowing for consistent recovery after failover of arbitrary applications
(eg. DBMS utilizing N > 1 devices).
In case the replication log runs full, it is capable to fall back to dirty logging utilizing the existing dm-log module, hence keeping track of regions of devices wich need resynchronization after access to the transport returned.
Access logic of the replication log and the site links are implemented as loadable modules, hence allowing for future implementations with different capabilities in terms of additional plugins.
A "ringbuffer" replication log module implements a circular ring buffer store for all writes being processed. Other replication log handlers may follow this one as plugins too.
A "blockdev" site link module implements block devices access to all remote devices, ie. all devices exposed via the Linux block device layer (eg. iSCSI, FC).
Again, other eg. network type transport site link handlers may follow as plugins.
Please review for upstream inclusion.
Heinz
PATCH v3 1/4 dm-replicator: documentation and module registry
From: Heinz Mauelshagen <[email protected]>
The dm-registry module is a general purpose registry for modules.
The remote replicator utilizes it to register its ringbuffer log and site link handlers in order to avoid duplicating registry code and logic.
--- Documentation/device-mapper/replicator.txt | 203 +++++++++++++++++++++++++ drivers/md/Kconfig | 8 + drivers/md/Makefile | 1 + drivers/md/dm-registry.c | 224 ++++++++++++++++++++++++++++ drivers/md/dm-registry.h | 38 +++++ 5 files changed, 474 insertions(+), 0 deletions(-) create mode 100644 Documentation/device-mapper/replicator.txt create mode 100644 drivers/md/dm-registry.c create mode 100644 drivers/md/dm-registry.h
Documentation/device-mapper/replicator.txt new file +203 -0
@@ -0,0 +1,203 @@ +dm-replicator +============= + +Device-mapper replicator is designed to enable redundant copies of +storage devices to be made - preferentially, to remote locations. +RAID1 (aka mirroring) is often used to maintain redundant copies of +storage for fault tolerance purposes. Unlike RAID1, which often +assumes similar device characteristics, dm-replicator is designed to +handle devices with different latency and bandwidth characteristics +which are often the result of the geograhic disparity of multi-site +architectures. Simply put, you might choose RAID1 to protect from +a single device failure, but you would choose remote replication +via dm-replicator for protection against a site failure. + +dm-replicator works by first sending write requests to the "replicator +log". Not to be confused with the device-mapper dirty log, this +replicator log behaves similarly to that of a journal. Write requests +go to this log first and then are copied to all the replicate devices +at their various locations. Requests are cleared from the log once all +replicate devices confirm the data is received/copied. This architecture +allows dm-replicator to be flexible in terms of device characteristics. +If one device should fall behind the others - perhaps due to high latency - +the slack is picked up by the log. The user has a great deal of +flexibility in specifying to what degree a particular site is allowed to +fall behind - if at all. + +Device-Mapper's dm-replicator has two targets, "replicator" and +"replicator-dev". The "replicator" target is used to setup the +aforementioned log and allow the specification of site link properties. +Through the "replicator" target, the user might specify that writes +that are copied to the local site must happen synchronously (i.e the +writes are complete only after they have passed through the log device +and have landed on the local site's disk). They may also specify that +a remote link should asynchronously complete writes, but that the remote +link should never fall more than 100MB behind in terms of processing. +Again, the "replicator" target is used to define the replicator log and +the characteristics of each site link. + +The "replicator-dev" target is used to define the devices used and +associate them with a particular replicator log. You might think of +this stage in a similar way to setting up RAID1 (mirroring). You +define a set of devices which will be copies of each other, but +access the device through the mirror virtual device which takes care +of the copying. The user accessible replicator device is analogous +to the mirror virtual device, while the set of devices being copied +to are analogous to the mirror images (sometimes called 'legs'). +When creating a replicator device via the "replicator-dev" target, +it must be associated with the replicator log (created with the +aforementioned "replicator" target). When each redundant device +is specified as part of the replicator device, it is associated with +a site link whose properties were defined when the "replicator" +target was created. + +The user can go farther than simply replicating one device. They +can continue to add replicator devices - associating them with a +particular replicator log. Writes that go through the replicator +log are guarenteed to have their write ordering preserved. So, if +you associate more than one replicator device to a particular +replicator log, you are preserving write ordering across multiple +devices. This might be useful if you had a database that spanned +multiple disks and write ordering must be preserved or any transaction +accounting scheme would be foiled. (You can imagine this like +preserving write ordering across a number of mirrored devices, where +each mirror has images/legs in different geographic locations.) + +dm-replicator has a modular architecture. Future implementations for +the replicator log and site link modules are allowed. The current +replication log is ringbuffer - utilized to store all writes being +subject to replication and enforce write ordering. The current site +link code is based on accessing block devices (iSCSI, FC, etc) and +does device recovery including (initial) resynchronization. + + +Picture of a 2 site configuration with 3 local devices (LDs) in a +primary site being resycnhronied to 3 remotes sites with 3 remote +devices (RDs) each via site links (SLINK) 1-2 with site link 0 +as a special case to handle the local devices: + + | + Local (primary) site | Remote sites + -------------------- | ------------ + | + D1 D2 Dn | + | | | | + +---+- ... -+ | + | | + REPLOG-----------------+- SLINK1 ------------+ + | | | | + SLINK0 (special case) | | | + | | | | + +-----+ ... + | | +----+- ... -+ + | | | | | | | | + LD1 LD2 LDn | | RD1 RD2 RDn + | | + +-- SLINK2------------+ + | | | + | | +----+- ... -+ + | | | | | + | | RD1 RD2 RDn + | | + | | + | | + +- SLINKm ------------+ + | | + | +----+- ... -+ + | | | | + | RD1 RD2 RDn + + + + +The following are descriptions of the device-mapper tables used to +construct the "replicator" and "replicator-dev" targets. + +"replicator" target parameters: +------------------------------- +<start> <length> replicator \ + <replog_type> <#replog_params> <replog_params> \ + [<slink_type_0> <#slink_params_0> <slink_params_0>]{1..N} + +<replog_type> = "ringbuffer" is currently the only available type +<#replog_params> = # of args following this one intended for the replog (2 or 4) +<replog_params> = <dev_path> <dev_start> [auto/create/open <size>] + <dev_path> = device path of replication log (REPLOG) backing store + <dev_start> = offset to REPLOG header + create = The replication log will be initialized if not active + and sized to "size". (If already active, the create + will fail.) Size is always in sectors. + open = The replication log must be initialized and valid or + the constructor will fail. + auto = If a valid replication log header is found on the + replication device, this will behave like 'open'. + Otherwise, this option behaves like 'create'. + +<slink_type> = "blockdev" is currently the only available type +<#slink_params> = 1/2/4 +<slink_params> = <slink_nr> [<slink_policy> [<fall_behind> <N>]] + <slink_nr> = This is a unique number that is used to identify a + particular site/location. '0' is always used to + identify the local site, while increasing integers + are used to identify remote sites. + <slink_policy> = The policy can be either 'sync' or 'async'. + 'sync' means write requests will not return until + the data is on the storage device. 'async' allows + a device to "fall behind"; that is, outstanding + write requests are waiting in the replication log + to be processed for this site, but it is not delaying + the writes of other sites. + <fall_behind> = This field is used to specify how far the user is + willing to allow write requests to this specific site + to "fall behind" in processing before switching to + a 'sync' policy. This "fall behind" threshhold can + be specified in three ways: ios, size, or timeout. + 'ios' is the number of pending I/Os allowed (e.g. + "ios 10000"). 'size' is the amount of pending data + allowed (e.g. "size 200m"). Size labels include: + s (sectors), k, m, g, t, p, and e. 'timeout' is + the amount of time allowed for writes to be + outstanding. Time labels include: s, m, h, and d. + + +"replicator-dev" target parameters: +----------------------------------- +start> <length> replicator-dev + <replicator_device> <dev_nr> \ + [<slink_nr> <#dev_params> <dev_params> + <dlog_type> <#dlog_params> <dlog_params>]{1..N} + +<replicator_device> = device previously constructed via "replication" target +<dev_nr> = An integer that is used to 'tag' write requests as + belonging to a particular set of devices - specifically, + the devices that follow this argument (i.e. the site + link devices). +<slink_nr> = This number identifies the site/location where the next + device to be specified comes from. It is exactly the + same number used to identify the site/location (and its + policies) in the "replicator" target. Interestingly, + while one might normally expect a "dev_type" argument + here, it can be deduced from the site link number and + the 'slink_type' given in the "replication" target. +<#dev_params> = '1' (The number of allowed parameters actually depends + on the 'slink_type' given in the "replication" target. + Since our only option there is "blockdev", the only + allowable number here is currently '1'.) +<dev_params> = 'dev_path' (Again, since "blockdev" is the only + 'slink_type' available, the only allowable argument here + is the path to the device.) +<dlog_type> = Not to be confused with the "replicator log", this is + the type of dirty log associated with this particular + device. Dirty logs are used for synchronization, during + initialization or fall behind conditions, to bring devices + into a coherent state with its peers - analogous to + rebuilding a RAID1 (mirror) device. Available dirty + log types include: 'nolog', 'core', and 'disk' +<#dlog_params> = The number of arguments required for a particular log + type - 'nolog' = 0, 'core' = 1/2, 'disk' = 2/3. +<dlog_params> = 'nolog' => ~no arguments~ + 'core' => <region_size> [sync | nosync] + 'disk' => <dlog_dev_path> <region_size> [sync | nosync] + <region_size> = This sets the granularity at which the dirty log + tracks what areas of the device is in-sync. + [sync | nosync] = Optionally specify whether the sync should be forced + or avoided initially.
drivers/md/Kconfig +8 -0
@@ -314,6 +314,14 @@ config DM_DELAY If unsure, say N. +config DM_REPLICATOR + tristate "Replication target (EXPERIMENTAL)" + depends on BLK_DEV_DM && EXPERIMENTAL + ---help--- + A target that supports replication of local devices to remote sites. + + If unsure, say N. + config DM_UEVENT bool "DM uevents (EXPERIMENTAL)" depends on BLK_DEV_DM && EXPERIMENTAL
drivers/md/Makefile +1 -0
@@ -44,6 +44,7 @@ obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o obj-$(CONFIG_DM_ZERO) += dm-zero.o +obj-$(CONFIG_DM_REPLICATOR) += dm-log.o dm-registry.o quiet_cmd_unroll = UNROLL $@ cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \
drivers/md/dm-registry.c new file +224 -0
224 lines not on this page · raw message
drivers/md/dm-registry.h new file +38 -0
@@ -0,0 +1,38 @@ +/* +* Copyright (C) 2008 Red Hat, Inc. All rights reserved. +* +* Module Author: Heinz Mauelshagen ([email protected]) +* +* Generic registry for arbitrary structures. +* (needs dm_registry_type structure upfront each registered structure). +* +* This file is released under the GPL. +*/ + +#include "dm.h" + +#ifndef DM_REGISTRY_H +#define DM_REGISTRY_H + +enum dm_registry_class { +DM_REPLOG =0 , +DM_SLINK , +DM_LOG , +DM_REGION_HASH , +DM_REGISTRY_CLASS_END , +}; + +struct dm_registry_type { +struct list_head list;/* Linked list of types in this class. */ +const char *name; +struct module *module; +unsigned int use_count; +}; + +void *dm_get_type (const char *type_name,enum dm_registry_class class); +void dm_put_type (void *type,enum dm_registry_class class); +int dm_register_type (void *type,enum dm_registry_class class); +int dm_unregister_type (void *type,enum dm_registry_class class); +const char **dm_types_list (enum dm_registry_class class); + +#endif
Signature · 1 line
1.6.2.5
PATCH v3 2/4 dm-replicator: replication log and site link handler interfaces and main replicator module
From: Heinz Mauelshagen <[email protected]>
These are the interface definitions for the replication log and the site link handler plus the main replicator module plugging into the dm core interface to construct/destruct/... replication control ("replicator" target) and data devices ("replicator-dev" target).
The "replicator" control target handles the replication log and the site link properties (eg. log size or asynchronous replication), while the "replicator-dev" target handles all local and remote device properties (eg. their paths and dirty log parameters).
--- drivers/md/Makefile | 4 +- drivers/md/dm-repl-log.h | 120 +++ drivers/md/dm-repl-slink.h | 313 +++++++ drivers/md/dm-repl.c | 1993 ++++++++++++++++++++++++++++++++++++++++++++ drivers/md/dm-repl.h | 127 +++ drivers/md/dm.c | 1 + 6 files changed, 2557 insertions(+), 1 deletions(-) create mode 100644 drivers/md/dm-repl-log.h create mode 100644 drivers/md/dm-repl-slink.h create mode 100644 drivers/md/dm-repl.c create mode 100644 drivers/md/dm-repl.h
drivers/md/Makefile +3 -1
@@ -8,6 +8,7 @@ dm-multipath-y += dm-path-selector.o dm-mpath.o dm-snapshot-y += dm-snap.o dm-exception-store.o dm-snap-transient.o \ dm-snap-persistent.o dm-mirror-y += dm-raid1.o +dm-replicator-y += dm-repl.o dm-log-userspace-y \ += dm-log-userspace-base.o dm-log-userspace-transfer.o md-mod-y += md.o bitmap.o
@@ -44,7 +45,8 @@ obj-$(CONFIG_DM_SNAPSHOT) += dm-snapshot.o obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o obj-$(CONFIG_DM_ZERO) += dm-zero.o -obj-$(CONFIG_DM_REPLICATOR) += dm-log.o dm-registry.o +obj-$(CONFIG_DM_REPLICATOR) += dm-replicator.o \ + dm-log.o dm-registry.o quiet_cmd_unroll = UNROLL $@ cmd_unroll = $(AWK) -f$(srctree)/$(src)/unroll.awk -vN=$(UNROLL) \
drivers/md/dm-repl-log.h new file +120 -0
120 lines not on this page · raw message
drivers/md/dm-repl-slink.h new file +313 -0
313 lines not on this page · raw message
drivers/md/dm-repl.c new file +1993 -0
1,993 lines not on this page · raw message
drivers/md/dm-repl.h new file +127 -0
127 lines not on this page · raw message
drivers/md/dm.c +1 -0
@@ -2573,6 +2573,7 @@ struct gendisk *dm_disk(struct mapped_device *md) {return md->disk; } +EXPORT_SYMBOL_GPL (dm_disk);struct kobject *dm_kobject (struct mapped_device *md) {
Signature · 1 line
1.6.2.5
PATCH v3 3/4 dm-replicator: ringbuffer replication log handler
From: Heinz Mauelshagen <[email protected]>
This is the "ringbuffer" type replication log handler module plugging into the main replicator module.
It abstracts the handling of the log from the main module allowing it to be log type agnostic. It uses the abstracted device access logic of the site link module, hence allowing it to be transport type agnostic.
--- drivers/md/Makefile | 1 + drivers/md/dm-repl-log-ringbuffer.c | 5005 +++++++++++++++++++++++++++++++++++ 2 files changed, 5006 insertions(+), 0 deletions(-) create mode 100644 drivers/md/dm-repl-log-ringbuffer.c
drivers/md/Makefile +1 -0
@@ -46,6 +46,7 @@ obj-$(CONFIG_DM_MIRROR) += dm-mirror.o dm-log.o dm-region-hash.o obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o obj-$(CONFIG_DM_ZERO) += dm-zero.o obj-$(CONFIG_DM_REPLICATOR) += dm-replicator.o \ + dm-repl-log-ringbuffer.o \ dm-log.o dm-registry.o quiet_cmd_unroll = UNROLL $@
drivers/md/dm-repl-log-ringbuffer.c new file +5005 -0
2,993 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.2.5
Part of the diff is not shown here. View the raw message.
PATCH v3 4/4 dm-replicator: blockdev site link handler
From: Heinz Mauelshagen <[email protected]>
This is the "blockdev" type site link handler module plugging into the main replication module.
It abstracts the access logic to the transport used allowing the replication log to be agnostic about it (block device transport in this handlers case).
--- drivers/md/Makefile | 1 + drivers/md/dm-repl-slink-blockdev.c | 3049 +++++++++++++++++++++++++++++++++++ 2 files changed, 3050 insertions(+), 0 deletions(-) create mode 100644 drivers/md/dm-repl-slink-blockdev.c
drivers/md/Makefile +1 -0
@@ -47,6 +47,7 @@ obj-$(CONFIG_DM_LOG_USERSPACE) += dm-log-userspace.o obj-$(CONFIG_DM_ZERO) += dm-zero.o obj-$(CONFIG_DM_REPLICATOR) += dm-replicator.o \ dm-repl-log-ringbuffer.o \ + dm-repl-slink-blockdev.o \ dm-log.o dm-registry.o quiet_cmd_unroll = UNROLL $@
drivers/md/dm-repl-slink-blockdev.c new file +3049 -0
2,993 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.6.2.5
Part of the diff is not shown here. View the raw message.
Quoted 3 lines · On 2009-12-01T17:05:03, [email protected] wrote:
* 3rd version of patch series (dated Oct 23 2009) *
Reworked to allow for Build after each single patch has been applied.
Hi Heinz, have you considered a git tree? Might make it easier to review changes.
Quoted 5 lines
This is a series of 4 patches introducing the device-mapper remote data replication target "dm-replicator" to kernel 2.6.
Userspace support for remote data replication will be in a future LVM2 version.
Is there any code available for testing this yet?
Quoted 6 lines
The target supports disaster recovery by replicating groups of active mapped devices (ie. receiving io from applications) to one or more remote sites to paired groups of equally sized passive block devices (ie. no application access). Synchronous, asynchronous replication (with fallbehind settings) and temporary downtime of transports are supported.
How is resync handled - peer-to-peer or relayed via the master?
What about device failures / IO errors at the sites?
Quoted 4 lines
It utilizes a replication log to ensure write ordering fidelity for the whole group of replicated devices, hence allowing for consistent recovery after failover of arbitrary applications
(eg. DBMS utilizing N > 1 devices).
Write ordering is not guaranteed across different file systems / block devices today; so no DBMS actually requires this. What is the benefit?
What kind of reordering on a per-device basis is allowed via this infrastructure at each site? (drbd has logic to detect implicit write dependencies to allow peers to optimize local IO.)
Quoted 6 lines
A "blockdev" site link module implements block devices access to all remote devices, ie. all devices exposed via the Linux block device layer (eg. iSCSI, FC).
Again, other eg. network type transport site link handlers may follow as plugins.
How is all of this actually configured and used?
Quoted 1 line
Please review for upstream inclusion.
Should this not be Cc'ed to LKML if you aim for upstream inclusion? I actually would expect that most of the criticism of drbd's inclusion would also apply here, no? (With the added point that dm-replicator does not actually have any users yet.)
Regards,
Lars
Signature · 3 lines
Architect Storage/HA, OPS Engineering, Novell, Inc. SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nürnberg) "Experience is the name everyone gives to their mistakes." -- Oscar Wilde
Quoted 8 lines · Lars Marowsky-Bree
Quoted 3 lines · On 2009-12-01T17:05:03, [email protected] wrote:
* 3rd version of patch series (dated Oct 23 2009) *
Reworked to allow for Build after each single patch has been applied.
Hi Heinz, have you considered a git tree? Might make it easier to review changes.
Hi Lars,
got an internal one but no public git so far.
Quoted 8 lines
Quoted 6 lines
This is a series of 4 patches introducing the device-mapper remote data replication target "dm-replicator" to kernel 2.6.
Userspace support for remote data replication will be in a future LVM2 version.
Is there any code available for testing this yet?
Zdenek's patches for lvm2 on lvm-devel.
If you want to at the dm level, I can send you test scripts to create test LVs and utiluze them as devices for the replicator.
Quoted 9 lines
Quoted 7 lines
The target supports disaster recovery by replicating groups of active mapped devices (ie. receiving io from applications) to one or more remote sites to paired groups of equally sized passive block devices (ie. no application access). Synchronous, asynchronous replication (with fallbehind settings) and temporary downtime of transports are supported.
How is resync handled - peer-to-peer or relayed via the master?
All io activity is driven by the master in this initial version. Ie. resync happens with the primary site as the source for all the remote ones.
Quoted 3 lines
What about device failures / IO errors at the sites?
The replication log retries until the administrator decides to drop the broken devices. Requirement is to have at least RAID1 in a storage appliance remotely. It would work w/o such resilience though.
Quoted 8 lines
Quoted 5 lines
It utilizes a replication log to ensure write ordering fidelity for the whole group of replicated devices, hence allowing for consistent recovery after failover of arbitrary applications
(eg. DBMS utilizing N > 1 devices).Write ordering is not guaranteed across different file systems / block devices today; so no DBMS actually requires this. What is the benefit?
W/o replication at the block level, no application needs it because a local flush will do at application consistency points. With replication, we only have data sets corresponding to such consistency points in the log as sequentially ordered entries. In order to allow for application recovery in remote sites, we need to ensure write-ordering so that any data commits will follow the data. Otherwise we'd end up with finding a commit record remotely but not the full data set commited by it, hence causing data corruption.
Quoted 4 lines
What kind of reordering on a per-device basis is allowed via this infrastructure at each site? (drbd has logic to detect implicit write dependencies to allow peers to optimize local IO.)
No reordering allowed so far. Any such write dependency optimization is subject to another replication log handler implentation which could potentially take advantage of given DRBD logic. Surely we've got optimization potential...
Quoted 9 lines
Quoted 7 lines
A "blockdev" site link module implements block devices access to all remote devices, ie. all devices exposed via the Linux block device layer (eg. iSCSI, FC).
Again, other eg. network type transport site link handlers may follow as plugins.
How is all of this actually configured and used?
Via the above mentioned LVM2 patches.
Ie. lvm command extensions.
Quoted 7 lines
Quoted 2 lines
Please review for upstream inclusion.
Should this not be Cc'ed to LKML if you aim for upstream inclusion? I actually would expect that most of the criticism of drbd's inclusion would also apply here, no? (With the added point that dm-replicator does not actually have any users yet.)
We have a series of patches to sort out basic issues on dm-devel. The usual process is, that agk as the subsystem maintainer integrates and upstreams it.
Regards,
Heinz
Quoted 5 lines
Regards,
Lars
Quoted 4 lines · Heinz Mauelshagen
Quoted 3 lines · Lars Marowsky-Bree
Quoted 1 line · On 2009-12-01T17:05:03, [email protected] wrote:
Please review for upstream inclusion.
Quoted 8 lines
Quoted 4 lines
Should this not be Cc'ed to LKML if you aim for upstream inclusion? I actually would expect that most of the criticism of drbd's inclusion would also apply here, no? (With the added point that dm-replicator does not actually have any users yet.)
We have a series of patches to sort out basic issues on dm-devel. The usual process is, that agk as the subsystem maintainer integrates and upstreams it.
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
James
Quoted 5 lines · James Bottomley
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
And unliley the previous two this one actually offers the benefit of beeing integrated with our major block device management framework.
Interesting that the question comes up now after I was shot down for it in the drbd discussion.
Quoted 9 lines · Christoph Hellwig
Quoted 5 lines · James Bottomley
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
And unliley the previous two this one actually offers the benefit of beeing integrated with our major block device management framework.
Yes.
Plus it removes the 3 site limitation (2048 technical limit) and offers consistent multi-device replication.
Quoted 8 lines
Interesting that the question comes up now after I was shot down for it in the drbd discussion.
--
dm-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/dm-devel
Quoted 8 lines · Heinz Mauelshagen
Quoted 7 lines · Christoph Hellwig
Quoted 5 lines · James Bottomley
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
Quoted 4 lines
Quoted 2 lines
And unliley the previous two this one actually offers the benefit of beeing integrated with our major block device management framework.
Yes.
Well, no, we have one in and one out.
Quoted 2 lines
Plus it removes the 3 site limitation (2048 technical limit) and offers consistent multi-device replication.
md/nbd has no such limit ... drbd might.
James
Quoted 9 lines · Christoph Hellwig
Quoted 5 lines · James Bottomley
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
And unliley the previous two this one actually offers the benefit of beeing integrated with our major block device management framework.
md/nbd *is* integrated with a major block management framework. The fact that it's md not dm reflects the fact that it leverages the md raid1 framework to perform the replication and merely uses nbd as a remote block transmission pipe. I'd submit this is the correct way to do things.
The problem now is that the md raid framework isn't integrated into dm, but I think someone else is looking at that ...
Quoted 2 lines
Interesting that the question comes up now after I was shot down for it in the drbd discussion.
So the value add of drbd over md/nbd is symmetric active. I think that could be pulled into the md raid infrastructure as well, but someone has to figure out how.
James
Quoted 8 lines · James Bottomley
Quoted 7 lines · Christoph Hellwig
Quoted 5 lines · James Bottomley
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
Quoted 8 lines
Quoted 2 lines
And unliley the previous two this one actually offers the benefit of beeing integrated with our major block device management framework.
md/nbd *is* integrated with a major block management framework. The fact that it's md not dm reflects the fact that it leverages the md raid1 framework to perform the replication and merely uses nbd as a remote block transmission pipe. I'd submit this is the correct way to do things.
Yes and no...
As someone who producticized md+nbd for a previous proprietary employer (standing on the shoulders of the work that was done by steeleye) I can say that md+nbd can provide the core plumbing but you need quite a bit of higher-level tools integration to make it _really_ approachable for the enterprise. command line and UI interface and backend DB to store all relations, etc... And all sorts of nasty corner cases (e.g. split brain and double failure scenarios) are left as an exercise to the md+nbd user.
Quoted 9 lines
The problem now is that the md raid framework isn't integrated into dm, but I think someone else is looking at that ...
Quoted 2 lines
Interesting that the question comes up now after I was shot down for it in the drbd discussion.
So the value add of drbd over md/nbd is symmetric active. I think that could be pulled into the md raid infrastructure as well, but someone has to figure out how.
md+nbd really isn't the way forward here IMHO.. if anything I think we need to focus on melding drbd and dm-replicator into the DM framework.
A single system management tool-chain and interface is increasingly important in the enterprise.
Mike
Quoted 22 lines · Mike Snitzer
Quoted 8 lines · James Bottomley
Quoted 7 lines · Christoph Hellwig
Quoted 5 lines · James Bottomley
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
Quoted 8 lines
Quoted 2 lines
And unliley the previous two this one actually offers the benefit of beeing integrated with our major block device management framework.
md/nbd *is* integrated with a major block management framework. The fact that it's md not dm reflects the fact that it leverages the md raid1 framework to perform the replication and merely uses nbd as a remote block transmission pipe. I'd submit this is the correct way to do things.
Yes and no...
Quoted 8 lines
As someone who producticized md+nbd for a previous proprietary employer (standing on the shoulders of the work that was done by steeleye) I can say that md+nbd can provide the core plumbing but you need quite a bit of higher-level tools integration to make it _really_ approachable for the enterprise. command line and UI interface and backend DB to store all relations, etc... And all sorts of nasty corner cases (e.g. split brain and double failure scenarios) are left as an exercise to the md+nbd user.
I didn't advocate using it as a framework ... I said it was done the right way (leveraging the existing RAID engines). What's actually missing from it is the framework.
Quoted 6 lines
Quoted 6 lines
The problem now is that the md raid framework isn't integrated into dm, but I think someone else is looking at that ...
Quoted 2 lines
Interesting that the question comes up now after I was shot down for it in the drbd discussion.
Quoted 6 lines
Quoted 3 lines
So the value add of drbd over md/nbd is symmetric active. I think that could be pulled into the md raid infrastructure as well, but someone has to figure out how.
md+nbd really isn't the way forward here IMHO.. if anything I think we need to focus on melding drbd and dm-replicator into the DM framework.
Actually, I think we need to focus on the goal, which should be a single replication engine. The problem with dm-replicator is that it brings yet another network RAID-1 engine to the table. The benefit is that it does actually come with a framework.
The problem with network replicators is that they're hard to get right and very time consuming to debug and test. Since we've already invested the correctness and testing effort twice over already (and it took several years in each case) doing it yet again looks to be a big waste to me.
Quoted 2 lines
A single system management tool-chain and interface is increasingly important in the enterprise.
So isn't the way forwards then to prototype using this framework to absorb both our existing in-kernel replicators? A side bonus is that the logging framework should be extensible to md to verify we're getting it right. If it's done correctly, it could even facilitate the eventual raid unification goal of pulling together md and dm ... which would be a huge benefit to the enterprise.
James
Quoted 63 lines · James Bottomley
Quoted 22 lines · Mike Snitzer
Quoted 8 lines · James Bottomley
Quoted 7 lines · Christoph Hellwig
Quoted 5 lines · James Bottomley
Could I just echo Lars' statement. With the upstream inclusion of drbd, dm-replicator becomes a *third* replication system asking to be in kernel. It is definitely a kernel policy question of whether we want three separate replicators, and so should be Cc'd to lkml so that people interested in that can weigh in.
Quoted 8 lines
Quoted 2 lines
And unliley the previous two this one actually offers the benefit of beeing integrated with our major block device management framework.
md/nbd *is* integrated with a major block management framework. The fact that it's md not dm reflects the fact that it leverages the md raid1 framework to perform the replication and merely uses nbd as a remote block transmission pipe. I'd submit this is the correct way to do things.
Yes and no...
Quoted 8 lines
As someone who producticized md+nbd for a previous proprietary employer (standing on the shoulders of the work that was done by steeleye) I can say that md+nbd can provide the core plumbing but you need quite a bit of higher-level tools integration to make it _really_ approachable for the enterprise. command line and UI interface and backend DB to store all relations, etc... And all sorts of nasty corner cases (e.g. split brain and double failure scenarios) are left as an exercise to the md+nbd user.
I didn't advocate using it as a framework ... I said it was done the right way (leveraging the existing RAID engines). What's actually missing from it is the framework.
Quoted 6 lines
Quoted 6 lines
The problem now is that the md raid framework isn't integrated into dm, but I think someone else is looking at that ...
Quoted 2 lines
Interesting that the question comes up now after I was shot down for it in the drbd discussion.
Quoted 6 lines
Quoted 3 lines
So the value add of drbd over md/nbd is symmetric active. I think that could be pulled into the md raid infrastructure as well, but someone has to figure out how.
md+nbd really isn't the way forward here IMHO.. if anything I think we need to focus on melding drbd and dm-replicator into the DM framework.
Actually, I think we need to focus on the goal, which should be a single replication engine. The problem with dm-replicator is that it brings yet another network RAID-1 engine to the table. The benefit is that it does actually come with a framework.
The problem with network replicators is that they're hard to get right and very time consuming to debug and test. Since we've already invested the correctness and testing effort twice over already (and it took several years in each case) doing it yet again looks to be a big waste to me.
Quoted 2 lines
A single system management tool-chain and interface is increasingly important in the enterprise.
Quoted 6 lines
So isn't the way forwards then to prototype using this framework to absorb both our existing in-kernel replicators? A side bonus is that the logging framework should be extensible to md to verify we're getting it right. If it's done correctly, it could even facilitate the eventual raid unification goal of pulling together md and dm ... which would be a huge benefit to the enterprise.
Sure, I'd say we're in [violent] agreement on the way forward.
But the buy-off from others (Heinz, drbd devs, Neil B, etc) and the strategy for when/how to phase this integration work is better for others to say.
Mike