Decreasing The Size Of The Raid Array - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

cat /proc/mdstat
If your RAID array is still synchronizing according to the output of this command, you must
wait until synchronization is complete before continuing.
3 Remove one of the component partitions from the RAID array. For example, to remove
, enter
sda1
mdadm /dev/md0 --fail /dev/sda1 --remove /dev/sda1
In order to succeed, both the fail and remove actions must be done.
4 Increase the size of the partition that you removed in
Use a disk partitioner such as
partition.
Replace the disk on which the partition resides with a different device.
This option is possible only if no other file systems on the original disk are accessed by the
system. When the replacement device is added back into the RAID, it takes much longer
to synchronize the data.
5 Re-add the partition to the RAID array. For example, to add
mdadm -a /dev/md0 /dev/sda1
Wait until the RAID is synchronized and consistent before continuing with the next partition.
6 Repeat
sure to modify the commands for the correct component partition.
7 If you get a message that tells you that the kernel could not re-read the partition table for the
RAID, you must reboot the computer after resizing all of its component partitions.
8 Continue with

11.3.3 Decreasing the Size of the RAID Array

After you have resized each of the component partitions in the RAID, the RAID array configuration
continues to use the original array size until you force it to be aware of the newly available space.
Use the --grow option to force it to read the change in available disk size. You can specify a size for
the RAID or use the maximum available space.
The procedure in this section uses the device name
modify commands to use the name of your own device.
1 Open a terminal console, then log in as the
2 Check the size of the array and the device size known to the array by entering
mdadm -D /dev/md0 | grep -e "Array Size" -e "Device Size"
3 Do one of the following:
Decrease the size of the array to the maximum available size by entering
mdadm --grow /dev/md0 -z max
Decrease the size of the array to a specified value by entering
mdadm --grow /dev/md0 -z size
Replace size with an integer value in kilobytes for the desired size. (A kilobyte is 1024
bytes.)
4 Recheck the size of your array and the device size known to the array by entering
106 SLES 11: Storage Administration Guide
Step 2
through
Step 5
for each of the remaining component devices in the array. Make
Section 11.3.3, "Decreasing the Size of the RAID Array," on page
Step 3
,
, or
fdisk
cfdisk
parted
for the RAID device. Make sure to
/dev/md0
user or equivalent.
root
by doing one of the following:
to increase the size of the
, enter
/dev/sda1
106.
/dev/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents