
LVM Configuration
33
no
vd
ocx
(e
n)
7 Ja
nua
ry 201
0
To extend the size of a logical volume:
1
Open a terminal console, log in as the
root
user.
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
with the Linux path to the logical volume, such as
/dev/vg1/
v1
. For example:
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
Summary of Contents for LINUX ENTERPRISE SERVER 11 - STORAGE ADMINISTRATION GUIDE 2-23-2010
Page 4: ...4 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 10: ...10 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 12: ...12 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 24: ...24 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 34: ...34 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 78: ...78 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 88: ...88 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 98: ...98 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 108: ...108 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 130: ...130 SLES 11 Storage Administration Guide novdocx en 7 January 2010...
Page 134: ...134 SLES 11 Storage Administration Guide novdocx en 7 January 2010...