[SOLVED] Where is my free space?

waskaforum

New Member
May 30, 2024
4
0
1
Hello

I'm moving a 1TB copy of a VM to a new server that has 7TB free but I get an error "not enough space". What am I doing wrong?

df -H in new server

Code:
root@srv105:/mnt# df -H
Filesystem            Size  Used Avail Use% Mounted on
udev                   51G     0   51G   0% /dev
tmpfs                  11G  1.7M   11G   1% /run
/dev/mapper/pve-root  101G  3.8G   92G   4% /
tmpfs                  51G   42M   51G   1% /dev/shm
tmpfs                 5.3M     0  5.3M   0% /run/lock
/dev/fuse             135M   21k  135M   1% /etc/pve
tmpfs                  11G     0   11G   0% /run/user/0
/dev/sdb1             3.0T  1.1T  1.8T  38% /mnt/sdb


Disks in new Proxmox
Знімок екрана 2024-05-30 114930.png

Знімок екрана 2024-05-30 115333.png
 
Last edited:
Hello

I'm moving a 1TB copy of a VM to a new server that has 7TB free but I get an error "not enough space". What am I doing wrong?

df -H in new server

Code:
root@srv105:/mnt# df -H
Filesystem            Size  Used Avail Use% Mounted on
udev                   51G     0   51G   0% /dev
tmpfs                  11G  1.7M   11G   1% /run
/dev/mapper/pve-root  101G  3.8G   92G   4% /
tmpfs                  51G   42M   51G   1% /dev/shm
tmpfs                 5.3M     0  5.3M   0% /run/lock
/dev/fuse             135M   21k  135M   1% /etc/pve
tmpfs                  11G     0   11G   0% /run/user/0
/dev/sdb1             3.0T  1.1T  1.8T  38% /mnt/sdb


Disks in new Proxmox
View attachment 68991

View attachment 68992
Hi, how are you moving the data? From where to where? Note that you have a LVM, so the root filesystem only has:
/dev/mapper/pve-root 101G 3.8G 92G 4% /
 
lvcreate -n vz1 -V 2TB /dev/sda3
NO - not like that.

Like this (I believe based on your output above):
Code:
#Create addidtional LV
lvcreate -n vz1 -V 2TB /pve/data

#Then format the LV to ext4
mkfs.ext4 /dev/pve/vz1

#Then you need to mount it (temporary) or add to fstab (permanently), so maybe:
mkdir /var/lib/vz/vz1
echo '/dev/pve/vz1 /var/lib/vz/vz1 ext4 defaults 0 2' >> /etc/fstab

Then you can add in GUI under Datacenter, Storage, Add, Directory a new Storage using
the Directory /var/lib/vz/vz1 , set the Content type to include all types you require & you should be good to go.


EDIT: Make sure you have full & restorable backups before doing anything!
 
Last edited:
  • Like
Reactions: waskaforum
One more thing, you really should make sure always you have backups that are at least stored on another physical disk - not the running PVE OS disk.
 
Thank you! It worked!

NO - not like that.

Like this (I believe based on your output above):
Code:
#Create addidtional LV
lvcreate -n vz1 -V 2TB /pve/data

#Then format the LV to ext4
mkfs.ext4 /dev/pve/vz1

#Then you need to mount it (temporary) or add to fstab (permanently), so maybe:
mkdir /var/lib/vz/vz1
echo '/dev/pve/vz1 /var/lib/vz/vz1 ext4 defaults 0 2' >> /etc/fstab

Then you can add in GUI under Datacenter, Storage, Add, Directory a new Storage using
the Directory /var/lib/vz/vz1 , set the Content type to include all types you require & you should be good to go.


EDIT: Make sure you have full & restorable backups before doing anything!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!