VM Backup

Andrei Egi

New Member
Oct 22, 2018
8
0
1
49
Hello, I'm trying to make a manual backup to a VM by copying the config file and the disks to another location.
When I restore and try to copy the disk image back to /dev/pve I get "disk is full" error even if I have over 700 Gb free, can you please help me with this problem?Thank you
 
Why you doesn't use the backup and restore feature? At a restore you can choose a new storage path.

Regarding the manual copy, maybe you copy the file to the disk? (/dev/pve) and not to the partition, volume at the disk?

Greetings
 
Hi,
in order to help you we need a bit more information. Can you provide the output of:
Code:
df -h
cat /etc/pve/storage.cfg
lvs; pvs; vgs

How exactly do you copy the disk image? What storage backend do you use, what image format?
Also as @Duckdave stated correctly, why not use the tools PVE provides?
 
Hello, just trying to understand a little bit better how Proxmox works, where are the key vm files stored, and how to manually back-up and restore them from another location like a NAS.
I'm also new to LVM and I think here is the problem, please check the information below
Basically when I tried to restore the disk file (root@pve:/sftp/data/vm_108_bk/vm-108-disk-0, raw disk image) to /dev/pve (here was initially) I get the disk is full error.


Code:
root@pve:/home/andrei# df -h
Filesystem            Size  Used Avail Use% Mounted on
udev                   12G     0   12G   0% /dev
tmpfs                 2.4G  9.0M  2.4G   1% /run
/dev/mapper/pve-root   94G   54G   36G  61% /
tmpfs                  12G   25M   12G   1% /dev/shm
tmpfs                 5.0M     0  5.0M   0% /run/lock
tmpfs                  12G     0   12G   0% /sys/fs/cgroup
/dev/sdb1             440G   56G  362G  14% /mnt/disk2
/dev/sdd1             3.6T  975G  2.5T  28% /mnt/disk4
/dev/sdc1             3.6T   89M  3.4T   1% /mnt/disk3
/dev/fuse              30M   20K   30M   1% /etc/pve


Code:
root@pve:/home/andrei# cat /etc/pve/storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,backup,iso

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

dir: disk2
        path /mnt/disk2
        content images
        shared 0

dir: disk4
        path /mnt/disk4
        content images
        shared 0

dir: disk3
        path /mnt/disk3
        content images
        shared 0


Code:
root@pve:/home/andrei# lvs
  LV            VG  Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  data          pve twi-aotz-- 795.77g             0.00   0.04
  root          pve -wi-ao----  96.00g
  swap          pve -wi-ao----   7.00g
  vm-115-disk-0 pve Vwi-a-tz--  16.00g data        0.00
  vm-115-disk-1 pve Vwi-a-tz--  32.00g data        0.00

root@pve:/home/andrei# pvs
  PV         VG  Fmt  Attr PSize   PFree
  /dev/sda3  pve lvm2 a--  931.01g 16.00g

root@pve:/home/andrei# vgs
  VG  #PV #LV #SN Attr   VSize   VFree
  pve   1   5   0 wz--n- 931.01g 16.00g