Difference between revisions of "Lvs"

From wikieduonline
Jump to navigation Jump to search
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<code>lvs</code><ref>http://man7.org/linux/man-pages/man8/lvs.8.html</ref>- Display information about logical volumes
+
{{lc}}
 +
<code>lvs</code><ref>http://man7.org/linux/man-pages/man8/lvs.8.html</ref>- Display information about [[logical volumes]]
 
<pre>
 
<pre>
 
lvs
 
lvs
Line 48: Line 49:
 
</pre>
 
</pre>
  
 +
 +
== Related commands ==
 +
* <code>[[lvdisplay]]</code>
 +
* <code>[[pvs]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 09:54, 8 February 2023

lvs[1]- Display information about logical volumes

lvs
  LV                          VG         Attr       LSize   Pool   Origin                    Data%  Meta%  Move Log Cpy%Sync Convert
  root                        vg01       -wi-ao---- 445.61g
  swap_1                      vg01       -wi-ao---- 976.00m
  home                        rhvh       Vwi---tz--   1.00g pool00


lvs -a -o +devices
  Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
  Couldn't find all physical volumes for volume group VG.
  Couldn't find device with uuid 'FmGRh3-zhok-iVI8-7qTD-S5BI-MAEN-NYM5Sk'.
  Couldn't find all physical volumes for volume group VG.

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Cluster_Logical_Volume_Manager/mdatarecover.html

lvs --segments
         LV            VG        Attr       #Str Type     SSize
         lvol0         vg01      -wi-a-----    1 linear     4.00m
         lvol1         vg01      -wi-ao----    1 linear  <250.00g
         lvol2         vg01      rwi-a-r---    2 raid1      4.00m
         lvol_stripped vg02      -wi-ao----    2 striped  199.99g
         lvol3         rhvh      Vwi---tz--    0 thin       1.00g
         pool00        rhvh      twi---tz--    1 thin-pool <7.17t
         pool00        rhvh      Vri---tz-k    0 thin       7.14t
         swap          rhvh      -wi-ao----    1 linear       4.00g
lvs --segments
  LV                              VG        Attr       #Str Type        SSize
  home                            rhvh      Vwi---tz--    0 thin         1.00g
  pool00                          rhvh      twi---tz--    1 thin-pool   <7.17t
  rhvh-4.3.4.1-0.20190620.0       rhvh      Vwi---tz-k    0 thin         7.14t
  rhvh-4.3.4.1-0.20190620.0+1     rhvh      Vwi---tz--    0 thin         7.14t
  root                            rhvh      Vri---tz-k    0 thin         7.14t
  swap                            rhvh      -wi-ao----    1 linear       4.00g
  tmp                             rhvh      Vwi---tz--    0 thin         1.00g
  var                             rhvh      Vwi---tz--    0 thin        15.00g
  var_crash                       rhvh      Vwi---tz--    0 thin        10.00g
  var_log                         rhvh      Vwi---tz--    0 thin         8.00g
  var_log_audit                   rhvh      Vwi---tz--    0 thin         2.00g


Related commands[edit]

See also[edit]

scan: pvscan vgscan
LVM: lvs lvmscan lvm fullreport lvmreport lvmconfig lvmdump lvmcheck lvm dumpconfig
Scan: pvs vgs lvs pvscan vgscan
PV: pvcreate pvremove pvscan pvremove pvscan pvs pvchange pvck pvdisplay pvresize
LV: lvdisplay lvcreate lvremove, lvresize, lvextend, lvreduce, lvrename
VG: vgdisplay,vgcreate,vgremove, vgextend, vgreduce, vgscan, vgchange, vgrename, vgcfgbackup, vgcfgrestore, vgimportclone, vgck
Check commands: pvck vgck
  • http://man7.org/linux/man-pages/man8/lvs.8.html
  • Advertising: