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

Both sides previous revisionPrevious revision
wiki:resize_lvm_partition_used_by_vm [2025/10/21 11:15] – add clarification about lvextend disk size antisawiki:resize_lvm_partition_used_by_vm [2025/10/21 11:59] (current) – add info about parttion number antisa
Line 71: Line 71:
 </code> </code>
  
-Here we want to expand vda2, centos-lv_root FS. Run these commands:+Here we want to expand vda2, centos-lv_root FS. Get the partition number by running 
 +  parted /dev/vda 
 +  print free 
 + 
 +Then ruun these commands:
  
   sudo yum install -y cloud-utils-growpart   sudo yum install -y cloud-utils-growpart
-  sudo growpart /dev/vda 2+  sudo growpart /dev/vda 2 <-- 2 is partition you get via parted
   sudo pvresize /dev/vda2   sudo pvresize /dev/vda2
   sudo lvextend -l +100%FREE /dev/centos/lv_root   sudo lvextend -l +100%FREE /dev/centos/lv_root
wiki/resize_lvm_partition_used_by_vm.txt · 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