Hello,

I used bacula for a few years and decided to go for bareos for tape backup.
So I did upgrade of OS to Centos 7 - uname -> 3.10.0-229.14.1.el7.x86_64,
bareos-dir, bareos-fd, bareos-sd 15.2.1.

It has 'ULTRIUM-HH4' tape drive.

With bacula I've got error that after several e-mail of changing tape it 
blocked tape inside drive. Without reboot it was impossible to unmount and 
eject tape.

So for that problem I wrote script wrapper for operator mail. Instead of 
sendind mail directly it executes a script that:
- reading mail content, sending it,
- unmount and ejecting tape.
   #!/bin/sh
   j=$1
   shift
   recipent=$1
   shift
   readPipe(){
           while read i; do echo $i; done
   }
   readPipe | mail -r [email protected] -s "Change tape for $j" $recipent
   bconsole -c /etc/bareos/bconsole.conf << EOF
   unmount
   EOF
   mt -f /dev/st0 eject

After bareos upgrade I've got problem that bareos won't automatically mount 
tape after inserting into tape drive.
I've got error:
   08-lis 16:54 backup-sd JobId 64: Warning: mount.c:247 Open device "LTO-4" 
(/dev/st0) Volume "K05" failed:│ ERR=generic_tape_device.c:140 Unable to open 
device "LTO-4" (/dev/st0): ERR=Input/Output error.

I have to go into bconsole, execute mount command and everything goes well.

Can you help me solving that problem?
Thanks in advance!
-- 
----
*TBHydro*
ul. Czernika 4, 60-194 Poznań, PL.
tel. +48 618679314
fax.+48 618679315
[email protected]

<http://tbhyd.ro/tbhydro>  <https://plus.google.com/+TBHydroPLValves>

-- 
You received this message because you are subscribed to the Google Groups 
"bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to