Distributed storage. Mirroring to any number of devices.
Subsystems (4)
Hi.
I'm pleased to announce second release of the distributed storage subsystem, which allows to form a storage on top of remote and local nodes, which in turn can be exported to another storage as a node to form tree-like storages.
Main feature of the new release is mirroring to any number of devices with automatic resync and ability to reconnect to remote node after they are up and ready. Two algorithms (linear mapping to increase total size and mirroring to increase redundancy) are now supported. Mirroring meta information is not stored on the devices itself (which can be considered as a feature for the next releases if needed), which allows to mount remote mirrors as standalone backups or snapshots.
Extended set of tests were performed on x86 and x86_64 arches to find possible bottlenecks and number of bugs were fixed.
One can find more details on project tracking link, which also shows all development updates happend to the project:
http://tservice.net.ru/~s0mbre/blog/devel/dst/index.html
and the project homepage, where one can find a bit more detailed feature set description:
http://tservice.net.ru/~s0mbre/old/?section=projects&item=dst
Agenda for upcoming release include mainly documentation update (code comments is not enough) and moving resync bitmaps to blocksized chunks instead of dynamically sized ones to eliminate division problems on some arches/compilers.
Thanks.
drivers/block/Kconfig +2 -0
@@ -451,6 +451,8 @@ config ATA_OVER_ETH This driver provides Support for ATA over Ethernet block devices like the Coraid EtherDrive (R) Storage Blade. +source "drivers/block/dst/Kconfig" + source "drivers/s390/block/Kconfig" endmenu
drivers/block/Makefile +1 -0
@@ -29,3 +29,4 @@ obj-$(CONFIG_VIODASD) += viodasd.o obj-$(CONFIG_BLK_DEV_SX8) += sx8.o obj-$(CONFIG_BLK_DEV_UB) += ub.o +obj-$(CONFIG_DST) += dst/
drivers/block/dst/Kconfig new file +19 -0
@@ -0,0 +1,19 @@ +config DST + tristate "Distributed storage" + depends on NET + ---help--- + This driver allows to create a distributed storage. + +config DST_ALG_LINEAR + tristate "Linear distribution algorithm" + depends on DST + ---help--- + This module allows to create linear mapping of the nodes + in the distributed storage. + +config DST_ALG_MIRROR + tristate "Mirror distribution algorithm" + depends on DST + ---help--- + This module allows to create a mirror of the noes in the + distributed storage.
drivers/block/dst/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +obj-$(CONFIG_DST) += dst.o + +dst-y := dcore.o kst.o + +obj-$(CONFIG_DST_ALG_LINEAR) += alg_linear.o +obj-$(CONFIG_DST_ALG_MIRROR) += alg_mirror.o
drivers/block/dst/alg_linear.c new file +93 -0
93 lines not on this page · raw message
drivers/block/dst/alg_mirror.c new file +746 -0
746 lines not on this page · raw message
drivers/block/dst/dcore.c new file +1524 -0
1,524 lines not on this page · raw message
drivers/block/dst/kst.c new file +1513 -0
600 lines not on this page · raw message
include/linux/dst.h new file +315 -0
315 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
Evgeniy Polyakov
Part of the diff is not shown here. View the raw message.
Quoted 5 lines · Evgeniy Polyakov
I'm pleased to announce second release of the distributed storage subsystem, which allows to form a storage on top of remote and local nodes, which in turn can be exported to another storage as a node to form tree-like storages.
I'll be quick: what is it good for, are there any users, and what could it have to do with DRBD and all the other distribution storage talk that has come up lately (namely NBD w/Raid1)?
Jan
Quoted 8 lines · Jan Engelhardt
Quoted 4 lines
I'm pleased to announce second release of the distributed storage subsystem, which allows to form a storage on top of remote and local nodes, which in turn can be exported to another storage as a node to form tree-like storages.
I'll be quick: what is it good for, are there any users, and what could it have to do with DRBD and all the other distribution storage talk that has come up lately (namely NBD w/Raid1)?
It has number of advantages, outlined in the first release and on the project homepage, namely:
* non-blocking processing without busy loops (compared to iSCSI and NBD)
* small, plugable architecture
* failover recovery (reconnect to remote target)
* autoconfiguration
* no additional allocatins (not including network part) - at least two in device mapper for fast path
* very simple - try to compare with iSCSI
* works with different network protocols
* storage can be formed on top of remote nodes and be exported simultaneously (iSCSI is peer-to-peer only, NBD requires device mapper, is synchronous and wants special userspace thread)
Compared to DRBD, which is a mirroring of the local requests to remote node, and raid on top of NBD, DST supports multiple remote nodes, it allows to remove any of them and then turn it back into the storage without breaking the dataflow, dst core will reconnect automatically to the failed remote nodes, it allows to work with detouched devices just like with usual filesystems (in case it was not formed as a part of linear storage, since in that case meta information is spreaded between nodes). It does not require special processes on behalf of network connection, everything will be performed automatically on behalf of DST core workers, it allows to export new device, created on top of mirror or linear combination of the others, which in turn can be formed on top of another and so on...
This was designed to allow to create a distributed storage with completely transparent failover recovery, with ability to detouch remote nodes from mirror array to became standalone realtime backups (or snapshots) and turn it back into the storage without stopping main device node.
Signature · 1 line
Evgeniy Polyakov