Chapter 4. LVM Administration with CLI Commands
To keep the fields aligned when using the separator argument, use the separator argument in
conjunction with the --aligned argument.
# pvs --separator = --aligned
PV
=VG
/dev/sdb1 =new_vg=lvm2=a-
/dev/sdc1 =new_vg=lvm2=a-
/dev/sdd1 =new_vg=lvm2=a-
You can use the -P argument of the lvs or vgs command to display information about a failed
volume that would otherwise not appear in the output. For information on the output this argument
Section 6.2, "Displaying Information on Failed
yields, see
For a full listing of display arguments, see the pvs(8), vgs(8) and lvs(8) man pages.
Volume group fields can be mixed with either physical volume (and physical volume segment) fields or
with logical volume (and logical volume segment) fields, but physical volume and logical volume fields
cannot be mixed. For example, the following command will display one line of output for each physical
volume.
# vgs -o +pv_name
VG
#PV #LV #SN Attr
new_vg
3
1
new_vg
3
1
new_vg
3
1
4.9.2. Object Selection
This section provides a series of tables that list the information you can display about the LVM objects
with the pvs, vgs, and lvs commands.
For convenience, a field name prefix can be dropped if it matches the default for the command.
For example, with the pvs command, name means pv_name, but with the vgs command, name is
interpreted as vg_name.
Executing the following command is the equivalent of executing pvs -o pv_free.
# pvs -o +free
PFree
17.14G
17.09G
17.14G
The pvs Command
Table 4.1, "pvs Display Fields"
name as it appears in the header display and a description of the field.
46
=Fmt =Attr=PSize =PFree
=17.14G=17.14G
=17.14G=17.09G
=17.14G=17.14G
VSize
VFree
0 wz--n- 51.42G 51.37G /dev/sdc1
0 wz--n- 51.42G 51.37G /dev/sdd1
0 wz--n- 51.42G 51.37G /dev/sdb1
lists the display arguments of the pvs command, along with the field
Devices".
PV
Need help?
Do you have a question about the ENTERPRISE LINUX 5 - LOGICAL VOLUME MANAGER ADMINISTRATION and is the answer not in the manual?
Questions and answers