Novell LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010 Administration Manual page 33

Table of Contents

Advertisement

To extend the size of a logical volume:
1 Open a terminal console, log in as the
2 If the logical volume contains file systems that are hosted for a virtual machine (such as a Xen
VM), shut down the VM.
3 Dismount the file systems on the logical volume.
4 At the terminal console prompt, enter the following command to grow the size of the logical
volume:
lvextend -L +size /dev/vgname/lvname
For size, specify the amount of space you want to add to the logical volume, such as 10GB.
Replace
/dev/vgname/lvname
. For example:
v1
lvextend -L +10GB /dev/vg1/v1
For example, to extend an LV with a (mounted and active) ReiserFS on it by 10GB:
lvextend −L +10G /dev/vgname/lvname
resize_reiserfs −s +10GB −f /dev/vg−name/lv−name
For example, to shrink an LV with a ReiserFS on it by 5GB:
umount /mountpoint−of−LV
resize_reiserfs −s −5GB /dev/vgname/lvname
lvreduce /dev/vgname/lvname
mount /dev/vgname/lvname /mountpoint−of−LV
user.
root
with the Linux path to the logical volume, such as
/dev/vg1/
LVM Configuration
33

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 11 storage

Table of Contents