Glengineer
Dabbler
- Joined
- Dec 20, 2020
- Messages
- 15
I want to increase the space available to a Linux ubuntu server VM.
It was initially set to 8GB.
I changed the Zvol from 8GB to 500GB:
This is what
I am unsure how to increase the volume to take up more space.
I tried
Can anyone help me increase the volume to take up all 500GB of space.?
It was initially set to 8GB.
I changed the Zvol from 8GB to 500GB:
kira-gxrngk | VOLUME | 553.28 GiB | 9.91 TiB | lz4 | 1.65 | false | OFF |
This is what
cfdisk
looks likeCode:
Disk: /dev/vda Size: 500 GiB, 536870912000 bytes, 1048576000 sectors Label: gpt, identifier: CCEBF416-6CF8-44EB-9356-5EA921A7A8C3 Device Start End Sectors Size Type >> /dev/vda1 2048 1050623 1048576 512M EFI System /dev/vda2 1050624 3147775 2097152 1G Linux filesystem /dev/vda3 3147776 20973567 17825792 8.5G Linux filesystem Free space 20973568 1048575966 1027602399 490G
lvdisplay
returns:Code:
glen@kira:~$ sudo lvdisplay --- Logical volume --- LV Path /dev/ubuntu-vg/ubuntu-lv LV Name ubuntu-lv VG Name ubuntu-vg LV UUID AfPl3K-h68d-KdwF-kZoB-QwR5-FKsQ-UMGjEW LV Write Access read/write LV Creation host, time ubuntu-server, 2021-01-17 12:36:16 +0000 LV Status available # open 1 LV Size <8.50 GiB Current LE 2175 Segments 1 Allocation inherit Read ahead sectors auto - currently set to 256 Block device 253:0
vgdisplay
returnsCode:
glen@kira:~$ sudo vgdisplay --- Volume group --- VG Name ubuntu-vg System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 2 VG Access read/write VG Status resizable MAX LV 0 Cur LV 1 Open LV 1 Max PV 0 Cur PV 1 Act PV 1 VG Size <8.50 GiB PE Size 4.00 MiB Total PE 2175 Alloc PE / Size 2175 / <8.50 GiB Free PE / Size 0 / 0 VG UUID FHMg3Q-cJS9-TB5N-ReEw-hOF8-hs1a-vzmTUD
I am unsure how to increase the volume to take up more space.
I tried
sudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lv
but that said there was nothing to do.Can anyone help me increase the volume to take up all 500GB of space.?