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

Table of Contents

Advertisement

Scenario for Increasing the Size of Component Partitions
Table 11-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 option 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 11.2.2, "Increasing the Size of the RAID Array," on page

11.2.2 Increasing the Size of the RAID Array

After you have resized each of the component partitions in the RAID (see
"Increasing the Size of Component Partitions," on page
continues to use the 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
user or equivalent.
Step 3
by doing one of the following:
fdisk(8)
, enter
/dev/sda1
Section 11.2.1,
100), the RAID array configuration
Resizing Software RAID Arrays with mdadm 101
/dev/
,
,
cfdisk(8)
101.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents