112
SLES 10 SP3: Storage Administration Guide
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
The procedure in this section uses the device name
/dev/md0
for the RAID device. Make sure to
modify the name to use the name of your own device.
1
Open a terminal console, then log in as the
root
user or equivalent.
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:
Increase the size of the array to the maximum available size by entering
mdadm --grow /dev/md0 -z max
Increase 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 (a kilobyte is 1024 bytes) for the desired
size.
4
Recheck the size of your array and the device size known to the array by entering
mdadm -D /dev/md0 | grep -e "Array Size" -e "Device
Size"
5
Do one of the following:
If your array was successfully resized, continue with
Section 8.2.3, “Increasing the Size of
the File System,” on page 112
.
If your array was not resized as you expected, you must reboot, then try this procedure
again.
8.2.3 Increasing the Size of the File System
After you increase the size of the array (see
Section 8.2.2, “Increasing the Size of the RAID Array,”
on page 111
), you are ready to resize the file system.
You can increase the size of the file system to the maximum space available or specify an exact size.
When specifying an exact size for the file system, make sure the new size satisfies the following
conditions:
The new size must be greater than the size of the existing data; otherwise, data loss occurs.
The new size must be equal to or less than the current RAID size because the file system size
cannot extend beyond the space available.
Ext2 or Ext3
Ext2 and Ext3 file systems can be resized when mounted or unmounted with the command
resize2fs
.
1
Open a terminal console, then log in as the
root
user or equivalent.
2
Increase the size of the file system using one of the following methods:
To extend the file system size to the maximum available size of the software RAID device
called
/dev/md0
, enter
resize2fs /dev/md0
If a size parameter is not specified, the size defaults to the size of the partition.
Summary of Contents for LINUX ENTERPRISE SERVER 10 SP3 - ARCHITECTURE-SPECIFIC
Page 4: ...4 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Page 30: ...30 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Page 42: ...42 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Page 76: ...76 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Page 108: ...108 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Page 118: ...118 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Page 124: ...124 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...
Page 132: ...132 SLES 10 SP3 Storage Administration Guide novdocx en 7 January 2010...