]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Add the ability to parse and use metadata devices to dm-raid. Although
authorJonathan Brassow <jbrassow@redhat.com>
Tue, 2 Aug 2011 00:25:27 +0000 (10:25 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 2 Aug 2011 00:25:27 +0000 (10:25 +1000)
commitc73ca8774803b666d2025c864d4c5eb71804ca0f
tree10cd69ef4d753c43561d83c3761ea82b7b11fc8a
parent033d2be14bf5e65f0096c8744f1e22dbf786bf44
Add the ability to parse and use metadata devices to dm-raid.  Although
not strictly required, without the metadata devices, many features of
RAID are unavailable.  They are used to store a superblock and bitmap.

The role, or position in the array, of each device must be recorded in
its superblock.  This is to help with fault handling, array reshaping,
and sanity checks.  RAID 4/5/6 devices must be loaded in a specific order:
in this way, the 'array_position' field helps validate the correctness
of the mapping when it is loaded.  It can be used during reshaping to
identify which devices are added/removed.  Fault handling is impossible
without this field.  For example, when a device fails it is recorded in
the superblock.  If this is a RAID1 device and the offending device is
removed from the array, there must be a way during subsequent array
assembly to determine that the failed device was the one removed.  This
is done by correlating the 'array_position' field and the bit-field
variable 'failed_devices'.

Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Documentation/device-mapper/dm-raid.txt
drivers/md/Kconfig
drivers/md/dm-raid.c