[SOLVED] Scheduled Backup Fail

bogo22

Well-Known Member
Nov 4, 2016
54
6
48
Hello, I have a problem with the scheduled backup:

I always get this error message:
TASK ERROR: could not get storage information for 'vzdump_HDD': storage 'vzdump_HDD' does not exists

What I've done:
  • Create new storage at datacenter level (Add->directory) with
    • id: vzdump_HDD
    • dir: /my-zfs-pool/my-dataset-for-vzdump
    • content: select only "vzdump backup file"
    • node: proxmox (only 1 node)
    • enable: yes
  • At datacenter level add a schedule backup for one CT
    • node: proxmox
    • storage: vzdump_HDD
    • compression: always
    • mode: stop
    • enable: yes
  • Related crontab entry (/etc/cron.d/vzdump)
Code:
0 3 * * *           root vzdump 800 --mailnotification always --node proxmox --storage vzdump_HDD --compress lzo --mode stop --quiet 1
  • No modification in "/etc/vzdump.conf"
  • Backup CT / VM manually via GUI works fine

So for some reason vzdump can't find the storage 'vzdump_HHD' although it works fine if I manually backup the CT/VM. I could edit the cron entry and replace "--storage" with "--dumpdir" and the path to the zfs-dataset ... but that does not solve the real issue.

Thanks
 
Last edited:
Please can you post the content of /etc/pve/storage.cfg ?

Sure:

Code:
dir: local
        disable
        path /var/lib/vz
        content iso,vztmpl,backup
        maxfiles 1
        shared 0

dir: iso-rpool
        path /rpool/iso
        content iso
        maxfiles 1
        shared 0

dir: container_template-rpool
        path /rpool/container_template
        content vztmpl
        maxfiles 1
        shared 0

zfspool: vm-ct_SSD
        pool vm_pool
        blocksize 16k
        content images,rootdir
        sparse 1

dir: vzdump_HDD
        path /data_pool/vzdump
        content backup
        maxfiles 5
        nodes proxmox
        shared 0
 
Seems the storage is restricted to node name 'proxmox' - is that indented?

Yes respectively it doesn't matter for my (I only have one node).
I tried both (explicit setting the node on the "storage"- and "scheduled backup"-menu and not setting any node on both menus but I always get the error message above).

I also tried to add another/different "storage" on another zfs-dataset but no luck.
 
Strange, I cannot reproduce that. What is the output of

# pvesm status

Thanks for the help.. I think we getting closer... only the disabled "local" storage appears:

# pvesm status
Code:
root@proxmox:# pvesm status
ipcc_send_rec[1] failed: No such file or directory
ipcc_send_rec[2] failed: No such file or directory
ipcc_send_rec[3] failed: No such file or directory
Name         Type     Status           Total            Used       Available        %
local         dir     active        28491008         1676928        26814080    5.89%

# pvecm status
Code:
root@proxmox:/# pvecm status
ipcc_send_rec[1] failed: No such file or directory
ipcc_send_rec[2] failed: No such file or directory
ipcc_send_rec[3] failed: No such file or directory
Corosync config '/etc/pve/corosync.conf' does not exist - is this node part of a cluster?
Cannot initialize CMAP service

# pveversion -v
proxmox-ve: 5.1-38 (running kernel: 4.13.13-5-pve)
pve-manager: 5.1-43 (running version: 5.1-43/bdb08029)
pve-kernel-4.13.4-1-pve: 4.13.4-26
pve-kernel-4.10.17-2-pve: 4.10.17-20
pve-kernel-4.13.13-5-pve: 4.13.13-38
pve-kernel-4.10.17-3-pve: 4.10.17-23
libpve-http-server-perl: 2.0-8
lvm2: 2.02.168-pve6
corosync: 2.4.2-pve3
libqb0: 1.0.1-1
pve-cluster: 5.0-19
qemu-server: 5.0-20
pve-firmware: 2.0-3
libpve-common-perl: 5.0-25
libpve-guest-common-perl: 2.0-14
libpve-access-control: 5.0-7
libpve-storage-perl: 5.0-17
pve-libspice-server1: 0.12.8-3
vncterm: 1.5-3
pve-docs: 5.1-16
pve-qemu-kvm: 2.9.1-6
pve-container: 2.0-18
pve-firewall: 3.0-5
pve-ha-manager: 2.0-4
ksm-control-daemon: 1.2-2
glusterfs-client: 3.8.8-1
lxc-pve: 2.1.1-2
lxcfs: 2.0.8-1
criu: 2.11.1-1~bpo90
novnc-pve: 0.6-4
smartmontools: 6.5+svn4324-1
zfsutils-linux: 0.7.4-pve2~bpo9
 
Last edited:
I would reboot that server, then verify what services fails to start (syslog). Seems there are more things wrong on that server...
 
Just wanted to chime in and say I have obviously the same problem. It's a relatively fresh install of Proxmox VE from January and the backup storage is an NFS storage from my provider. I've already changed the storage.cfg from nfs version 3 to 4 to no avail.

If I execute the very same command written in the mail that failed because "could not get storage information for XYZ: storage XYZ is not online" manually in the shell it works flawlessly. Also triggering it manually via webGUI works flawlessly. It makes no sense to me that issuing the command by task is not working at all.
Is this related to enabling 2FA by any chance?

EDIT: Actually, why is this thread marked as SOLVED? What exactly was the problem?
EDIT2: One thing that is peculiar in my situation, though, is if I create a backup task for the very next possible timeframe, just for testing purposes, the backup task does work. If I set it to run in the night the above error happens. Is the backup task somehow tied to me being logged in?
 
Last edited:
Ok, so for anyone still struggling with this:
I found out that the cron backup SOMETIMES worked. Due to this inconsistency I came across this bit:

"""
So maybe is the timeout too short for your storage under load ?
Can you try to change it in file (at the end) :

/usr/share/perl5/PVE/Storage/NFSPlugin.pm

and restart

/etc/init.d/pvestatd restart
/etc/init.d/pvedaemon restart
"""

BINGO! Problem solved. I changed the timeout from 2 to 10. I don't understand this magic number at all. Who said 2 seconds is a good timeout value?
 

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!