Installation guide

Chapter 4. LVM Administration with CLI Commands
52
Argument Header Description
pv_name PV The physical volume name
pv_pe_alloc_count Alloc Number of used physical extents
pv_pe_count PE Number of physical extents
pvseg_size SSize The segment size of the physical volume
pvseg_start Start The starting physical extent of the physical volume
segment
pv_size PSize The size of the physical volume
pv_tags PV Tags LVM tags attached to the physical volume
pv_used Used The amount of space currently used on the physical
volume
pv_uuid PV UUID The UUID of the physical volume
The pvs command displays the following fields by default: pv_name, vg_name, pv_fmt, pv_attr,
pv_size, pv_free. The display is sorted by pv_name.
# pvs
PV VG Fmt Attr PSize PFree
/dev/sdb1 new_vg lvm2 a- 17.14G 17.14G
/dev/sdc1 new_vg lvm2 a- 17.14G 17.09G
/dev/sdd1 new_vg lvm2 a- 17.14G 17.13G
Using the -v argument with the pvs command adds the following fields to the default display:
dev_size, pv_uuid.
# 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