Changing the Parameters of a Volume Group
23
Cur LV 1
PE Size (KByte) 4096
Total PE 499
Free PE 0
Allocated PE 499
PV UUID Sd44tK-9IRw-SrMC-MOkn-76iP-iftz-OVSen7
If the physical volume is still being used you will have to migrate the data to another physical volume
using the
pvmove
command. Then use the
vgreduce
command to remove the physical volume:
The following command removes the physical volume
/dev/hda1
from the volume group
my_volume_group
.
#
vgreduce my_volume_group /dev/hda1
4.3.6. Changing the Parameters of a Volume Group
There are several volume group parameters that you can change for an existing volume group with
the
vgchange
command. Primarily, however, this command is used to deactivate and activate volume
groups, as described in
Section 4.3.7, “Activating and Deactivating Volume Groups”
,
The following command changes the maximum number of logical volumes of volume group
vg00
to
128.
vgchange -l 128 /dev/vg00
For a description of the volume group parameters you can change with the
vgchange
command, see
the
vgchange
(8) man page.
4.3.7. Activating and Deactivating Volume Groups
When you create a volume group it is, by default, activated. This means that the logical volumes in
that group are accessible and subject to change.
There are various circumstances for which you you need to make a volume group inactive and
thus unknown to the kernel. To deactivate or activate a volume group, use the
-a
(
--available
)
argument of the
vgchange
command.
The following example deactivates the volume group
my_volume_group
.
vgchange -a n my_volume_group
If clustered locking is enabled, add ’e’ to activate or deactivate a volume group exclusively on one
node or ’l’ to activate or/deactivate a volume group only on the local node. Logical volumes with single-
host snapshots are always activated exclusively because they can only be used on one node at once.
You can deactivate individual logical volumes with the
lvchange
command, as described in
Section 4.4.4, “Changing the Parameters of a Logical Volume Group”
, For information on activating
Содержание CLUSTER SUITE 4.7 - CLUSTER LVM ADMINISTRATORS
Страница 1: ...Red Hat Cluster Suite 4 7 Cluster Logical Volume Manager LVM Administrator s Guide ...
Страница 6: ...vi ...
Страница 12: ...xii ...
Страница 24: ...12 ...
Страница 62: ...50 ...
Страница 72: ...60 ...
Страница 82: ...70 ...
Страница 84: ...72 ...
Страница 86: ...74 ...
Страница 96: ...84 ...
Страница 103: ...91 Appendix E Revision History Revision History Revision 1 0 ...
Страница 104: ...92 ...
Страница 108: ...96 ...