Decreasing The Size Of A Software Raid; Decreasing The Size Of The File System - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

11.3 Decreasing the Size of a Software RAID

Before you begin, review the guidelines in
page
99.
Section 11.3.1, "Decreasing the Size of the File System," on page 104
Section 11.3.2, "Decreasing the Size of Component Partitions," on page 105
Section 11.3.3, "Decreasing the Size of the RAID Array," on page 106

11.3.1 Decreasing the Size of the File System

When decreasing the size of the file system on a RAID device, 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.
In SUSE Linux Enterprise Server SP1, only Ext2, Ext3, and ReiserFS provide utilities for
decreasing the size of the file system. Use the appropriate procedure below for decreasing the size of
your file system.
The procedures in this section use the device name
modify commands to use the name of your own device.
Ext2 or Ext3
The Ext2 and Ext3 file systems can be resized when mounted or unmounted.
1 Open a terminal console, then log in as the
2 Decrease the size of the file system on the RAID by entering
resize2fs /dev/md0 <size>
Replace size with an integer value in kilobytes for the desired size. (A kilobyte is 1024 bytes.)
Wait until the resizing is completed before continuing.
3 If the file system is not mounted, mount it now. For example, to mount an Ext2 file system for
a RAID named
mount -t ext2 /dev/md0 /raid
4 Check the effect of the resize on the mounted file system by entering
df -h
The Disk Free (
the number of blocks available on the file system. The -h option print sizes in human-readable
format, such as 1K, 234M, or 2G.
ReiserFS
ReiserFS file systems can be decreased in size only if the volume is unmounted.
1 Open a terminal console, then log in as the
2 Unmount the device by entering
104 SLES 11: Storage Administration Guide
Section 11.1, "Understanding the Resizing Process," on
at mount point
/dev/md0
) command shows the total size of the disk, the number of blocks used, and
df
for the RAID device. Make sure to
/dev/md0
user or equivalent.
root
, enter
/raid
user or equivalent.
root

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents