94
SLES 10 Storage Administration Guide
no
vd
ocx
(e
n)
6 Ap
ril 20
07
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 94
.
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 93
), 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.
Содержание LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE 7-2007
Страница 4: ...novdocx en 6 April 2007...
Страница 30: ...30 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Страница 42: ...42 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Страница 58: ...58 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Страница 90: ...90 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Страница 100: ...100 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Страница 106: ...106 SLES 10 Storage Administration Guide novdocx en 6 April 2007...