Difference between revisions of "Extend LVM on qcow2 images"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 +
{{Draft}}
 +
 +
Examples:
 
* Example using <code>[[virt-resize]]</code>: https://fatmin.com/2016/12/20/how-to-resize-a-qcow2-image-and-filesystem-with-virt-resize/
 
* Example using <code>[[virt-resize]]</code>: https://fatmin.com/2016/12/20/how-to-resize-a-qcow2-image-and-filesystem-with-virt-resize/
* Follow https://www.technomenace.com/2014/08/how-to-extend-lvm-on-qcow2-images/
+
* https://www.technomenace.com/2014/08/how-to-extend-lvm-on-qcow2-images/
  
  

Revision as of 11:34, 14 January 2020

This article is a Draft. Help us to complete it.

Examples:



Process:


Commands:

  • qemu-img resize c845ba080f2326a51c53965af1ac6c18 +3G
  • qemu-img info
  • Modify partition with: fdisk /dev/vdX + Reboot
  • pvresize /dev/vdX# (Expand a PV after enlarging the partition)
  • lvextend -L +1.8G /dev/mapper/VolGroup-lv_root
  • resize2fs /dev/mapper/VolGroup-lv_root


Activities

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: