Skip to main content

Thanks a lot for @Bratchley answer and the comments. It helped me :)

My environment: Ubuntu 18.04 in VirtualBox 6.1

My case: I created 10GB fixed VDI disk and increased to 30GB dynamic using VirtualBox GUI. But still the increased space is not available to filesystem. Then came across @Bratchley answer.

Steps I ran:

  1. Run below command to get PV (Physical Volume) name (Ex: /dev/sda1)
sudo pvs
  1. Resize the PV (Ex: sudo pvresize /dev/sda1)
sudo pvresize <PV name from above step>   # Ex: sudo pvresize /dev/sda1
  1. Run below command to get root logical volume name (Filesystem value of / row; ex: /dev/mapper/ubuntu--vg-root)
df -h
  1. Expand logical volume (ex : sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv):
sudo lvextend -r -l +100%FREE <root logical volume name from above step>   # Ex: sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-root

Thanks a lot for @Bratchley answer and the comments. It helped me :)

My environment: Ubuntu 18.04 in VirtualBox 6.1

My case: I created 10GB fixed VDI disk and increased to 30GB dynamic using VirtualBox GUI. But still the increased space is not available to filesystem. Then came across @Bratchley answer.

Steps I ran:

  1. Run below command to get PV (Physical Volume) name (Ex: /dev/sda1)
sudo pvs
  1. Resize the PV
sudo pvresize <PV name from above step>   # Ex: sudo pvresize /dev/sda1
  1. Run below command to get root logical volume name (Filesystem value of / row; ex: /dev/mapper/ubuntu--vg-root)
df -h
  1. Expand logical volume:
sudo lvextend -r -l +100%FREE <root logical volume name from above step>   # Ex: sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-root

Thanks a lot for @Bratchley answer and the comments. It helped me :)

My environment: Ubuntu 18.04 in VirtualBox 6.1

My case: I created 10GB fixed VDI disk and increased to 30GB dynamic using VirtualBox GUI. But still the increased space is not available to filesystem. Then came across @Bratchley answer.

Steps I ran:

  1. Run below command to get PV (Physical Volume) name (Ex: /dev/sda1)
sudo pvs
  1. Resize the PV (Ex: sudo pvresize /dev/sda1)
sudo pvresize <PV name from above step>   
  1. Run below command to get root logical volume name (Filesystem value of / row; ex: /dev/mapper/ubuntu--vg-root)
df -h
  1. Expand logical volume (ex : sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv):
sudo lvextend -r -l +100%FREE <root logical volume name from above step>   
steps fixed to have placeholders & example values for clarity
Source Link
manikanta
  • 1.2k
  • 2
  • 7
  • 5

Thanks a lot for @Bratchley answer and the comments. It helped me :)

My environment: Ubuntu 18.04 in VirtualBox 6.1

My case: I created 10GB fixed VDI disk and increased to 30GB dynamic using VirtualBox GUI. But still the increased space is not available to filesystem. Then came across @Bratchley answer.

Steps I ran:

  1. Run below command to get PV (Physical Volume) name (Ex: /dev/sda1)
sudo pvs
  1. Resize the PV
sudo pvresize <PV name from above step>   # Ex: sudo pvresize /dev/sda1
  1. Run below command to get root logical volume name (Filesystem value of / row; ex: /dev/mapper/ubuntu--vg-root)
df -h
  1. Expand logical volume:
sudo lvextend -r -l +100%FREE <root logical volume name from above step>   # Ex: sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-root

Thanks a lot for @Bratchley answer and the comments. It helped me :)

My environment: Ubuntu 18.04 in VirtualBox 6.1

My case: I created 10GB fixed VDI disk and increased to 30GB dynamic using VirtualBox GUI. But still the increased space is not available to filesystem. Then came across @Bratchley answer.

Steps I ran:

  1. Run below command to get PV (Physical Volume) name (Ex: /dev/sda1)
sudo pvs
  1. Resize the PV
sudo pvresize /dev/sda1
  1. Run below command to get root logical volume name (Filesystem value of / row; ex: /dev/mapper/ubuntu--vg-root)
df -h
  1. Expand logical volume:
sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-root

Thanks a lot for @Bratchley answer and the comments. It helped me :)

My environment: Ubuntu 18.04 in VirtualBox 6.1

My case: I created 10GB fixed VDI disk and increased to 30GB dynamic using VirtualBox GUI. But still the increased space is not available to filesystem. Then came across @Bratchley answer.

Steps I ran:

  1. Run below command to get PV (Physical Volume) name (Ex: /dev/sda1)
sudo pvs
  1. Resize the PV
sudo pvresize <PV name from above step>   # Ex: sudo pvresize /dev/sda1
  1. Run below command to get root logical volume name (Filesystem value of / row; ex: /dev/mapper/ubuntu--vg-root)
df -h
  1. Expand logical volume:
sudo lvextend -r -l +100%FREE <root logical volume name from above step>   # Ex: sudo lvextend -r -l +100%FREE /dev/mapper/ubuntu--vg-root
[Edit removed during grace period]
Source Link
manikanta
  • 1.2k
  • 2
  • 7
  • 5
added 42 characters in body
Source Link
manikanta
  • 1.2k
  • 2
  • 7
  • 5
Loading
deleted 4 characters in body
Source Link
manikanta
  • 1.2k
  • 2
  • 7
  • 5
Loading
Source Link
manikanta
  • 1.2k
  • 2
  • 7
  • 5
Loading