[SOLVED] Backup via pool

czechsys

Renowned Member
Nov 18, 2015
419
43
93
Hi,

pve-manager/6.0-11/2140ef37 (running kernel: 5.0.21-5-pve), configs:

storage.cfg
Code:
dir: local-lvm-data
    path /mnt/pve/local-lvm-data
    content iso,backup
    maxfiles 1
    shared 0

user.cfg
Code:
pool:production:::data:

vzdump
Code:
0 1 * * *           root vzdump --mailto root@domain.tld --storage local-lvm-data --mailnotification always --pool production --compress lzo --mode snapshot --quiet 1

/etc/pve/qemu-server/100.conf
Code:
agent: 1
boot: cdn
bootdisk: scsi0
cores: 2
ide2: none,media=cdrom
memory: 4096
name: mail-01
net0: virtio=0A:09:D5:04:B6:00,bridge=vmbr0
numa: 1
onboot: 1
ostype: l26
protection: 1
scsi0: data:vm-100-disk-0,discard=on,size=10G
scsihw: virtio-scsi-pci
smbios1: uuid=413fa2c2-41f6-4e85-8423-4a2be61f6fb5
sockets: 1

daemon.log:
Code:
Nov 25 01:00:00 proxmox-01 systemd[1]: Starting Proxmox VE replication runner...
Nov 25 01:00:01 proxmox-01 systemd[1]: pvesr.service: Succeeded.
Nov 25 01:00:01 proxmox-01 systemd[1]: Started Proxmox VE replication runner.
Nov 25 01:01:00 proxmox-01 systemd[1]: Starting Proxmox VE replication runner...

Backups not started via "pool" method.
 
When i remove storage "data" from pool "production" configuration and add VM directly to this pool, VM is backuped.

Code:
Nov 26 11:15:01 proxmox-01 CRON[3278468]: (root) CMD (vzdump --mailnotification always --quiet 1 --pool production --mailto root@domain.tld --storage local-lvm-data --mode snapshot --compress lzo)
Nov 26 11:15:02 proxmox-01 vzdump[3278469]: <root@pam> starting task UPID:proxmox-01:0032068B:040F5993:5DDCFB26:vzdump:100:root@pam:
Nov 26 11:15:02 proxmox-01 vzdump[3278475]: INFO: starting new backup job: vzdump --mailto root@domain.tld --storage local-lvm-data --mode snapshot --quiet 1 --mailnotification always --compress lzo --pool production
Nov 26 11:15:02 proxmox-01 vzdump[3278475]: INFO: Starting Backup of VM 100 (qemu)
Nov 26 11:15:02 proxmox-01 qm[3278479]: <root@pam> update VM 100: -lock backup
Nov 26 11:15:28 proxmox-01 vzdump[3278475]: INFO: Finished Backup of VM 100 (00:00:26)
Nov 26 11:15:28 proxmox-01 vzdump[3278475]: INFO: Backup job finished successfully
Nov 26 11:15:28 proxmox-01 vzdump[3278469]: <root@pam> end task UPID:proxmox-01:0032068B:040F5993:5DDCFB26:vzdump:100:root@pam: OK

Switched again to storage "data" from VM directly:
Code:
Nov 26 11:30:01 proxmox-01 CRON[3286282]: (root) CMD (vzdump --compress lzo --mode snapshot --mailto root@domain.tld --storage local-lvm-data --pool production --quiet 1 --mailnotification always)
 
PVE wiki:
Code:
pool: <string>
Backup all known guest systems included in the specified pool.

Proxmox team? What's correct configuration for pool backup? Do i need add VMs into pool? Or it's bugged?
 
Hi,

of course you need to add your VM's to that pool, that's the idea. You create a pool and add VM's to it, if a backup job is configured for that pool it will backup all VM's in that pool. This has nothing to do with the storage in your pool.
 
OK, thanks, i will rather saw ability to not needing adding VMs to that pool, but can live with it.

[Solved]
 

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!