Need help increasing storage space.

Jackster

Verified User
Joined
Jul 15, 2011
Messages
25
Running a VM with DA on it and am trying to increase the storage space for my ever-growing amount of data.

I have doubled my 64GB disk in Proxmox and have used the new 64GB with cfdisk to extend "/dev/sda3".
What I am having trouble with is now giving that space to the / filesystem.

1613325764241.png

What do I do now?
 
I am not an proxmox user but an VMware ESXi and VirtualBox user.

Is there a good reason to add an "new disk" to the VM in your use case?
Because what I would normally do (And recommend) is: just create an VM with enough storage space for the future.
And if for whatever reason I need to, I just extend the max storage of the VM so that the current VM disk gets bigger instead of (In reality) trying to create an software raid 0. (That also has its own safety concerns.)
 
I am not an proxmox user but an VMware ESXi and VirtualBox user.

Is there a good reason to add an "new disk" to the VM in your use case?
Because what I would normally do (And recommend) is: just create an VM with enough storage space for the future.
And if for whatever reason I need to, I just extend the max storage of the VM so that the current VM disk gets bigger instead of (In reality) trying to create an software raid 0. (That also has its own safety concerns.)
Only have around 400GB and knew that we would need storage elsewhere. Did not anticipate needing it on our webserver but as you can see, only have <1GB left. So only gave it 64GB originally but yea now we need more.
 
boot at rescue
run gparted
extend partition
save
run resize2fs
I already did the gparted bit. Not sure how to do the resize2fs part though.



Code:
root@da:/home/admin# fdisk -l /dev/sda  | grep ^/dev
/dev/sda1     2048      4095      2048    1M BIOS boot
/dev/sda2     4096   2101247   2097152    1G Linux filesystem
/dev/sda3  2101248 270532574 268431327  128G Linux filesystem





Code:
root@da:/home/admin# df -h
Filesystem                         Size  Used Avail Use% Mounted on
udev                               2.9G     0  2.9G   0% /dev
tmpfs                              592M  1.1M  591M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv   31G   29G  927M  97% /
tmpfs                              2.9G     0  2.9G   0% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              2.9G     0  2.9G   0% /sys/fs/cgroup
/dev/sda2                          976M  292M  618M  33% /boot
/dev/loop1                          70M   70M     0 100% /snap/lxd/19188
/dev/loop0                          56M   56M     0 100% /snap/core18/1988
/dev/loop2                          56M   56M     0 100% /snap/core18/1944
/dev/loop3                          32M   32M     0 100% /snap/snapd/10707
/dev/loop5                          32M   32M     0 100% /snap/snapd/11036
/dev/loop4                          70M   70M     0 100% /snap/lxd/19032
tmpfs                              592M     0  592M   0% /run/user/1000


This did it
 
oh, it's lvm, so:
pvresize
vgextend
lvextend -l +100%FREE
resize2fs
----
I don't have EN version, only RU manual:
--
in my case I have only last part screen http://joxi.ru/L21G8o4i0q0z8r
 
Back
Top