
102
SLES 11: 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 11.2.3, “Increasing the Size
of the File System,” on page 102
.
If your array was not resized as you expected, you must reboot, then try this procedure
again.
11.2.3 Increasing the Size of the File System
After you increase the size of the array (see
Section 11.2.2, “Increasing the Size of the RAID Array,”
on page 101
), 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
resize2fs
command.
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.
To extend the file system to a specific size, enter
Содержание LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010
Страница 4: ...4 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 10: ...10 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 12: ...12 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 24: ...24 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 34: ...34 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 78: ...78 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 88: ...88 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 98: ...98 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 108: ...108 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 130: ...130 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Страница 134: ...134 SLES 11 Storage Administration Guide novdocx en 7 January 2010...