# Extend LVM after VM Disk resize

<div class="n6owBd awi2gc" data-hveid="CAEQAA" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" id="bkmrk-to-extend-lvm-in-a-l" jsaction="" jscontroller="TDBkbc" jsuid="V4OGbe_s"><span data-processed="true" data-subtree="aimfl,mfl">To extend LVM in a Linux VM after a disk resize in Proxmox, resize the partition, expand the Physical Volume (</span><div data-processed="true" data-xpm-copy-root="">![](https://docs.corestream.ch/uploads/images/gallery/2026-04/pqHUzXCufVUEbxAx-embedded-image-psxz6jly.gif)<div data-processed="true">  
</div></div>), and extend the Logical Volume ( <div data-processed="true" data-xpm-copy-root="">![](https://docs.corestream.ch/uploads/images/gallery/2026-04/eqxzPtjig8OLSYXw-embedded-image-hfzj0jux.gif)<div data-processed="true">  
</div></div>). The core commands to run inside the VM are `growpart /dev/sda 2` (adjust device), `pvresize /dev/sda2`, and `lvresize -l +100%FREE /dev/mapper/vg-lv`.<span class="uJ19be notranslate" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_z,V4OGbe_10"><span class="vKEkVd" data-animation-atomic="" data-processed="true" data-wiz-attrbind="class=V4OGbe_y/TKHnVd"><span aria-hidden="true" data-processed="true"> </span><button aria-label="Proxmox Support Forum (+2) – Zugehörige Links ansehen" class="rBl3me IWyTpf pjvauc" data-amic="true" data-hveid="CAEQAw" data-icl-uuid="a10afb9b-e360-4524-9925-6624d2fee588" data-processed="true" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQye0OegQIARAD" data-wiz-attrbind="disabled=V4OGbe_y/C5gNJc;aria-label=V4OGbe_y/bOjMyf;class=V4OGbe_y/UpSNec" tabindex="0"></button></span></span><div class="Fwa2Od" data-animation-skip="" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQ3s0SegQIARAE" jsaction="" jscontroller="Pwlgo" jsuid="V4OGbe_11">  
</div></div><div class="Fsg96" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" id="bkmrk-" jsaction="rcuQ6b:&V4OGbe_1j|npT2md" jscontroller="KHhJQ" jsuid="V4OGbe_1j">  
</div><div aria-level="3" class="otQkpb" data-animation-nesting="" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" id="bkmrk-steps-to-extend-lvm-" jsaction="" jscontroller="a7qCn" jsuid="V4OGbe_1k" role="heading">Steps to Extend LVM After Proxmox Disk Resize<span class="txxDge notranslate" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_1m,V4OGbe_1n"><span class="vKEkVd" data-animation-atomic="" data-processed="true" data-wiz-attrbind="class=V4OGbe_1l/TKHnVd"><button aria-label="Zugehörige Links ansehen" class="rBl3me" data-amic="true" data-hveid="CAIQAA" data-icl-uuid="48b9668e-02a9-4ef5-8765-c51658baf1ac" data-processed="true" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQye0OegQIAhAA" data-wiz-attrbind="disabled=V4OGbe_1l/C5gNJc;aria-label=V4OGbe_1l/bOjMyf;class=V4OGbe_1l/UpSNec" tabindex="0"><span class="wiMplc ofC0Ud" data-processed="true"><svg fill="currentColor" focusable="false" height="12px" viewbox="0 0 24 24" width="12px" xmlns="http://www.w3.org/2000/svg"><path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z"></path></svg></span></button></span></span></div>1. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Resize Disk in Proxmox:** Go to the VM's **Hardware** tab, select the hard disk, click **Resize**, and add the desired amount.</span>
2. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Scan for New Space (Inside VM):** The VM might not see the space immediately. Rescan the SCSI bus:</span><div class="r1PmQe" data-hveid="CAMQAg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_1z,V4OGbe_1y" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_1x"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAE" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_20"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_20:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_21/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_24" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    echo 1 > /sys/class/block/sda/device/rescan
    # Replace sda with your disk identifier found via lsblk
    
    ```
3. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Expand Partition (If needed):** Use `growpart` to expand the partition containing the LVM PV. For example, if LVM is on `/dev/sda2`:</span><div class="r1PmQe" data-hveid="CAMQBg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_2d,V4OGbe_2c" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_2b"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAI" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_2e"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_2e:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_2f/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_2i" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    growpart /dev/sda 2
    
    ```
    
    <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">*If `growpart` is not installed, use `apt install cloud-utils-growpart` or `yum install cloud-utils-growpart`*.</span>
4. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Resize Physical Volume (PV):** Tell LVM the partition is larger:</span><div class="r1PmQe" data-hveid="CAMQCg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_2u,V4OGbe_2t" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_2s"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAM" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_2v"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_2v:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_2w/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_2z" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    pvresize /dev/sda2
    
    ```
5. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Extend Logical Volume (LV):** Extend the LVM to use all new free space:</span><div class="r1PmQe" data-hveid="CAMQDg" data-processed="true" data-sfc-cb="" data-sfc-root="c" data-wiz-uids="V4OGbe_36,V4OGbe_35" jsaction="" jscontroller="HP6Sjf" jsuid="V4OGbe_34"><div data-processed="true"><div class="pHpOfb" data-animation-atomic="" data-processed="true"><div class="vVRw1d" data-processed="true">bash <div data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c" data-ved="2ahUKEwjj9drbuI2UAxXd9AIHHbpbEkQQh9gSegQIAxAQ" jsaction="" jscontroller="cXTEid" jsuid="V4OGbe_37"><button aria-label="Codetext in Zwischenablage kopieren." class="FTsWP RmjGdc IsqrXb" data-processed="true" data-sfc-cb="KjsqPd=&V4OGbe_37:UEmoBd" data-sfc-cp="" data-sfc-root="c" data-wiz-attrbind="disabled=V4OGbe_38/ggNWmb" id=""><span aria-hidden="true" class="I36Cje" data-processed="true"><svg aria-hidden="true" data-sfc-cb="" data-sfc-root="c" fill="currentColor" height="18px" jsaction="" jscontroller="ZfypCb" jsuid="V4OGbe_3b" viewbox="0 -960 960 960" width="18px"></svg></span></button></div></div><div class="pCTyYe" data-processed="true" dir="ltr"></div></div></div></div>```
    lvextend -l +100%FREE /dev/mapper/vgname-lvname
    # Use 'lvs' to find your correct volume group/logical volume name
    
    ```
6. <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**Resize Filesystem:** Update the filesystem to use the new space.</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**For ext4:** `resize2fs /dev/mapper/vgname-lvname`</span>
    - <span class="T286Pc" data-processed="true" data-sfc-cb="" data-sfc-cp="" data-sfc-root="c">**For XFS:** `xfs_growfs /`</span>