Increasing The Size Of The Raid Array - Novell LINUX ENTERPRISE SERVER 10 SP2 - STORAGE ADMINISTRATION GUIDE 05-15-2009 Administration Manual

Table of Contents

Advertisement

Scenario for Increasing the Size of Component Partitions
Table 8-3
RAID Device
/dev/md0
To increase the size of the component partitions for the RAID:
1 Open a terminal console, then log in as the
2 Make sure that the RAID array is consistent and synchronized by entering
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
Increase the size of the partition, using a disk partitioner such as
or
. This is the usual choice.
parted(8)
Replace the disk on which the partition resides with a higher-capacity 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 because all of the data that was on the original device must be
rebuilt.
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
Step 2
through
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 all partitions have been resized to force an update of
the partition table.
8 Continue with
Section 8.2.2, "Increasing the Size of the RAID Array," on page

8.2.2 Increasing the Size of the RAID Array

After you have resized each of the component partitions in the RAID (see
the Size of Component Partitions," on page
original array size until you force it to be aware of the newly available space. You can specify a size
for the RAID or use the maximum available space.
Component Partitions
/dev/sda1
/dev/sdb1
/dev/sdc1
root
Step 5
for each of the remaining component devices in the array. Make
108), the RAID array configuration continues to use the
user or equivalent.
Step 3
by doing one of the following:
fdisk(8)
, enter
/dev/sda1
Section 8.2.1, "Increasing
Resizing Software RAID Arrays with mdadm 109
/dev/
,
,
cfdisk(8)
109.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Linux enterprise desktop 10 sp2

Table of Contents