Pvs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:


<pre>
<pre>
[root@rhel-test ~]# pvs
# pvs
   PV        VG            Fmt  Attr PSize PFree
   PV        VG            Fmt  Attr PSize PFree
   /dev/sda2  rhel_rhel-test lvm2 a--  7.51g    0  
   /dev/sda2  rhel_rhel-test lvm2 a--  7.51g    0  

Revision as of 13:34, 23 May 2017

Internal

Overview

Displays information about physical volumes.

# pvs
  PV         VG             Fmt  Attr PSize PFree
  /dev/sda2  rhel_rhel-test lvm2 a--  7.51g    0 

Options

--noheadings

Drops headers, useful when the output if mechanically processed.

-o

Options, displays various fields:

Logical Volume Management Fields

-S

Select: Display only rows that match selection criteria. The fields that can be used are listed in the -o section.

-S pv_name=${something},vg_name=${something_else}

--units

Logical Volume Management Units