Increase size of Proxmox VE 1.8 Backup folder

bimbo

Member
Jul 9, 2011
13
0
21
I want to make a backup of a KVM VM to migrate to Proxmox 2.0.

The problem is that every time I create a Directory Storage folder the size is limited to 10% of disk space independent of the folder used.

How or where do I change this limit?

Regards

David
 
the size is determined by the size of the partition.

pls post:

Code:
df -h

and the path you use.
 
I see.... so i must change the pve-root

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/pve-root   95G  9.4G   81G  11% /
tmpfs                  12G     0   12G   0% /lib/init/rw
udev                   10M  620K  9.4M   7% /dev
tmpfs                  12G     0   12G   0% /dev/shm
/dev/mapper/pve-data  811G  266G  545G  33% /var/lib/vz
/dev/sda1             504M   32M  447M   7% /boot


How can I do it safely

Regards

David
 
I see.... so i must change the pve-root

Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/pve-root   95G  9.4G   81G  11% /
tmpfs                  12G     0   12G   0% /lib/init/rw
udev                   10M  620K  9.4M   7% /dev
tmpfs                  12G     0   12G   0% /dev/shm
/dev/mapper/pve-data  811G  266G  545G  33% /var/lib/vz
/dev/sda1             504M   32M  447M   7% /boot


How can I do it safely

Regards

David

total size is 95 GB, currently you use 9,4 GB and 81 GB is free.

11 % is used, 89 % is free.

hope its clearer now.
 
Tom you are right...the problem is when I do the backup of a KVM Image I get an error of insufficient disk space.

Another doubt that I have is on the difference between pve-root and pve-data what is used on what, how pve-root is smaller that pve-data...

Regards

David
 
pve-data is mounted on /var/lib/vz

that means, all directories under /var/lib/vz are there. Its (mainly) used for containers and VM´s.
 
For the interest of the audience

pve-root=20G
pve-data=100G


I found a way (not risk free!!!!! So use at your own risk!!!)

Say you have
pve-root=20G
pve-data=100G

and you want
pve-root=60G
pve-data=60G

1st check if usage of pve-data is >60GB

if not we can proceed!!!

Code:
umount /var/lib/vz
unmount filesystem

Code:
e2fsck -f /dev/mapper/pve-data
Check the filesystem

Code:
resize2fs /dev/mapper/pve-data 60G
Resize the volume to 60G

Code:
lvreduce -L-40G /dev/mapper/pve-data
To reduce the logical volume pve-data with 40GB (100 – 60 = 40 GB)

Code:
mount /var/lib/vz
To remount the file system mounted on /var/lib/vz


Now pve-root

Code:
lvextend -l+100%FREE /dev/mapper/pve-root
Extend to 100% free space

Code:
resize2fs /dev/mapper/pve-root
Resize the filesystem

now df -h should shown the new sizes

Thanks all
 

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!