Feature request - not sure where to post

Josh North

New Member
Nov 27, 2013
6
0
1
Apologies, I'm not sure where to post this.

Feature request - labeling for backups.

I have about 60 guests running on a demo cluster of 5 hosts and everything is working ok for the most part. What I find a little confusing is the backup listing. Is there any way to attach a label or note to backups to denote what VM or CT it is. I am aware that the VMID or CTID is stored as part of the backup file name, but what I'm looking for is another column with either an auto-filled note including the friendly hostname of the machine, or even a manually-editable field that one can put notes in.

This would make it a little easier to see at a glance what is what.
 

in 2010 I mailed a patch to dietmar for that (not sure which pve version), but that feature never made into pve code.

patching 3 files, i added two new launch parameters for vzdump
--logwithname (prints also VM name in log file and backup files)
--logvmconfig (prints VM configuration in log file)

I still have my hacked code, would it be useful to upload it somewhere? although I assume vzdump changed alot, and some simple stuff like that should not too difficult to implement, if even I made it :-D

here is what backup logs looked like, using the second argument

Code:
openvz case:

Jun 15 17:01:50 INFO: Starting Backup of VM 121 (openvz)
Jun 15 17:01:50 INFO: CTID 121 exist unmounted down
Jun 15 17:01:50 INFO: status = CTID 121 exist unmounted down
Jun 15 17:01:50 INFO: backup mode: stop
Jun 15 17:01:50 INFO: bandwidth limit: 10240 KB/s
Jun 15 17:01:50 INFO: creating archive '/mnt/pve/vm_backup/pvetest/vzdumptest/vzdump-openvz-121-openvztest.domain.it-2010_06_15-17_01_50.tgz'
Jun 15 17:02:17 INFO: Total bytes written: 310671360 (297MiB, 12MiB/s)
Jun 15 17:02:27 INFO: archive file size: 114MB
Jun 15 17:02:27 INFO: vmconfig:
Jun 15 17:02:27 INFO: ========
Jun 15 17:02:27 INFO:  dumpdir=/mnt/pve/vm_backup/pvetest/vzdumptest
Jun 15 17:02:27 INFO:  disksize=0
Jun 15 17:02:27 INFO:  ostemplate=ubuntu-8.04-standard_8.04-3_i386
Jun 15 17:02:27 INFO:  hostname=openvztest.domain.it
Jun 15 17:02:27 INFO:  description=test openvz
Jun 15 17:02:27 INFO:  snapdir=/var/lib/vz/private/121
Jun 15 17:02:27 INFO:  nameserver=192.168.3.252
Jun 15 17:02:27 INFO:  disktype=none
Jun 15 17:02:27 INFO:  searchdomain=domain.it
Jun 15 17:02:27 INFO:  onboot=no
Jun 15 17:02:27 INFO:  ip_address=127.0.0.1
Jun 15 17:02:27 INFO:  cpus=2
Jun 15 17:02:27 INFO: Finished Backup of VM 121 (00:00:37)


kvm case: 
Jun 15 17:33:23 INFO: Starting Backup of VM 120 (qemu)
Jun 15 17:33:23 INFO: stopped
Jun 15 17:33:23 INFO: status = stopped
Jun 15 17:33:24 INFO: backup mode: stop
Jun 15 17:33:24 INFO: bandwidth limit: 10240 KB/s
Jun 15 17:33:24 INFO: creating archive '/mnt/pve/vm_backup/pvetest/vzdumptest/vzdump-qemu-120-vzdumptest-2010_06_15-17_33_23.tgz'
Jun 15 17:33:24 INFO: adding '/mnt/pve/vm_backup/pvetest/vzdumptest/vzdump-qemu-120-vzdumptest-2010_06_15-17_33_23.tmp/qemu-server.conf' to archive ('qemu-server.conf')
Jun 15 17:33:24 INFO: adding '/var/lib/vz/images/120/vm-120-disk-1.raw' to archive ('vm-disk-ide0.raw')
Jun 15 17:33:26 INFO: Total bytes written: 2560 (0.00 MiB/s)
Jun 15 17:33:26 INFO: archive file size: 0KB
Jun 15 17:33:26 INFO: vmconfig:
Jun 15 17:33:26 INFO: ========
Jun 15 17:33:26 INFO:  disksize=1
Jun 15 17:33:26 INFO:  ide2=cdrom,media=cdrom
Jun 15 17:33:26 INFO:  name=vzdumptest
Jun 15 17:33:26 INFO:  vlan0=rtl8139=CA:E7:79:98:2E:A5
Jun 15 17:33:26 INFO:  description=test machine
Jun 15 17:33:26 INFO:  bootdisk=ide0
Jun 15 17:33:26 INFO:  cores=1
Jun 15 17:33:26 INFO:  ostype=w2k3
Jun 15 17:33:26 INFO:  ide0=local:120/vm-120-disk-1.raw
Jun 15 17:33:26 INFO:  disktype=ide
Jun 15 17:33:26 INFO:  memory=512
Jun 15 17:33:26 INFO:  diskinfo:
Jun 15 17:33:26 INFO:    ide0:
Jun 15 17:33:26 INFO:      index=0
Jun 15 17:33:26 INFO:      disksize=1
Jun 15 17:33:26 INFO:      file=local:120/vm-120-disk-1.raw
Jun 15 17:33:26 INFO:      interface=ide
Jun 15 17:33:26 INFO:    ide2:
Jun 15 17:33:26 INFO:      index=2
Jun 15 17:33:26 INFO:      disksize=0
Jun 15 17:33:26 INFO:      media=cdrom
Jun 15 17:33:26 INFO:      file=cdrom
Jun 15 17:33:26 INFO:      interface=ide
Jun 15 17:33:26 INFO:  sockets=1
Jun 15 17:33:26 INFO:  onboot=0
Jun 15 17:33:26 INFO: Finished Backup of VM 120 (00:00:03)


Marco