![Novell LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE 7-2007 Administration Manual Download Page 96](http://html1.mh-extra.com/html/novell/linux-enterprise-server-10-storage-administration-guide-7-2007/linux-enterprise-server-10-storage-administration-guide-7-2007_administration-manual_1711843096.webp)
96
SLES 10 Storage Administration Guide
no
vd
ocx
(e
n)
6 Ap
ril 20
07
ReiserFS
As with Ext2 and Ext3, a ReiserFS file system can be increased in size while mounted or
unmounted. The resize is done on the block device of your RAID array.
1
Open a terminal console, then log in as the
root
user or equivalent.
2
Increase the size of the file system on the software RAID device called
/dev/md0
, using one
of the following methods:
To extend the file system size to the maximum available size of the device, enter
resize_reiserfs /dev/md0
When no size is specified, this grows the volume to the full size of the partition.
To extend the file system to a specific size, enter
resize_reiserfs -s
size
/dev/md0
Replace
size
with the desired size in bytes. You can also specify units on the value, such as
50000K (kilobytes), 250M (megabytes), or 2G (gigabytes). Alternatively, you can specify
an increase to the current size by prefixing the value with a plus (+) sign. For example, the
following command increases the size of the file system on
/dev/md0
by 500 MB:
resize_reiserfs -s +500M /dev/md0
Wait until the resizing is completed before continuing.
3
If the file system is not mounted, mount it now.
For example, to mount an ReiserFS file system for a RAID named
/dev/md0
at mount point
/raid
, enter
mount -t reiserfs /dev/md0 /raid
4
Check the effect of the resize on the mounted file system by entering
df -h
The Disk Free (
df
) command shows the total size of the disk, the number of blocks used, and
the number of blocks available on the file system. The -h option print sizes in human-readable
format, such as 1K, 234M, or 2G.
8.3 Decreasing the Size of a Software RAID
Before you begin, review the guidelines in
Section 8.1, “Understanding the Resizing Process,” on
page 91
.
Section 8.3.1, “Decreasing the Size of the File System,” on page 96
Section 8.3.2, “Decreasing the Size of Component Partitions,” on page 98
Section 8.3.3, “Decreasing the Size of the RAID Array,” on page 99
8.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.
Summary of Contents for LINUX ENTERPRISE SERVER 10 - STORAGE ADMINISTRATION GUIDE 7-2007
Page 4: ...novdocx en 6 April 2007...
Page 30: ...30 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 42: ...42 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 58: ...58 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 90: ...90 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 100: ...100 SLES 10 Storage Administration Guide novdocx en 6 April 2007...
Page 106: ...106 SLES 10 Storage Administration Guide novdocx en 6 April 2007...