Bacula-users

[Bacula-users] bpipe Error closing for file what is wrong?

2017-04-28 08:22:35
Subject: [Bacula-users] bpipe Error closing for file what is wrong?
From: Tomasz Bialek <t.bialek AT mcd.com DOT pl>
To: "bacula-users AT lists.sourceforge DOT net" <bacula-users AT lists.sourceforge DOT net>
Date: Fri, 28 Apr 2017 14:05:27 +0200
First time I would like to say
hallo
 
I have a problem with the bpipe (configuration?).
 
I want to run a virtual machine backup like in the example by Heitor 
but I have an error:
xen7test-fd JobId 117: Error: bpipe-fd: Error closing for file /var/tmp/Odoo_8.xva: 268435457
 
I can see that the image was created and nothing else is happen
 
All the paths are there (/var/tmp and /mnt) and I think I've done everything in the right way with the instructions.
 
I attach configuration and log
 
I am using Xen 7.0 (Centos 7) and bacula 7.4.7 and LTO-6 ultrium
 
On the client:
1. /etc/bacula/bacula-fd.conf
 

FileDaemon { 

Name = xen7test-fd

FDport = 9102 # where we listen for the director

WorkingDirectory = /var/lib/bacula

Pid Directory = /var/run

Maximum Concurrent Jobs = 20

Plugin Directory = /usr/lib64

}

 
2. /etc/init.d/bacula-fd
 

#! /bin/sh

#

# Copyright (C) 2000-2015 Kern Sibbald

# License: BSD 2-Clause; see file LICENSE-FOSS

#

# bacula This shell script takes care of starting and stopping

# the bacula File daemon.

#

# chkconfig: 2345 91 9

# description: The Leading Open Source Backup Solution.

#

# For Bacula release 7.4.6 (10 March 2017) -- redhat

#

# Source function library

. /etc/rc.d/init.d/functions

DAEMON_OPTIONS=''

DAEMON_USER='yes'

FD_USER=root

FD_GROUP=root

FD_OPTIONS=''

OS=`uname -s`

# if /lib/tls exists, force Bacula to use the glibc pthreads instead

if [ -d "/lib/tls" -a $OS = "Linux" -a `uname -r | cut -c1-3` = "2.4" ] ; then

export LD_ASSUME_KERNEL=2.4.19

fi

# pull in any user defined FD_OPTIONS, FD_USER, FD_GROUP

[ -f /etc/sysconfig/bacula ] && . /etc/sysconfig/bacula

#

# Disable Glibc malloc checks, it doesn't help and it keeps from getting

# good dumps

MALLOC_CHECK_=0

export MALLOC_CHECK_

RETVAL=0

case "$1" in

start)

if [ "${FD_USER}" != '' ]; then

FD_OPTIONS="${FD_OPTIONS} -u ${FD_USER}"

fi

if [ "${FD_GROUP}" != '' ]; then

FD_OPTIONS="${FD_OPTIONS} -g ${FD_GROUP}"

fi

if [ "${DAEMON_USER}" != '' -a "${FD_USER}" != '' ]; then

FD_OPTIONS=""

if [ "${FD_GROUP}" != '' ]; then

chown ${FD_USER}:${FD_GROUP} /var/lib/bacula/bacula-fd* 2> /dev/null

else

chown ${FD_USER} /var/lib/bacula/bacula-fd* 2> /dev/null

fi

DAEMON_OPTIONS="--user ${FD_USER}"

fi

echo -n "Starting Bacula File services: "

daemon ${DAEMON_OPTIONS} /usr/sbin/bacula-fd $2 ${FD_OPTIONS} -c /etc/bacula/bacula-fd.conf

RETVAL=$?

echo

[ $RETVAL -eq 0 ] && touch /var/lock/subsys/bacula-fd

;;

stop)

echo -n "Stopping Bacula File services: "

killproc /usr/sbin/bacula-fd

RETVAL=$?

echo

[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/bacula-fd

;;

restart)

$0 stop

sleep 5

$0 start

RETVAL=$?

;;

status)

status /usr/sbin/bacula-fd

RETVAL=$?

;;

*)

echo "Usage: $0 {start|stop|restart|status}"

exit 1

;;

esac

exit $RETVAL

 
3. On the director
#
FileSet {
Name = "xen7test-odoo8-fs"
Include {
Options { Signature = MD5 }
Plugin = "bpipe:/var/tmp/Odoo_8.xva:snapshot=`xe vm-snapshot uuid=1f3cfdde-e0fd-65e5-bea2-2a4a8e0abd0f new-name-label=Odoo_8_snps` && xe template-param-set is-a-template=false uuid=$snapshot
&& xe vm-export vm=$snapshot filename=:dd of=/mnt/Odoo_8.xva"}
}
#
 
4. Log file

deb-lto-dir JobId 117: End auto prune.
deb-lto-dir JobId 117: No Files found to prune.
deb-lto-dir JobId 117: Begin pruning Files.
deb-lto-dir JobId 117: No Jobs found to prune.
deb-lto-dir JobId 117: Begin pruning Jobs older than 1 year .
deb-lto-dir JobId 117: Bacula deb-lto-dir 7.4.7 (16Mar17):
  Build OS:               x86_64-unknown-linux-gnu debian 8.7
  JobId:                  117
  Job:                    XS7-job-odoo8.2017-04-27_14.10.00_09
  Backup Level:           Full
  Client:                 "xen7test-fd" 7.4.6 (10Mar17) x86_64-unknown-linux-gnu,redhat,
  FileSet:                "xen7test-odoo8-fs" 2017-04-27 14:10:00
  Pool:                   "Daily-Tape" (From Run Pool override)
  Catalog:                "MyCatalog" (From Client resource)
  Storage:                "LTO6-S" (From Pool resource)
  Scheduled time:         27-kwi-2017 14:10:00
  Start time:             27-kwi-2017 14:10:02
  End time:               27-kwi-2017 14:10:08
  Elapsed time:           6 secs
  Priority:               11
  FD Files Written:       1
  SD Files Written:       1
  FD Bytes Written:       186 (186 B)
  SD Bytes Written:       537 (537 B)
  Rate:                   0.0 KB/s
  Software Compression:   None
  Snapshot/VSS:           no
  Encryption:             no
  Accurate:               no
  Volume name(s):         days-1
  Volume Session Id:      33
  Volume Session Time:    1493038048
  Last Volume Bytes:      402,760,147,968 (402.7 GB)
  Non-fatal FD errors:    1
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK -- with warnings
deb-lto-sd JobId 117: Sending spooled attrs to the Director. Despooling 270 bytes ...
deb-lto-sd JobId 117: Elapsed time=00:00:04, Transfer rate=134  Bytes/second
deb-lto-sd JobId 117: Despooling elapsed time = 00:00:01, Transfer rate = 1.043 K Bytes/second
deb-lto-sd JobId 117: Committing spooled data to Volume "days-1". Despooling 1,043 bytes ...
xen7test-fd JobId 117: Error: bpipe-fd: Error closing for file /var/tmp/Odoo_8.xva: 268435457
deb-lto-sd JobId 117: Spooling data ...
deb-lto-dir JobId 117: Using Device "LTO6-D" to write.
deb-lto-dir JobId 117: Start Backup JobId 117, Job=XS7-job-odoo8.2017-04-27_14.10.00_09
 
Best regards
Tomasz
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Bacula-users] bpipe Error closing for file what is wrong?, Tomasz Bialek <=