User Tools

Site Tools


wiki:resize_lvm_partition_used_by_vm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:resize_lvm_partition_used_by_vm [2025/09/04 12:16] – created antisawiki:resize_lvm_partition_used_by_vm [2025/09/04 12:51] (current) – add more info how to find the correct LV antisa
Line 16: Line 16:
   -----------------------------------------------------   -----------------------------------------------------
   vda        40.000 GiB    (parted) select /dev/vda   vda        40.000 GiB    (parted) select /dev/vda
-Using /dev/vda 
-(parted) print 
-Model: Virtio Block Device (virtblk) 
-Disk /dev/vda: 64.4GB 
-Sector size (logical/physical): 512B/512B 
-Partition Table: msdos 
-Disk Flags: 
- 
-Number  Start   End     Size    Type     File system  Flags 
-      1049kB  1050MB  1049MB  primary  xfs          boot 
-      1050MB  49.4GB  48.3GB  primary               lvm 
- 
-(parted) print free 
-Model: Virtio Block Device (virtblk) 
-Disk /dev/vda: 64.4GB 
-Sector size (logical/physical): 512B/512B 
-Partition Table: msdos 
-Disk Flags: 
- 
-Number  Start   End     Size    Type     File system  Flags 
-        32.3kB  1049kB  1016kB           Free Space 
-      1049kB  1050MB  1049MB  primary  xfs          boot 
-      1050MB  49.4GB  48.3GB  primary               lvm 
-        49.4GB  64.4GB  15.0GB           Free Space 
- 
-(parted) quit 
-  38.564 GiB      60.000 GiB 
  
 You can see that the Physical and Allocation column are almost the same. You can see that the Physical and Allocation column are almost the same.
Line 71: Line 44:
  
 </code> </code>
-Check that the LV volume is part of the VG volume (centos here).+Check that the LV volume is part of the VG volume (centos here) by running the ''lvdisplay'' and finding the matching LVRun the ''lsblk -f'' as well and you should see the name of LV mount. 
 + 
 Now expand the disk size Now expand the disk size
   ~# lvextend -L +100G /dev/mapper/test1.1.1.1.1   ~# lvextend -L +100G /dev/mapper/test1.1.1.1.1
wiki/resize_lvm_partition_used_by_vm.1756988188.txt.gz · Last modified: by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki