You can scan for block devices that may be used as physical volumes with the
lvmdiskscan
command, as shown in the following example.
# lvmdiskscan
/dev/ram0
[
16.00 MB]
/dev/sda
[
17.15 GB]
/dev/root
[
13.69 GB]
/dev/ram
[
16.00 MB]
/dev/sda1
[
17.14 GB] LVM physical volume
/dev/VolGroup00/LogVol01
[
512.00 MB]
/dev/ram2
[
16.00 MB]
/dev/new_vg/lvol0
[
52.00 MB]
/dev/ram3
[
16.00 MB]
/dev/pkl_new_vg/sparkie_lv
[
7.14 GB]
/dev/ram4
[
16.00 MB]
/dev/ram5
[
16.00 MB]
/dev/ram6
[
16.00 MB]
/dev/ram7
[
16.00 MB]
/dev/ram8
[
16.00 MB]
/dev/ram9
[
16.00 MB]
/dev/ram10
[
16.00 MB]
/dev/ram11
[
16.00 MB]
/dev/ram12
[
16.00 MB]
/dev/ram13
[
16.00 MB]
/dev/ram14
[
16.00 MB]
/dev/ram15
[
16.00 MB]
/dev/sdb
[
17.15 GB]
/dev/sdb1
[
17.14 GB] LVM physical volume
/dev/sdc
[
17.15 GB]
/dev/sdc1
[
17.14 GB] LVM physical volume
/dev/sdd
[
17.15 GB]
/dev/sdd1
[
17.14 GB] LVM physical volume
7 disks
17 partitions
0 LVM physical volume whole disks
4 LVM physical volumes
2.2. Displaying Physical Volumes
There are three commands you can use to display properties of LVM physical volumes:
pvs
,
pvdisplay
, and
pvscan
.
The
pvs
command provides physical volume information in a configurable form, displaying one
line per physical volume. The
pvs
command provides a great deal of format control, and is
useful for scripting. For information on using the
pvs
command to customize your output, see
Section 9, “Customized Reporting for LVM”
.
The
pvdisplay
command provides a verbose multi-line output for each physical volume. It
displays physical properties (size, extents, volume group, etc.) in a fixed format.
The following example shows the output of the
pvdisplay
command for a single physical
Chapter 4. LVM Administration with CLI Commands
24
Содержание 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...