Format Control
39
• Instructions for specifying the units of the report output.
4.9.1. Format Control
Whether you use the
pvs
,
lvs
, or
vgs
command determines the default set of fields displayed and
the sort order. You can control the output of these commands with the following arguments:
• You can change what fields are displayed to something other than the default by using the
-o
argument. For example, the following output is the default display for the
pvs
command (which
displays information about physcial volumes).
#
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.14G
The following command displays only the physical volume name and size.
#
pvs -o pv_name,pv_size
PV PSize
/dev/sdb1 17.14G
/dev/sdc1 17.14G
/dev/sdd1 17.14G
• You can append a field to the output with the plus sign (+), which is used in combination with the -o
argument.
The following example displays the UUID of the physical volume in addition to the default fields.
#
pvs -o +pv_uuid
PV VG Fmt Attr PSize PFree PV UUID
/dev/sdb1 new_vg lvm2 a- 17.14G 17.14G onFF2w-1fLC-ughJ-D9eB-
M7iv-6XqA-dqGeXY
/dev/sdc1 new_vg lvm2 a- 17.14G 17.09G Joqlch-yWSj-kuEn-IdwM-01S9-
XO8M-mcpsVe
/dev/sdd1 new_vg lvm2 a- 17.14G 17.14G yvfvZK-Cf31-j75k-
dECm-0RZ3-0dGW-tUqkCS
• Adding the
-v
argument to a command includes some extra fields. For example, the
pvs -v
command will display the
DevSize
and
PV UUID
fields in addition to the default fields.
#
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
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 ...