# pvs -v
Scanning for physical volume names
PV
VG
Fmt
Attr PSize
PFree
DevSize PV UUID
/dev/sdb1
new_vg lvm2 a-
17.14G 17.14G
17.14G
onFF2w-1fLC-ughJ-D9eB-M7iv-6XqA-dqGeXY
/dev/sdc1
new_vg lvm2 a-
17.14G 17.09G
17.14G
Joqlch-yWSj-kuEn-IdwM-01S9-XO8M-mcpsVe
/dev/sdd1
new_vg lvm2 a-
17.14G 17.13G
17.14G
yvfvZK-Cf31-j75k-dECm-0RZ3-0dGW-tUqkCS
You can use the
--segments
argument of the
pvs
command to display information about each
physical volume segment. A segment is a group of extents. A segment view can be useful if you
want to see whether your logical volume is fragmented.
The
pvs --segments
command displays the following fields by default:
pv_name
,
vg_name
,
pv_fmt
,
pv_attr
,
pv_size
,
pv_free
,
pvseg_start
,
pvseg_size
. The display is sorted by
pv_name
and
pvseg_size
within the physical volume.
# pvs --segments
PV
VG
Fmt
Attr PSize
PFree
Start SSize
/dev/hda2
VolGroup00 lvm2 a-
37.16G 32.00M
0
1172
/dev/hda2
VolGroup00 lvm2 a-
37.16G 32.00M
1172
16
/dev/hda2
VolGroup00 lvm2 a-
37.16G 32.00M
1188
1
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
0
26
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
26
24
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
50
26
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
76
24
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
100
26
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
126
24
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
150
22
/dev/sda1
vg
lvm2 a-
17.14G 16.75G
172
4217
/dev/sdb1
vg
lvm2 a-
17.14G 17.14G
0
4389
/dev/sdc1
vg
lvm2 a-
17.14G 17.14G
0
4389
/dev/sdd1
vg
lvm2 a-
17.14G 17.14G
0
4389
/dev/sde1
vg
lvm2 a-
17.14G 17.14G
0
4389
/dev/sdf1
vg
lvm2 a-
17.14G 17.14G
0
4389
/dev/sdg1
vg
lvm2 a-
17.14G 17.14G
0
4389
You can use the
pvs -a
command to see devices detected by LVM that have not been
initialized as LVM physical volumes.
# pvs -a
PV
VG
Fmt
Attr PSize
PFree
/dev/VolGroup00/LogVol01
--
0
0
/dev/new_vg/lvol0
--
0
0
/dev/ram
--
0
0
/dev/ram0
--
0
0
/dev/ram2
--
0
0
/dev/ram3
--
0
0
/dev/ram4
--
0
0
Object Selection
51
Summary of Contents for GLOBAL FILE SYSTEM 5.0
Page 1: ...LVM Administrator s Guide Configuration and Administration 5 0 ISBN N A Publication date...
Page 4: ...LVM Administrator s Guide...
Page 8: ...viii...
Page 18: ...6...
Page 28: ...16...
Page 32: ...20...
Page 80: ...68...
Page 90: ...78...
Page 92: ...80...
Page 94: ...82...
Page 112: ...100...