summaryrefslogtreecommitdiffstats
path: root/mdadm.8.in
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2012-10-04 08:34:21 +0200
committerNeilBrown <neilb@suse.de>2012-10-04 08:34:21 +0200
commit40c9a66a5c1a89d621daa2184888e66952b06a71 (patch)
treebf7dae47d213cc7629f112880a9c18cb509d8415 /mdadm.8.in
parentAdd data_offset arg to ->init_super and use it in super1.c (diff)
downloadmdadm-40c9a66a5c1a89d621daa2184888e66952b06a71.tar.xz
mdadm-40c9a66a5c1a89d621daa2184888e66952b06a71.zip
Add --data-offset flag for Create and Grow
This can be used to over-ride the automatic assignment of data offset. For --create, it is useful to re-create old arrays where different defaults applied. For --grow it may be able to force a reshape in the reverse direction. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'mdadm.8.in')
-rw-r--r--mdadm.8.in28
1 files changed, 28 insertions, 0 deletions
diff --git a/mdadm.8.in b/mdadm.8.in
index 845c00cd..255b6505 100644
--- a/mdadm.8.in
+++ b/mdadm.8.in
@@ -768,6 +768,34 @@ The file must be stored on a separate device, not on the RAID array
being reshaped.
.TP
+.B \-\-data\-offset=
+Arrays with 1.x metadata can leave a gap between the start of the
+device and the start of array data. This gap can be used for various
+metadata. The start of data is known as the
+.IR data\-offset .
+Normally an appropriate data offset is computed automatically.
+However it can be useful to set it explicitly such as when re-creating
+an array which was originally created using a different version of
+.I mdadm
+which computed a different offset.
+
+Setting the offset explicitly over-rides the default. The value given
+is in Kilobytes unless an 'M' or 'G' suffix is given.
+
+Since Linux 3.4,
+.B \-\-data\-offset
+can also be used with
+.B --grow
+for some RAID levels (initially on RAID10). This allows the
+data-offset to be changed as part of the reshape process. When the
+data offset is changed, no backup file is required as the difference
+in offsets is used to provide the same functionality.
+
+When the new offset is earlier than the old offset, the number of
+devices in the array cannot shrink. When it is after the old offset,
+the number of devices in the array cannot increase.
+
+.TP
.BR \-\-continue
This option is complementary to the
.B \-\-freeze-reshape