Chapter 4. LVM Administration with CLI Commands
42
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
/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
Summary of Contents for CLUSTER SUITE 4.7 - CLUSTER LVM ADMINISTRATORS
Page 1: ...Red Hat Cluster Suite 4 7 Cluster Logical Volume Manager LVM Administrator s Guide ...
Page 6: ...vi ...
Page 12: ...xii ...
Page 24: ...12 ...
Page 62: ...50 ...
Page 72: ...60 ...
Page 82: ...70 ...
Page 84: ...72 ...
Page 86: ...74 ...
Page 96: ...84 ...
Page 103: ...91 Appendix E Revision History Revision History Revision 1 0 ...
Page 104: ...92 ...
Page 108: ...96 ...