Difference between revisions of "Lvreduce"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
<code>lvreduce</code> - Reduce the size of a logical volume
 
<code>lvreduce</code> - Reduce the size of a logical volume
 +
 +
== Examples ==
 +
Reduce to a total size of 1GB:
 +
* <code>lvreduce --resizefs -L 1GB vg01/lvol1</code>
  
  
 
* <code>lvreduce --resizefs -L 84M vg01/lvol1</code>
 
* <code>lvreduce --resizefs -L 84M vg01/lvol1</code>
  
Reduce to 1GB:
+
 
* <code>lvreduce --resizefs -L 1GB vg01/lvol1</code>
 
  
  
 
== See also ==
 
== See also ==
 
* {{LVM}}
 
* {{LVM}}

Revision as of 13:53, 6 January 2020

lvreduce - Reduce the size of a logical volume

Examples

Reduce to a total size of 1GB:

  • lvreduce --resizefs -L 1GB vg01/lvol1


  • lvreduce --resizefs -L 84M vg01/lvol1



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: