Customized Reporting For Lvm; Format Control - Red Hat LVM ADMINISTRATOR FOR RHEL 4.5 Administrator's Manual

Lvm administrator's guide for rhel 4.5
Table of Contents

Advertisement

You can also activate logical volumes on individual nodes by using LVM tags, which are
described in
Appendix C, LVM Object
configuration file, which is described in

9. Customized Reporting for LVM

You can produce concise and customizable reports of LVM objects with the
commands. The reports that these commands generate include one line of output for each
object. Each line contains an ordered list of fields of properties related to the object. There are
five ways to select the objects to be reported: by physical volume, volume group, logical volume,
physical volume segment, and logical volume segment.
The following sections provide:
• A summary of command arguments you can use to control the format of the generated report.
• A list of the fields you can select for each LVM object.
• A summary of command arguments you can use to sort the generated report.
• Instructions for specifying the units of the report output.

9.1. Format Control

Whether you use the
pvs
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
argument. For example, the following output is the default display for the
(which displays information about physcial volumes).
# pvs
PV
VG
/dev/sdb1
new_vg lvm2 a-
/dev/sdc1
new_vg lvm2 a-
/dev/sdd1
new_vg lvm2 a-
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
Tags. You can also specify activation of nodes in the
Appendix B, The LVM Configuration
,
, or
command determines the default set of fields displayed
lvs
vgs
Fmt
Attr PSize
17.14G 17.14G
17.14G 17.09G
17.14G 17.14G
Customized Reporting for LVM
PFree
Files.
,
, and
pvs
lvs
vgs
-o
command
pvs
47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Configuration and administration 4.5

Table of Contents