How Can backup two VMs in a job at a time?

283 views
Skip to first unread message

George Grey

unread,
May 10, 2016, 5:14:54 AM5/10/16
to bareos-users
Hello
Recently I'm trying to backup the two VMs at a time, but I get the following error :

10-May 16:59 kvm-dir JobId 58: Start Backup JobId 58, Job=vm-centos.2016-05-10_16.59.53_23
10-May 16:59 kvm-dir JobId 58: Using Device "FileStorage" to write.
10-May 16:59 kvm-sd JobId 58: Volume "Incremental-0014" previously written, moving to end of data.
10-May 16:59 kvm-sd JobId 58: Ready to append to end of Volume "Incremental-0014" size=221864922
10-May 16:59 kvm-fd JobId 58: Fatal error: Traceback (most recent call last):
File "/usr/lib64/bareos/plugins/BareosFdWrapper.py", line 42, in start_backup_file
return bareos_fd_plugin_object.start_backup_file(context, savepkt)
File "/usr/lib64/bareos/plugins/vmware_plugin/BareosFdPluginVMware.py", line 134, in start_backup_file
self.vadp.disk_device_to_backup = self.vadp.disk_devices.pop(0)
AttributeError: 'NoneType' object has no attribute 'pop'

10-May 16:59 kvm-fd JobId 58: Warning: No snapshot was taken, skipping snapshot removal
10-May 16:59 kvm-sd JobId 58: Elapsed time=00:00:01, Transfer rate=0 Bytes/second
10-May 16:59 kvm-dir JobId 58: Error: Bareos kvm-dir 15.2.2 (16Nov15):
Build OS: x86_64-redhat-linux-gnu redhat CentOS Linux release 7.0.1406 (Core)
JobId: 58
Job: vm-centos.2016-05-10_16.59.53_23
Backup Level: Full
Client: "kvm-fd" 15.2.2 (16Nov15) x86_64-redhat-linux-gnu,redhat,CentOS Linux release 7.0.1406 (Core) ,CentOS_7,x86_64
FileSet: "vm-centos-fileset" 2016-05-10 14:21:59
Pool: "Incremental" (From Job FullPool override)
Catalog: "MyCatalog" (From Client resource)
Storage: "File" (From Job resource)
Scheduled time: 10-May-2016 16:59:40
Start time: 10-May-2016 16:59:55
End time: 10-May-2016 16:59:56
Elapsed time: 1 sec
Priority: 10
FD Files Written: 0
SD Files Written: 0
FD Bytes Written: 0 (0 B)
SD Bytes Written: 0 (0 B)
Rate: 0.0 KB/s
Software Compression: None
VSS: no
Encryption: no
Accurate: no
Volume name(s):
Volume Session Id: 12
Volume Session Time: 1462842573
Last Volume Bytes: 0 (0 B)
Non-fatal FD errors: 1
SD Errors: 0
FD termination status: Fatal Error
SD termination status: Canceled
Termination: *** Backup Error ***

here is the fileset in the bareos-dir.conf :

FileSet {
Name = "vm-centos-fileset"
Include {
Options {
signature = MD5
}
Plugin = "python:module_path=/usr/lib64/bareos/plugins/vmware_plugin:module_name=bareos-fd-vmware:vcserver=192.168.1.100:dc=datacenter1:folder=/:vmname=centos67:vcuser=admini...@vsphere.local:vcpass=P@ssw0rd_100"

Plugin = "python:module_path=/usr/lib64/bareos/plugins/vmware_plugin:module_name=bareos-fd-vmware:vcserver=192.168.1.100:dc=datacenter1:folder=/:vmname=centos72:vcuser=admini...@vsphere.local:vcpass=P@ssw0rd_100"
}
}

But when I backup one vm in the fileset, it works good, how Can I backup two virtual machines in a job at a time?

the Bareos version 15.2.2 and the vSphere server 6.0.


regards,
George

Stephan Dühr

unread,
May 10, 2016, 3:37:16 PM5/10/16
to bareos...@googlegroups.com
Hello,

interesting idea to add multiple plugin definitions in a fileset, never
tried that. However, it should work fine if you define one Job and one
FileSet with a single plugin definition for each VM.

Regards

Stephan
--
Stephan Dühr stepha...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-90
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: S. Dühr, M. Außendorf,
J. Steffens, Philipp Storz, M. v. Wieringen
Message has been deleted

George Grey

unread,
May 10, 2016, 9:03:27 PM5/10/16
to bareos-users
yes, it works good when define a single plugin definition in one fileset, but there are 50+ vms, how can do it better.

Philipp Storz

unread,
May 11, 2016, 8:15:13 AM5/11/16
to bareos...@googlegroups.com
Hello George,
On 11.05.2016 03:03, George Grey wrote:
> yes, it works good when define a single plugin definition in one fileset, but there are 50+ vms, how can do it better.

This looks like you are using bareos in a production environment.

You might want to consider to buy subscription and support,
which will help us to improve the product.

This will of course also enable us to work on your problem much faster.


--
Mit freundlichen Grüßen

Philipp Storz philip...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 63 06 93-92
http://www.bareos.com Fax: +49 221 63 06 93-10

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Geschäftsführer: Stephan Dühr, M. Außendorf,
J. Steffens, P. Storz, M. v. Wieringen
Reply all
Reply to author
Forward
0 new messages