Decreasing The Size Of Component Partitions - Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual

Table of Contents

Advertisement

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 the software RAID device called
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 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/md0
Wait until the resizing is completed before continuing.
4 Mount the file system by entering
mount -t reiserfs /dev/md0 /mnt/point
5 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.

11.3.2 Decreasing the Size of Component Partitions

Resize the RAID's component partitions one at a time. For each component partition, you remove it
from the RAID, modify its partition size, return the partition to the RAID, then wait until the RAID
stabilizes. While a partition is removed, the RAID operates in degraded mode and has no or reduced
disk fault tolerance. Even for RAIDs that can tolerate multiple concurrent disk failures, you should
never remove more than one component partition at a time.
WARNING: If a RAID does not have disk fault tolerance, or it is simply not consistent, data loss
results if you remove any of its partitions. Be very careful when removing partitions, and make sure
that you have a backup of your data available.
The procedure in this section uses the device names shown in the following table. Make sure to
modify the commands to use the names of your own devices.
Scenario for Increasing the Size of Component Partitions
Table 11-4
RAID Device
/dev/md0
To resize the component partitions for the RAID:
1 Open a terminal console, then log in as the
2 Make sure that the RAID array is consistent and synchronized by entering
/dev/md0
Component Partitions
/dev/sda1
/dev/sdb1
/dev/sdc1
user or equivalent.
root
Resizing Software RAID Arrays with mdadm 105
)
/
by entering
/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