Preventing Allocation On A Physical Volume; Resizing A Physical Volume - Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

volume.
# pvdisplay
--- Physical volume ---
PV Name
VG Name
PV Size
Allocatable
PE Size (KByte)
Total PE
Free PE
Allocated PE
PV UUID
The
command scans all supported LVM block devices in the system for physical
pvscan
volumes.
The following command shows all physical devices found:
# pvscan
PV /dev/sdb2
PV /dev/sdc1
PV /dev/sdc2
Total: 3 [2.83 GB] / in use: 2 [1.88 GB] / in no VG: 1 [964.84 MB]
You can define a filter in the
physical volumes. For information on using filters to control which devices are scanned, see
Section 6, "Controlling LVM Device Scans with

2.3. Preventing Allocation on a Physical Volume

You can prevent allocation of physical extents on the free space of one or more physical
volumes with the
pvchange
will be removing the physical volume.
The following command disallows the allocation of physical extents on
pvchange -x n /dev/sdk1
You can also use the
-xy
previously been disallowed.

2.4. Resizing a Physical Volume

If you need to change the size of an underlying block device for any reason, use the
command to update LVM with the new size. You can execute this command while LVM is using
/dev/sdc1
new_vg
17.14 GB / not usable 3.40 MB
yes
4096
4388
4375
13
Joqlch-yWSj-kuEn-IdwM-01S9-XO8M-mcpsVe
VG vg0
lvm2 [964.00 MB / 0
VG vg0
lvm2 [964.00 MB / 428.00 MB free]
lvm2 [964.84 MB]
so that this command will avoid scanning specific
lvm.conf
command. This may be necessary if there are disk errors, or if you
arguments of the
pvchange
Preventing Allocation on a Physical Volume
free]
Filters".
command to allow allocation where it had
.
/dev/sdk1
pvresize
25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents