Decreasing The Size Of A Reiser File System; Section 5.5, "Decreasing The Size Of A Reiser File System; Resize_Reiserfs - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

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.

5.5 Decreasing the Size of a Reiser File System

Reiser file systems can be reduced in size only if the volume is unmounted.
1 Open a terminal console, then log in as the
2 Unmount the device by entering
umount /mnt/point
If the partition you are attempting to decrease in size contains system files (such as the root (
volume), unmounting is possible only when booting from a bootable CD or floppy.
3 Decrease the size of the file system on a device called
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 a
decrease to the current size by prefixing the value with a minus (-) sign. For example, the
following command reduces the size of the file system on
resize_reiserfs -s -500M /dev/sda2
Wait until the resizing is completed before continuing.
4 Mount the file system by entering
mount -t reiserfs /dev/sda2 /mnt/point
5 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.
38
SLES 11: Storage Administration Guide
) command shows the total size of the disk, the number of blocks used, and
df
) command shows the total size of the disk, the number of blocks used, and
df
user or equivalent.
root
by entering
/dev/sda1
/dev/md0
)
/
by 500 MB:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents