Difference between revisions of "Lvextend"

From wikieduonline
Jump to navigation Jump to search
Line 5: Line 5:
 
   WARNING: Device /dev/mapper/3600a09803831417a5a244f5665797a4d has size of 8804682957 sectors which is smaller than corresponding PV size of 12884901888 sectors. Was device resized?
 
   WARNING: Device /dev/mapper/3600a09803831417a5a244f5665797a4d has size of 8804682957 sectors which is smaller than corresponding PV size of 12884901888 sectors. Was device resized?
 
   One or more devices used as PVs in VG data_hphq1 have changed sizes.
 
   One or more devices used as PVs in VG data_hphq1 have changed sizes.
   New size given (524287 extents) not larger than existing size (1048576 extents)
+
   New size given (524287 extents) not larger than existing size (1048576 [[extents]])
  
  
 
  lvextend -l 100%FREE -n /dev/mapper/VG_NAME-LV_NAME
 
  lvextend -l 100%FREE -n /dev/mapper/VG_NAME-LV_NAME
 
   New size given (26214 extents) not larger than existing size (1048576 [[extents]])
 
   New size given (26214 extents) not larger than existing size (1048576 [[extents]])
 +
 +
Note: + sign
 +
lvextend -l +100%FREE -n /dev/mapper/VG_NAME-LV_NAME
 +
  Size of logical volume VG_NAME/LV_NAME changed from 4.00 TiB (1048576 extents) to <4.10 TiB (1074790 extents).
 +
  Logical volume VG_NAME/LV_NAME successfully resized.
  
  

Revision as of 11:30, 7 January 2020

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


lvextend -l 100%FREE -n /dev/mapper/VG_NAME-LV_NAME
 WARNING: Device /dev/mapper/3600a09803831417a5a244f5665797a4d has size of 8804682957 sectors which is smaller than corresponding PV size of 12884901888 sectors. Was device resized?
 One or more devices used as PVs in VG data_hphq1 have changed sizes.
 New size given (524287 extents) not larger than existing size (1048576 extents)


lvextend -l 100%FREE -n /dev/mapper/VG_NAME-LV_NAME
 New size given (26214 extents) not larger than existing size (1048576 extents)
Note: + sign
lvextend -l +100%FREE -n /dev/mapper/VG_NAME-LV_NAME
 Size of logical volume VG_NAME/LV_NAME changed from 4.00 TiB (1048576 extents) to <4.10 TiB (1074790 extents).
 Logical volume VG_NAME/LV_NAME successfully resized.


Activities

  1. Extend LVM on qcow2 images


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: