Increasing The Size Of A Reiser File System; Decreasing The Size Of An Ext2 Or Ext3 File System; Section 5.3, "Increasing The Size Of A Reiser File System; Section 5.4, "Decreasing The Size Of An Ext2 Or Ext3 File System - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

5.3 Increasing the Size of a Reiser File System

A ReiserFS file system can be increased in size while mounted or unmounted.
1 Open a terminal console, then log in as the
2 Increase the size of the file system on the device called
methods:
To extend the file system size to the maximum available size of the device, enter
resize_reiserfs /dev/sda2
When no size is specified, this increases the volume to the full size of the partition.
To extend the file system to a specific size, enter
resize_reiserfs -s size /dev/sda2
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
resize_reiserfs -s +500M /dev/sda2
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 device
enter
mount -t reiserfs /dev/sda2 /home
4 Check the effect of the resize on the mounted file system by entering
df -h
The Disk Free (
) command shows the total size of the disk, the number of blocks used, and
df
the number of blocks available on the file system. The -h option print sizes in human-readable
format, such as 1K, 234M, or 2G.
5.4 Decreasing the Size of an Ext2 or Ext3 File
System
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 device such as
resize2fs /dev/sda1 <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 device named
/dev/sda1
mount -t ext2 /dev/md0 /home
4 Check the effect of the resize on the mounted file system by entering
user or equivalent.
root
user or equivalent.
root
at mount point
, enter
/home
, using one of the following
/dev/sda2
by 500 MB:
/dev/sda2
at mount point
/dev/sda2
by entering
/dev/sda1
Resizing File Systems
,
/home
37

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents