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

Table of Contents

Advertisement

The procedure in this section uses the device name
modify the name to use the name of your own device.
1 Open a terminal console, then log in as the
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
of the File System," on page
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
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
command.
1 Open a terminal console, then log in as the
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
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
102 SLES 11: Storage Administration Guide
102.
, enter
/dev/md0
for the RAID device. Make sure to
/dev/md0
user or equivalent.
root
Section 11.2.3, "Increasing the Size
Section 11.2.2, "Increasing the Size of the RAID Array,"
user or equivalent.
root
resize2fs

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents