Vgs: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[Linux_Logical_Volume_Management_Operations#Information_about_Logical_Volumes|Logical Volume Management Operations]]
* [[Linux_Logical_Volume_Management_Operations#Volume_Group_Operations|Logical Volume Operations]]


=Overview=
=Overview=


Command that provides information information about [[Linux_Logical_Volume_Management_Concepts#Volume_Group_.28VG.29|volume groups]].
Command that provides information information about [[Linux_Logical_Volume_Management_Concepts#Volume_Group_.28VG.29|volume groups]].
<pre>
# vgs
  VG        #PV #LV #SN Attr  VSize  VFree
  docker_vg  1  0  0 wz--n- 508.00m 508.00m
  main_vg    1  1  0 wz--n-  7.00g      0
</pre>


=Options=
=Options=
Line 17: Line 24:
Options, displays various fields:
Options, displays various fields:


* '''vg_name''' - displays the [[Linux_Logical_Volume_Management_Concepts#Volume_Group_.28VG.29|volume group]] name.
{{Internal|Logical Volume Management 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|-o]] section.
 
<pre>
-S vg_name=${something},...
</pre>
 
==--units==
 
{{Internal|Logical Volume Management Units|Logical Volume Management Units}}
 
==--nosuffix==
 
Suppress the suffix on output sizes.  Use with [[#--units|--units]].
 
=Example=
 
==Free Space in the Volume Group==
 
The amount of free space in bytes on a volume group:
 
<pre>
vgs --noheadings --nosuffix --units b -o vg_free docker_vg
</pre>

Latest revision as of 15:09, 23 May 2017

Internal

Overview

Command that provides information information about volume groups.

# vgs
  VG        #PV #LV #SN Attr   VSize   VFree
  docker_vg   1   0   0 wz--n- 508.00m 508.00m
  main_vg     1   1   0 wz--n-   7.00g      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 vg_name=${something},...

--units

Logical Volume Management Units

--nosuffix

Suppress the suffix on output sizes. Use with --units.

Example

Free Space in the Volume Group

The amount of free space in bytes on a volume group:

vgs --noheadings --nosuffix --units b -o vg_free docker_vg