volume.
# pvdisplay
--- Physical volume ---
PV Name
/dev/sdc1
VG Name
new_vg
PV Size
17.14 GB / not usable 3.40 MB
Allocatable
yes
PE Size (KByte)
4096
Total PE
4388
Free PE
4375
Allocated PE
13
PV UUID
Joqlch-yWSj-kuEn-IdwM-01S9-XO8M-mcpsVe
The
pvscan
command scans all supported LVM block devices in the system for physical
volumes.
The following command shows all physical devices found:
# pvscan
PV /dev/sdb2
VG vg0
lvm2 [964.00 MB / 0
free]
PV /dev/sdc1
VG vg0
lvm2 [964.00 MB / 428.00 MB free]
PV /dev/sdc2
lvm2 [964.84 MB]
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
lvm.conf
so that this command will avoid scanning specific
physical volumes. For information on using filters to control which devices are scanned, see
Section 6, “Controlling LVM Device Scans with Filters”
.
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
command. This may be necessary if there are disk errors, or if you
will be removing the physical volume.
The following command disallows the allocation of physical extents on
/dev/sdk1
.
pvchange -x n /dev/sdk1
You can also use the
-xy
arguments of the
pvchange
command to allow allocation where it had
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
pvresize
command to update LVM with the new size. You can execute this command while LVM is using
Preventing Allocation on a Physical Volume
25
Содержание GLOBAL FILE SYSTEM 5.0
Страница 1: ...LVM Administrator s Guide Configuration and Administration 5 0 ISBN N A Publication date...
Страница 4: ...LVM Administrator s Guide...
Страница 8: ...viii...
Страница 18: ...6...
Страница 28: ...16...
Страница 32: ...20...
Страница 80: ...68...
Страница 90: ...78...
Страница 92: ...80...
Страница 94: ...82...
Страница 112: ...100...