Difference between revisions of "Lvs"

From wikieduonline
Jump to navigation Jump to search
(added some more examples)
Line 11: Line 11:
 
<pre>
 
<pre>
 
lvs --segments
 
lvs --segments
         LV   VG Attr      #Str Type   SSize
+
         LV           VG       Attr      #Str Type     SSize
         lvol0 vg -wi-a-----    1 linear 4.00m
+
         lvol0         vg01      -wi-a-----    1 linear     4.00m
         lvol1 vg rwi-a-r---    2 raid1  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
 
</pre>
 
</pre>
  

Revision as of 11:09, 16 December 2019

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

See also

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

Advertising: