]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
mdadm.man add encouragement to shrink filesystem before shrinking array.
authorNeilBrown <neilb@suse.de>
Tue, 15 Feb 2011 01:40:21 +0000 (12:40 +1100)
committerNeilBrown <neilb@suse.de>
Thu, 10 Mar 2011 05:58:48 +0000 (16:58 +1100)
Before resizing an array with --size or --array-size, then filesystem
should be resized.  mdadm cannot do this so the user should.

Reported-by: Gavin Flower <gavinflower@yahoo.com>
Signed-off-by: NeilBrown <neilb@suse.de>
mdadm.8.in

index 8ffeb26dc1ec20896b54b90d56b950d0ca82c777..a5d37b7e2d0420d9df332d932c3d1fef68afa2c2 100644 (file)
@@ -424,6 +424,18 @@ The size can be given as
 .B max
 which means to choose the largest size that fits on all current drives.
 
+Before reducing the size of the array (with
+.BR "\-\-grow \-\-size=" )
+you should make sure that space isn't needed.  If the device holds a
+filesystem, you would need to resize the filesystem to use less space.
+
+After reducing the array size you should check that the data stored in
+the device is still available.  If the device holds a filesystem, then
+an 'fsck' of the filesystem is a minimum requirement.  If there are
+problems the array can be made bigger again with no loss with another
+.B "\-\-grow \-\-size="
+command.
+
 This value can not be used with
 .B CONTAINER
 metadata such as DDF and IMSM.
@@ -675,6 +687,17 @@ A value of
 restores the apparent size of the array to be whatever the real
 amount of available space is.
 
+Before reducing the size of the array you should make sure that space
+isn't needed.  If the device holds a filesystem, you would need to
+resize the filesystem to use less space.
+
+After reducing the array size you should check that the data stored in
+the device is still available.  If the device holds a filesystem, then
+an 'fsck' of the filesystem is a minimum requirement.  If there are
+problems the array can be made bigger again with no loss with another
+.B "\-\-grow \-\-array\-size="
+command.
+
 .TP
 .BR \-N ", " \-\-name=
 Set a