summaryrefslogtreecommitdiff
path: root/debian/FAQ
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-08-29 06:25:55 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-08-29 06:25:55 +0000
commitb20e820c2540c6b44e183d4586b75013af6e4c28 (patch)
tree323db56b41b5d7e61c73c57895bf3e31e77b4304 /debian/FAQ
parentf0f5c5d2447dea36a516be445d650d3940942129 (diff)
added faq entry for zeroing superblocks
Diffstat (limited to 'debian/FAQ')
-rw-r--r--debian/FAQ23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/FAQ b/debian/FAQ
index 7fbf3abc..6a4ff117 100644
--- a/debian/FAQ
+++ b/debian/FAQ
@@ -3,6 +3,29 @@ Frequently asked questions -- Debian mdadm
Also see /usr/share/doc/mdadm/README.recipes.gz
+0. How do I overwrite ("zero") the superblock?
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ mdadm --zero-superblock /dev/mdX
+
+ Note that this is a destructive operation. It does not actually delete any
+ data, but the device will have lost its "authority". You cannot assemble the
+ array with it anymore, and if you add the device to another array, the
+ synchronisation process *will* *overwrite* all data on the device.
+
+ Nevertheless, sometimes it is necessary to zero the superblock:
+
+ - If you are reusing a disk that has been part of an array with an different
+ superblock version and/or location. In this case you zero the superblock
+ before you assemble the array, or add the device to an array.
+
+ - If you are trying to prevent a device from being recognised as part of an
+ array. Say for instance you are trying to change an array spanning sd[ab]1
+ to sd[bc]1 (maybe because sda is failing or too slow), then automatic
+ (scan) assembly will still recognise sda1 as a valid device. You can limit
+ the devices to scan with the DEVICE keyword in the configuration file, but
+ this may not be what you want. Instead, zeroing the superblock will
+ (permanently) prevent a device from being considered as part of an array.
+
1. How do I change the preferred minor of a MD array?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
See item 12 in /usr/share/doc/mdadm/README.recipes.gz and read the mdadm