error bpipe closing stream - when run a restore of a VM with bacula and ghetto

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error bpipe closing stream - when run a restore of a VM with bacula and ghetto

marceamx
I have a problem with the bpipe to run a restore of a vitual machine on a Esx with bacula and ghetto.
The virtual machine backup run ok, but when I want to restore to other esx (clone) I have an error in logs, and the job does not end.
Could you suggest me how troubleshoot ?

The client in the restore job (EsxA) is ignored ?  only the IP (for EsxB) in the bpipe (fileset) it's taken ?

Logs:

Run Restore job
JobName:         Res-VM-SrvMon
Bootstrap:       /var/lib/bacula/bacula-dir.restore.6.bsr
Where:           /restore
Replace:         always
FileSet:         Fs-VM-SrvMon
Backup Client:   Srv-EsxA
Restore Client:  Srv-EsxA
Storage:         Storage1
When:            2017-07-11 12:23:23
Catalog:         MyCatalog
Priority:        10
OK to run? (yes/mod/no): yes
Job queued. JobId=313
11-jul 12:23 bacula-dir JobId 313: Start Restore Job Res-VM-SrvMon.2017-07-11_12.23.26_42
11-jul 12:23 bacula-dir JobId 313: Using Device "FileStorage1" to read.
11-jul 12:23 bacula-sd JobId 313: Ready to read from volume "FullNas03-0304" on file device "FileStorage1" (/mnt/omvnas03).
11-jul 12:23 bacula-sd JobId 313: Forward spacing Volume "FullNas03-0304" to file:block 0:203.
11-jul 12:23 bacula-fd JobId 313: Error: restore.c:1502 Wrong write size error at 0 block=0 wanted=65536 wrote=8192
11-jul 12:23 bacula-fd JobId 313: Error: bpipe-fd: Error closing stream for pseudo file /mnt/fifo/bkp-srvmon.tar: exit 2

Settings:

Bacula Server: 192.168.17.1
Esx A: 192.168.17.3
Virtual Machine:  srv-mon in A
Esx B: 192.168.17.8


Job {
 Name = "Bkp-VM-SrvMon"
 JobDefs = "DefaultJob"
 Client = Srv-EsxA
 FileSet = Fs-VM-SrvMon
 ClientRunBeforeJob = "sshpass -p 'pass' ssh -o StrictHostKeyChecking=no root@192.168.17.3 /ghettoVCB-master/ghettoVCB.sh -g /ghettoVCB-master/ghettoVCB.conf -m srv-mon"
 ClientRunAfterJob = "sshpass -p 'pass' ssh -o StrictHostKeyChecking=no root@192.168.17.3 rm -rf /vmfs/volumes/datastore1/backup/srv-mon"
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
}

FileSet {
 Name = "Fs-VM-SrvMon"
Include {
Options {
signature = MD5
#Compression = GZIP1
}
Plugin = "bpipe:/mnt/fifo/bkp-srvmon.tar:sshpass -p 'pass' ssh -o StrictHostKeyChecking=no root@192.168.17.3 /bin/tar -cf - /vmfs/volumes/datastore1/backup/srv-mon:sshpass -p 'pass' ssh -o StrictHostKeyChecking=no root@192.168.17.8 /bin/tar -C /vmfs/volumes/datastore1/restore -xvf -"
}
}

Job {
  Name = "Res-VM-SrvMon"
  JobDefs = "RestoreFiles"
  Client = Srv-EsxA
  FileSet = "Fs-VM-SrvMon"
  Where = "/restore"
  Pool = Full-Nas03
}

Loading...