Re: [Bacula-users] [EXTERNAL] SAS HBA support on Linux

2019-10-21 Thread Clark, Patti via Bacula-users
Try the hardware compatibility list for the card on Redhat's website.  Second 
choice, the manufacturer's website.  The issue is the driver.

My question (rhetorical), why do you want to use an OS that is recently 
released and still bleeding for a backup server?  I understand upgrade 
headaches, but backup servers need to be rock solid.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 10/18/19, 8:28 PM, "William Muriithi"  wrote:

Hello,

Have any of you deployed RHEL 8/Centos 8 and would be willing to share what 
HBA card they are using?

Anyway, attempting to purchase HBA card and looking for a way to figure out 
what will work without having access to the tape library. Lets say that you 
don't have access to the tape device, but you have a server that have RHEL 8 
installed.  You plug in a SAS HBA card in the slot and bring it up and them on 
the console, you want to check if the card is supported by the operating system.

What would one check?   This is what I have done and not viable test 
without the storage system:

[root@eng-backup02 ~]# lsscsi -g
[0:2:0:0]diskDELL PERC H710P   3.13  /dev/sda   /dev/sg0 
[0:2:1:0]diskDELL PERC H710P   3.13  /dev/sdb   /dev/sg1 
[1:0:2:0]tapeIBM  ULTRIUM-HH6  E4J1  /dev/st0   /dev/sg2 
[1:0:2:1]mediumx QUANTUM  UHDL 0091  /dev/sch0  /dev/sg3

The /dev/sg2 and /dev/sg3 only show up with the tape library attached.   If 
I de-attach the tape, but leave the HBA card on the system, the device 
disappears.

I have also attempted this:

lspci -nn

The problem with this is even a HBA card that I know will not work when I 
attach the tape library is detected by the operating system and will be listed 
on lspci result.  So I can't ask someone remote to use that to separate 
supported to unsupported.  

So what else can one do the achieve this objective?

Regards,
William

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [EXTERNAL] Where adding heartbeat-intervall in client?

2019-09-13 Thread Clark, Patti via Bacula-users
The client definition on the server.

Client {
  Name = "myclient"
  Address = "myclient.example.com"
  AutoPrune = yes
  Catalog = "MyCatalog"
  FdPort = 9102
  FileRetention = 33696000
  HeartbeatInterval = 300
  JobRetention = 33696000
  MaximumConcurrentJobs = 4
  Password = "mypassword"
}

Patti
 

On 9/13/19, 5:41 AM, "DUCARROZ Birgit via Bacula-users" 
 wrote:

Hi list,

I get a "Fatal error: Network error with FD during Backup: 
ERR=Connection timed out" on a remote client.

googeling around tells me to add a Heartbeat Interval on the client, but 
I find not in which file I must do this.
Any help is appreciated!

Thank you,
Kind regards,
Birgit


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [EXTERNAL] Re: After restart Redhat Bacula-fd dont start

2019-08-29 Thread Clark, Patti via Bacula-users
While I don't think the merits of selinux should be the focus of this 
community, both Redhat and CentOS have the selinux policies for bacula.  If the 
user is required to run in enforcing mode, then he should apply the policies 
correctly.  This should fix the AVC errors.  SELinux is rather verbose these 
days and will tell you exactly what needs to be done.  I am having no issues 
running bacula client on an selinux enforcing mode RHEL 7 platform.

I find the earlier comment regarding systemd to also be correct, but I 
personally find systemd issues to be more onerous.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 8/29/19, 10:35 AM, "Josh Fisher"  wrote:


On 8/27/2019 2:04 PM, Phil Stracchino wrote:
> Fundamentally you have two options here:
>
> 1. You can create a selinux policy that allows Bacula to run;
> or
> 2. You can disable selinux, which truthfully most individual users (and
> many business uses) don't actually need.


Selinux basically implements a more fine-grained file permissions. I 
have never really run into any need for more than the standard 
User:Group:World level file permissions, but have tried to use selinux 
several times, simply because it is on by default in Centos. Each time 
it has stabbed me in the back and was disabled. The problem is that it 
often is difficult to establish that selinux is what is blocking access 
in the first place. IMO, it is an added complexity that simply isn't 
needed in most cases.




___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [EXTERNAL] Re: Bacula-FD - RedHat

2019-08-19 Thread Clark, Patti via Bacula-users
I highly disagree with the RHEL 8 suggestion.  You don't need to be fighting 
new release problems with an OS on a backup server that will require frequent 
patching and reboots.

As for Bacula community don't use the RHEL provided packages, they are way too 
old.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 8/16/19, 4:37 PM, "William Muriithi"  wrote:

Hello Maurizio,

If you are deploying on a new server, don't use RHEL 7.  Use RHEL 8.

It will allow you to yum install a more recent Bacula-fd.

Alternatively, you avoid RedHat provided rpm and use upstream RPM instead.

Regards,
William


From: Maurizio Caloro 
Sent: August 16, 2019 12:37 PM
To: bacula-users@lists.sourceforge.net
Subject: [Bacula-users] Bacula-FD - RedHat

Hello Together

Please i have here meny differnt older linux Server’s and the Backup Bacula 
Server are running Version 5.2.5.
I know this are outdated. But i need to install Bacula-fd to this new Red 
Hat Enterprise Linux Server release 7.7 (Maipo)

Please can are possible you can give me the possibilities so that i install 
the FD Deamon to communication with Bacula 5.2.5 ?

On me envirement i have older Linux Version that dont support any newer 
Bacula-FD Version.

Thanks and best regards
M



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [EXTERNAL] Bacula fails with Blocked Drive.

2019-07-10 Thread Clark, Patti via Bacula-users
Sometimes I’ve had a BLOCKED device it has been due to a race condition in 
Bacula between 2 jobs requesting different media for the same drive.  Usually 
it can be corrected by canceling one of the jobs.  Other times it is due to a 
“failed” job that is not cleaned up completely leaving a reservation on a 
device.  There is no job to cancel, but the status on your autochanger will 
show its presence.  The only solution that I’ve found in this case is to stop 
the bacula-sd process that manages the devices in question.  A total pain if 
you have any jobs running.  Anyway, it releases the reservation and the 
bacula-sd process can be restarted and the device is now available.  Absolute 
worst case scenario is to reboot the storage server.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

From: Jeffrey DiDomenico 
Date: Wednesday, July 10, 2019 at 4:48 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [EXTERNAL] [Bacula-users] Bacula fails with Blocked Drive.

Hi,

I know you guys are volunteers but any help would be greatly appreciated.

Please help me with the following problem. I have been working on this for some 
time but can't find a solution on the internet. I can understand if "Device is 
BLOCKED waiting for mount of volume" can mean several issues but here are all 
the details.


OS: CentOS Linux release 7.6.1810 (Core)
Bacula Version: 5.2.13
Problem: No backups will start as the drive is always blocked. The bacula 
environment was running fine, and had been for years, then just stopped one 
day, no config was changed.

Device "IBM0" (/dev/tape/by-id/scsi-35001438016019fad) open but no Bacula 
volume is currently mounted.
Device is BLOCKED waiting for mount of volume "IPR962L5",
   Pool:Default
   Media type:  LTO5
Slot 10 is loaded in drive 0.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0
Tape Drive: The tape library is a HP MSL 4048 with two HP Ultrium 5-SCSI drives 
attached to a Supermicro server. I had a HP engineer swap the drives out and 
the problem still persisted.

btape test: On the following website  
https://www.bacula.org/5.2.x-manuals/en/problems/problems/Testing_Your_Tape_Drive.html
 I reach point 5 successfully but the btape fill command fails with the 
following, this is after making sure there is a tape in the drive:

[root@union ~]# btape -c bacula-sd.conf /dev/tape/by-id/scsi-35001438016019fb0
Tape block granularity is 1024 bytes.
btape: butil.c:290-0 Using device: "/dev/tape/by-id/scsi-35001438016019fb0" for 
writing.
btape: btape.c:477-0 open device "IBM1" 
(/dev/tape/by-id/scsi-35001438016019fb0): OK
*fill

This command simulates Bacula writing to a tape.
It requires either one or two blank tapes, which it
will label and write.

If you have an autochanger configured, it will use
the tapes that are in slots 1 and 2, otherwise, you will
be prompted to insert the tapes when necessary.

It will print a status approximately
every 322 MB, and write an EOF every 53.68 G.  If you have
selected the simple test option, after writing the first tape
it will rewind it and re-read the last block written.

If you have selected the multiple tape test, when the first tape
fills, it will ask for a second, and after writing a few more
blocks, it will stop.  Then it will begin re-reading the
two tapes.

This may take a long time -- hours! ...

Do you want to run the simplified test (s) with one tape
or the complete multiple tape (m) test: (s/m) m
Multiple tape test selected.
02-Jul 16:26 btape JobId 0: 3307 Issuing autochanger "unload slot 10, drive 1" 
command.
02-Jul 16:27 btape JobId 0: 3304 Issuing autochanger "load slot 1, drive 1" 
command.
02-Jul 16:32 btape JobId 0: Fatal error: 3992 Bad autochanger "load slot 1, 
drive 1": ERR=Child died from signal 15: Termination.
Results=Program killed by Bacula (timeout)

btape: btape.c:3074-0 Autochanger returned: -1
Mount blank Volume on device "IBM1" (/dev/tape/by-id/scsi-35001438016019fb0) 
and press return when ready:
btape: btape.c:3079-0
Wrote Volume label for volume "TestVolume1".
02-Jul 16:42 btape JobId 0: Fatal error: Job 0 canceled.
*

thanks,

--

Jeffrey Di Domenico
Systems Administrator

Direct: +44 020 7608 7463

Email: jdidomen...@integrafin.co.uk
[Transact - take control]

Phone: +44 (0)20 7608 4900
Web: www.transact-online.co.uk
Address: 29 Clement's Lane, London EC4N 7AE
Please consider the environment before printing this email

--

This message is intended only for the addressee and may contain confidential 
information. Unless you are that person, you may not disclose its contents or 
use it in any way and are requested to delete the message along with any 
attachments and notify us immediately. This email is not intended to, nor 
should it be taken to, constitute advice. The information provided is correct 
to our knowledge & belief and must not be used as a 

Re: [Bacula-users] [EXTERNAL] Re: Volume size question

2019-06-20 Thread Clark, Patti via Bacula-users
You don’t use "Maximum Volume Bytes" for tape volumes.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

From: Olivier Delestre 
Reply-To: "olivier.deles...@univ-rouen.fr" 
Date: Thursday, June 20, 2019 at 9:25 AM
To: Jasen Lentz , bacula-users 

Subject: [EXTERNAL] Re: [Bacula-users] Volume size question

Hi,

I not an expert but i use disk storage and if y have a "Maximum Volume Bytes" 
when the max arrived , Bacula mount a new file.

For the tape it's the same.

so you can put 800+ GB (to be confirmed)


Le 20/06/2019 à 15:02, Jasen Lentz a écrit :
I noticed in the bacula-dir file, it has maximum volume set to 50GB.  What 
exactly does this mean, I have LTO-4 that can do 800+ GB, do I need ot change 
the colume size so it uses the whole tape, or does this refer to the size of a 
chunk it will write to a tape?

Thanks!
Jasen


Jasen M. Lentz, M.Ed
Lead Systems Administrator
Sesco Enterprises, LLC
4977 State Route 30 East (Mailing Address Only)
Greensburg, PA 15601
W:  (724) 837-1991 x207
C:  (412) 848-5612






___

Bacula-users mailing list

Bacula-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/bacula-users


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] max storage jobs

2019-05-31 Thread Clark, Patti via Bacula-users

You provided the answer yourself.  You have limited the director to 20 
concurrent jobs.  Modify the director setting to the 40 that you want.
>
I definitely have "Maximum Concurrent Jobs = 20" in the Storage sections
of both bacula-dir.conf, and bacula-sd.conf.  
>
Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 5/30/19, 3:21 PM, "Lloyd Brown"  wrote:

I seem to have misunderstood something WRT the maximum number of jobs
running for an SD.  Hopefully someone has run into this already, and can
point me in the right direction.

I'm trying to run up to 20 jobs per SD at a time, and since I have 2
SDs, that should, theoretically, be as many as 40 jobs total.  Instead,
I seem to end up with 20 jobs total, even if they're not evenly
distributed (eg. 13 jobs on one SD, and 7 on the other), and the rest of
the pending jobs are "waiting on max Storage jobs".

I definitely have "Maximum Concurrent Jobs = 20" in the Storage sections
of both bacula-dir.conf, and bacula-sd.conf.  I'm not finding any other
relevant maximum that would apply to storage generally, but I may be
missing something.

This is v9.4.3 for director, SDs, and the currently-running FDs (some
other FDs are older, but they're not involved right now).

-- 

Lloyd Brown
HPC Systems Administrator
Office of Research Computing
Brigham Young University
http://marylou.byu.edu



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Temporarily place autochanger tape drive in service mode?

2019-01-04 Thread Clark, Patti via Bacula-users
Thank you to everyone that replied.  The disable storage command did what was 
needed.  One issue with using it is the obnoxious noise produced by the 
director in every job that was initially assigned the disabled drive.  Kern, 
this is beyond ridiculous.
.
.
.
2019-01-04 10:27:51 rdback2-sd JobId 198498: Warning: 
 Device "adminChanger" requested by DIR is disabled.
2019-01-04 10:27:51 rdback2-sd JobId 198498: Warning: 
 Device "adminChanger" requested by DIR is disabled.
2019-01-04 10:27:51 rdback2-sd JobId 198498: Warning: 
 Device "adminChanger" requested by DIR is disabled.
.
.
. 
And it goes on for pages and pages until the job is assigned an available drive.

Patti
 

On 1/3/19, 1:30 PM, "Bill Arlofski"  wrote:

On 01/02/2019 02:45 PM, Clark, Patti via Bacula-users wrote:
> Is there a way to put a malfunctioning tape drive in an autochanger into a
> service mode via commands without modifying bacula configuration files?
> 
>  
> 
> */Patti Clark/*

Hi Patti,

There is an enable/disable command to do this:

* disable storage= drive=


A status storage will show this drive disabled by "User command":
8<
Device File: "speedy_drv_0" (/path/to/device/0) is not open.
   Device is disabled. User command.
   Drive 0 is not loaded.
   Available Space= GB
8<


To enable it again:

* enable storage= drive=

I do not believe the disable is permanent.. ie: it will not survive an SD
restart, but it should help in your situation.

Hope this help.


Best regards,

Bill


-- 
Bill Arlofski
http://www.revpol.com/bacula
-- Not responsible for anything below this line --


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Temporarily place autochanger tape drive in service mode?

2019-01-02 Thread Clark, Patti via Bacula-users
Is there a way to put a malfunctioning tape drive in an autochanger into a 
service mode via commands without modifying bacula configuration files?

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Assistance with Autochanger configuration

2018-11-05 Thread Clark, Patti via Bacula-users
Sorry about the /dev/sch0.  I've written udev rules to use consistent names 
regardless of what udev does - I do use the /dev/sgX for changer 
identification.  If you've rebooted your system, the output from lsscsi -g may 
have changed.  You still need the Drive Index line in your bacula-sd.conf .  

Ahhh - bacula-sd runs as the bacula user.  Did you add bacula to the tape group?

Patti
 

On 11/5/18, 1:34 PM, "William Muriithi"  wrote:

Hi Patti,

> Use /dev/sch0, not /dev/sg2.  Bear in mind, udev is not your friend.  If 
you ever add another tape drive to your library or expand your device fabric, 
these device references will/can change with every system boot.  As is, the 
/dev/sgX references can change with reboots, but if you only have one changer 
and one drive, the /dev/sch0 and /dev/nst0 devices should remain static.  

He seem to have the same problem too

https://unix.stackexchange.com/questions/193472/interacting-with-tape-library-on-centos-7-via-mtx

Hmm, it doesn't seem to live /dev/sch0.  I agree with you that using 
/dev/sgX isn't reliable, but when I made the change suggested above, it failed 
with the error below:
Tape block granularity is 1024 bytes.
btape: butil.c:290-0 Using device: "/dev/nst0" for writing.
05-Nov 13:17 btape JobId 0: 3991 Bad autochanger "loaded? drive 0" command: 
ERR=Child exited with code 1.
Results=/dev/sch0 is not an sg device, or old sg driver

> Also, you have "Drive Index = 1" commented out.  Uncomment and change it 
to "Drive Index = 0".  All tape drives in a changer must have an index and the 
first one is zero.  Give those a try.

Hmm, I have seem this previously and when I implemented it, I had this 
issue. I have 8 tapes, do I believe I need 8 archive device.  However, the 
system only 3 sgX devices.  How would one overcome this problem?

[root@eng-backup02 ~]# ls -ltr /dev/sg*
crw-rw. 1 root disk 21, 0 Oct 10 15:42 /dev/sg0
crw-rw. 1 root tape 21, 1 Nov  5 12:16 /dev/sg1
crw-rw. 1 root tape 21, 2 Nov  5 12:16 /dev/sg2
[root@eng-backup02 ~]# 

Regards,
William


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Assistance with Autochanger configuration

2018-11-05 Thread Clark, Patti via Bacula-users
Use /dev/sch0, not /dev/sg2.  Bear in mind, udev is not your friend.  If you 
ever add another tape drive to your library or expand your device fabric, these 
device references will/can change with every system boot.  As is, the /dev/sgX 
references can change with reboots, but if you only have one changer and one 
drive, the /dev/sch0 and /dev/nst0 devices should remain static.  Also, you 
have "Drive Index = 1" commented out.  Uncomment and change it to "Drive Index 
= 0".  All tape drives in a changer must have an index and the first one is 
zero.  Give those a try.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 11/5/18, 12:26 PM, "William Muriithi"  wrote:

Hello,

We have a quantum superloader 3 that seem to be fine when tested through mt 
and mtx command.

[root@eng-backup02 ~]# lsscsi -g
[0:2:0:0]diskDELL PERC H710P   3.13  /dev/sda   /dev/sg0 
[1:0:2:0]tapeIBM  ULTRIUM-HH6  E4J1  /dev/st0   /dev/sg1 
[1:0:2:1]mediumx QUANTUM  UHDL 0091  /dev/sch0  /dev/sg2 
[root@eng-backup02 ~]#

When we run btape -c test, the command, it come back successful for all 
tape tests.  However, for the autochanger, I am getting this error.  Have 
anyone seen it before and how did you resolve it?

=== Autochanger test ===

3301 Issuing autochanger "loaded" command.
Slot 3 loaded. I am going to unload it.
3302 Issuing autochanger "unload 3 0" command.
unload status=OK 0
3303 Issuing autochanger "load 1 0" command.
3993 Bad autochanger command: /etc/bacula/scripts/mtx-changer /dev/sg2 load 
1 /dev/nst0 0
3993 result="Loading media from Storage Element 1 into drive 0...done
": ERR=Child died from signal 15: Termination
You must correct this error or the Autochanger will not work.
*

Below is my storage configurations:
Autochanger {
  Name = SuperLoader3
  Device = ultrium1 
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg2
}

Device {
  Name = ultrium1
  Media Type = LTO-6
  Archive Device = /dev/nst0
#  Drive Index = 1
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = no;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = yes;
  AlwaysOpen = yes;
  Autochanger = yes;
}

Would appreciate any guidance a  lot

Regards,
William 

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-sd.conf: permission denied

2018-10-09 Thread Clark, Patti via Bacula-users
From the manual:
> You need to ensure that your Storage daemon (if not running as root) has 
> access permissions to both the tape drive and the control device.

My bacula user is also a member of the disk group.  The disk group has rw 
access to bacula-sd.conf.  It also completes the full group permissions 
required in bacula.  While I've tested using disk backups, I am exclusively 
using tape media for my backups.  Also, my SD runs as the bacula user and while 
you did not indicate what user you were when calling the init.d/ script, I will 
presume it was the root user.  Systemd does not use the init.d/ scripts unless 
the systemd script has been modified to do so (bad idea).

For future reference, if you are going to ask for help on permissions, provide 
your current permission settings on the relevant files.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory


On 10/9/18, 8:30 AM, "krashoverr...@free.fr"  wrote:

Hey there,

I'm having a problem on a virtualized Debian 9 server where i want to 
install bacula (7.4.4)
I'm not able to start the SD, while FD and DIR are OK

When I try to start it with _systemd start bacula-sd_, i'm getting the 
following

Oct  9 14:11:29  bacula-sd[6539]: Config error: Cannot open config file 
"/etc/bacula/bacula-sd.conf": Permission denied
Oct  9 14:11:29  bacula-sd[6539]: 09-Oct 14:11 bacula-sd: ERROR TERMINATION 
at parse_conf.c:919
Oct  9 14:11:29  bacula-sd[6539]: Config error: Cannot open config file 
"/etc/bacula/bacula-sd.conf": Permission denied
Oct  9 14:11:29  systemd[1]: bacula-sd.service: Main process exited, 
code=exited, status=1/FAILURE

I thought permissions issues, but it seems not.
I've tried to 
- apt-get install --reinstall bacula-sd, same problem (so with default 
permissions)
- remove bacula-sd.conf : same problem (weird, i guess i should have a "no 
such file or directory" ?)
- start with /etc/init.d/bacula-sd : same problem
- check permissions in /etc/bacula + /var/lib/bacula + /run/bacula : same 
problem
- set an unix password to my bacula user (that belongs to the "tape" group 
of course) to try to ssh login and go|see /etc/bacula/bacula-sd.conf, worked 
perfectly
- start it with -- sh -x /etc/init.d/bacula-sd start -- but am not able to 
see any problem

The only thing that works is if I manually start the SD from CLI -- 
/usr/sbin/bacula-sd -f -c /etc/bacula/bacula-sd.conf -- that confirms me it 
neither related to a typo mistake from bacula-sd.conf nor an LTO problem 
(communication problem). Once started this way, i'm able to "status sd" in 
bconsole.

 any hint appreciated !

Thibault

 



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape physical retention and age monitoring

2018-09-21 Thread Clark, Patti
Most everything that you'd want to know about LTO tape for each version can be 
found here on Wikipedia.  It has a section that talks about longevity and 
number of passes.  
https://en.wikipedia.org/wiki/Linear_Tape-Open

I have 6 year old LTO-5 media that has been used by my Bacula backups with a 
quarterly rotation and multiple mounts/writes until full without any problems.  
My drives are healthy and the media is kept in normal climate controlled 
environments.  If I have any media issues, it's usually shortly after new tapes 
have been introduced and there's something wrong with them from the outset.  I 
will be migrating to newer LTO technology before these tapes approach their 
end-of-life.  The only issue will be to bring any required archives stored on 
the media forward.  Bacula does maintain metrics on each volume should you want 
to monitor their usage.

Patti
 

On 9/21/18, 11:46 AM, "George Anchev via Bacula-users" 
 wrote:

Thanks Patti! I guess my info was stale.

What about age and write cycles? I believe those still
apply to LTO.

--
George


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Tape physical retention and age monitoring

2018-09-21 Thread Clark, Patti
I have never seen an article or reference regarding re-tensioning LTO media.  
In fact Quantum answered a similar question:
"Retensioning is not needed on single hub media, such as DLT and LTO. Dual hub 
media requires retensioning after it has been dropped as the tape path because 
it can be skewed between the two hubs. Since DLT and LTO media have a single 
hub, the tape is wound through a path within the drive onto an internal hub. 
This eliminates the problem with skewing."

A reliable industry source.  You cannot apply general magnetic tape information 
to LTO.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 9/20/18, 7:45 AM, "George Anchev via Bacula-users" 
 wrote:

Hi,

As far as I have read there is a recommendation LTO-*
tapes to be physically rewind from start to finish and
back every now and then to release physical tension.
This tape retention has a different meaning from the
term "retention" in Bacula (if I understand correctly).

Also tapes have limited (although quite long) age and
same applies to write cycles.

My question is:

Does Bacula provide any means to monitor and service
all these? Or what recommendations would you give?

--
George


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Not a Bacula labeled Volume error

2018-05-02 Thread Clark, Patti
If you just want another volume to be selected, mark the volume "Full" or 
"Error".  Either setting will get Bacula to look for another volume.  It will 
give you time to decide on what you want to do with the problem volume while 
Bacula continues with the backup. 

Patti
 
On 5/1/18, 11:33 AM, "Shawn Rappaport"  wrote:

Update: I tried renaming the shakopee-daily-5 volume, hoping Bacula would 
see that it’s missing and simply move on to the next volume. Unfortunately, 
that didn't work and I got the same error:
01-May 08:27 bacmedia01-mn.internal.shutterfly.com-sd JobId 4694: Fatal 
error: block_util.c:425 Volume data error at 0:0! Wanted ID: "BB02", got "". 
Buffer discarded.
01-May 08:27 colorreports01-mn-fd JobId 4694: Fatal error: job.c:2700 Bad 
response from SD to Append Data command. Wanted 3000 OK data
, got len=259 msg="3903 Error append data: Read label block failed: 
requested Volume "shakopee-daily-5" on File device "FileChgr1-Dev2" (/data) is 
not a Bacula labeled Volume, because: ERR=block_util.c:425 Volume data error at 
0:0! Wanted ID: "BB02", got "". Buffer discarde"
01-May 08:27 bacdirector01-lv.internal.shutterfly.com-dir JobId 4694: 
Error: Bacula bacdirector01-lv.internal.shutterfly.com-dir 9.0.6 (20Nov17):

Any ideas on how I fix this?

Thanks!

--Shawn

On 5/1/18, 8:14 AM, "Shawn Rappaport"  wrote:

I had a bunch of jobs fail last night with the error below. Does anyone 
know what I can do to resolve the problem? It sounds like maybe the 
shakopee-daily-5 volume is corrupt. If I delete it, will Bacula proceed to 
create a new volume and continue from there?

Thanks!

--Shawn

30-Apr 23:07 bacdirector01-lv.internal.shutterfly.com-dir JobId 
4629: Start Backup JobId 4629, Job=colorreports01-mn.2018-04-30_23.05.04_32
30-Apr 23:07 bacdirector01-lv.internal.shutterfly.com-dir JobId 
4629: Using Device "FileChgr1-Dev2" to write.
30-Apr 23:07 bacmedia01-mn.internal.shutterfly.com-sd JobId 4629: 
Fatal error: block_util.c:425 Volume data error at 0:0! Wanted ID: "BB02", got 
"". Buffer discarded.
30-Apr 23:07 colorreports01-mn-fd JobId 4629: Fatal error: 
job.c:2700 Bad response from SD to Append Data command. Wanted 3000 OK data
, got len=259 msg="3903 Error append data: Read label block failed: 
requested Volume "shakopee-daily-5" on File device "FileChgr1-Dev2" (/data) is 
not a Bacula labeled Volume, because: ERR=block_util.c:425 Volume data error at 
0:0! Wanted ID: "BB02", got "". Buffer discarde"
30-Apr 23:07 bacdirector01-lv.internal.shutterfly.com-dir JobId 
4629: Error: Bacula bacdirector01-lv.internal.shutterfly.com-dir 9.0.6 
(20Nov17):
  Build OS:   x86_64-pc-linux-gnu redhat (Core)
  JobId:  4629
  Job:colorreports01-mn.2018-04-30_23.05.04_32
  Backup Level:   Differential, since=2018-04-30 13:54:06
  Client: "colorreports01-mn-fd" 9.0.6 (20Nov17) 
x86_64-pc-linux-gnu,redhat,
  FileSet:"linux-full" 2018-03-08 23:05:00
  Pool:   "Shakopee-Daily" (From Run Pool override)
  Catalog:"MyCatalog" (From Client resource)
  Storage:"Shakopee" (From Pool resource)
  Scheduled time: 30-Apr-2018 23:05:04
  Start time: 30-Apr-2018 23:07:48
  End time:   30-Apr-2018 23:07:49
  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
  Comm Line Compression:  None
  Snapshot/VSS:   no
  Encryption: no
  Accurate:   no
  Volume name(s): 
  Volume Session Id:  30
  Volume Session Time:1524954816
  Last Volume Bytes:  603,363,650 (603.3 MB)
  Non-fatal FD errors:1
  SD Errors:  1
  FD termination status:  Error
  SD termination status:  Error
  Termination:*** Backup Error ***






--
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

Re: [Bacula-users] Bacula error bacula-dir dead but subsys locked

2018-03-23 Thread Clark, Patti
You probably have a  bacula-dir.pid file left behind.  Delete it and then you 
should be able to start the service.  I don’t know what version of bacula that 
you are running, but my files live in /opt/bacula/working.  I don’t recall 
where the older versions of bacula put these.

Patti

From: kashif khan 
Date: Thursday, March 22, 2018 at 1:15 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Bacula error bacula-dir dead but subsys locked

Dear Sir,

I am getting this error i am using centos 6.9 when i reboot my server is show 
the error in bacula-dir service.

What should i do Please advice.

Regards

Kashif
--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Packet size too big errors

2018-03-05 Thread Clark, Patti
Not from your backup.  You have something on the network that is scanning the 
server your director is running on.  Probably Nessus.  I’m sure the client IP 
is a clue.

Patti

From: Shawn Rappaport 
Date: Sunday, March 4, 2018 at 6:06 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Packet size too big errors

I’m running Bacula 9.0.6 on CentOS 7.3. Today I received the following errors 
when my catalog was backing up:

03-Mar 12:27 xbacdirector01-lv.internal.shutterfly.com-dir: ERROR in 
authenticate.c:330 UA Hello from client:10.32.12.18:9101 is invalid. Len=0

03-Mar 12:27 xbacdirector01-lv.internal.shutterfly.com-dir: ERROR in 
authenticate.c:330 UA Hello from client:10.32.12.18:9101 is invalid. Len=-4
03-Mar 12:27 xbacdirector01-lv.internal.shutterfly.com-dir JobId 0: Fatal 
error: bsock.c:819 Packet size=121984032 too big from 
"client:10.32.12.18:9101". Maximum permitted 100. Terminating connection.

03-Mar 12:28 xbacdirector01-lv.internal.shutterfly.com-dir: ERROR in 
authenticate.c:330 UA Hello from client:10.32.12.18:9101 is invalid. Len=-4
03-Mar 12:28 xbacdirector01-lv.internal.shutterfly.com-dir JobId 0: Fatal 
error: bsock.c:819 Packet size=138759248 too big from 
"client:10.32.12.18:9101". Maximum permitted 100. Terminating connection.

03-Mar 12:28 xbacdirector01-lv.internal.shutterfly.com-dir: ERROR in 
authenticate.c:330 UA Hello from client:10.32.12.18:9101 is invalid. Len=-4
03-Mar 12:28 xbacdirector01-lv.internal.shutterfly.com-dir JobId 0: Fatal 
error: bsock.c:819 Packet size=50331667 too big from "client:10.32.12.18:9101". 
Maximum permitted 100. Terminating connection.

I manually ran a backup of my catalog after I received the errors and it was 
successful.

Does anyone know why I would be getting these messages and if it’s something to 
be concerned about?

--Shawn
--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] convincing Bacula to use a different tape than it requested

2018-02-12 Thread Clark, Patti
You can disable the volume or change the volume status to Full if you don't 
intend to append any additional data.  If you disable the volume, you will need 
to enable it in order to use it.  I deal in sets of 10 volumes and run into 
situations where Bacula want a volume that has an earlier expiration than the 
set of perfectly acceptable recyclable media that is available.  I script the 
import and export of the media to disable or enable the volumes being 
transferred so that I don't have this particular issue.

Patti
 
On 2/11/18, 6:18 PM, "Tilman Schmidt"  wrote:

Forcing Bacula to use particular tapes is not my objective.
(That would be easy - just put every tape in a pool of its own.)

What I'm asking for is a sensible way to handle the situation when
Bacula requests an unavailable volume. That does happen. It's more
frequent with standalone drives but it occurs occasionally with
autochangers, too. The specific instance I described was just one example.

So what is the appropriate action when Bacula decides to use a tape that
for whatever reason is not available for use?

Thanks,
Tilman

Am 07.02.2018 um 10:21 schrieb Kern Sibbald:
> Bacula is designed to decide itself which tapes to use and when. If you
> are trying to force it to use particular tapes it is possible, but it is
> outside the design envelop, so you will almost surely run into problems.
> 
> 
> 
> On 06.02.2018 00:54, Tilman Schmidt wrote:
>> Just encountered the situation again.
>> Bacula requested last month's tape "Januar" since its use period hadn't
>> expired yet, but it's the next full backup which should go onto the new
>> month's tape "Februar".
>> Tape "Januar" has VolStatus=Append.
>> Tape "Februar" has VolStatus=Used with VolFiles=0 since it's way beyond
>> any applicable retention periods, but Bacula rejects it because of its
>> Status and never considers promoting it to "Purged" .
>>
>> Running bconsole command "prune volume=Februar" asks for confirmation,
>> then emits the message
>>
>>Found no Job associated with the Volume "Februar" to prune
>>
>> and does nothing. Bacula continues to reject the tape.
>>
>> Running bconsole command "purge volume=Februar" emits an alarming message
>>
>>This command can be DANGEROUS!!!
>>
>> then proceeds, *without* waiting for confirmation, to update VolStatus
>> of tape "Februar" to Purged. Now Bacula accepts the tape.
>>
>> Is all that how it should be?
>>
>> Is there a way to run the purge command automatically for volumes that
>> have reached the "VolStatus=Used && VolFiles=0" state?
>>
>> Thanks,
>> Tilman
>>
>> Am 08.01.2018 um 00:34 schrieb Tilman Schmidt:
>>> Hello Heitor,
>>>
>>> Am 15.12.2017 um 15:41 schrieb Heitor Faria:
> running Bacula 7.4.4 (same problem with version 5.2.13) on openSUSE
> Leap
> 42.3 with a standalone LTO tape drive.
>>> Note: Meanwhile upgraded to 9.0.6.
>>>
> [Sometimes Bacula requests] a tape that for some
> reason cannot or should not be used for that job.
> Then if I mount a different tape, Bacula will immediately eject it
> again, claiming that it is in the wrong state ("Used" instead of
> "Recycle") and insisting I mount the one it requested.
> How can I convince Bacula to recycle and use the tape I give it?
 You can forccefully recycle this tape with the purge command.
>>> Ok, that worked, but I'm not quite happy with that solution yet.
>>>
>>> * The situation has occurred again today, Bacula requesting volume
>>> "Mai-2" instead of "Januar" which I wanted it to use.
>>> * I first checked volume "Januar" which had not been in use for way
>>> beyond its retention period of 91 days, and was listed in the catalog
>>> with VolFiles=0, so it should be available for recycling:
>>>
>>> *llist volume=Januar
>>>MediaId: 52
>>> VolumeName: Januar
>>>   Slot: 0
>>> PoolId: 1
>>>  MediaType: LTO-2
>>>MediaTypeId: 0
>>>   FirstWritten: 1970-01-01 01:00:00
>>>LastWritten: 2017-01-30 00:39:15
>>>  LabelDate: 2017-01-02 20:49:20
>>>VolJobs: 0
>>>   VolFiles: 0
>>>  VolBlocks: 0
>>>   VolParts: 0
>>>  VolCloudParts: 0
>>> CacheRetention: 0
>>>  VolMounts: 25
>>>   VolBytes: 1
>>>  VolABytes: 0
>>>VolAPadding: 0
>>>   VolHoleBytes: 0
>>>   VolHoles: 0
>>>  LastPartBytes: 0
>>>  VolErrors: 0
>>>  VolWrites: 20,112,985
>>>   VolCapacityBytes: 0
>>>  VolStatus: Used
>>>Enabled: 1
>>> 

Re: [Bacula-users] restore problem

2017-11-29 Thread Clark, Patti
Remove the line:
  Write Bootstrap = "/var/lib/bacula/%c.bsr"

Patti
 

On 11/29/17, 5:53 AM, "Gokan Atmaca"  wrote:

Hello

I get an error like below. The problem says it's a bootstrap.
How can I overcome this?

29-Nov 13:36 bacula0-dir JobId 64: Error: Bacula bacula0-dir 7.4.4 
(202Sep16):
  Build OS:   x86_64-pc-linux-gnu debian 9.0
  JobId:  64
  Job:Windows01Restore.2017-11-29_13.36.50_05
  Restore Client: test-PC-fd
  Start time: 29-Nov-2017 13:36:52
  End time:   29-Nov-2017 13:36:52
  Files Expected: 0
  Files Restored: 0
  Bytes Restored: 0
  Rate:   0.0 KB/s
  FD Errors:  1
  FD termination status:
  SD termination status:
  Termination:*** Restore Error ***

29-Nov 13:36 bacula0-dir JobId 64: Error: Bacula bacula0-dir 7.4.4 
(202Sep16):
  Build OS:   x86_64-pc-linux-gnu debian 9.0
  JobId:  64
  Job:Windows01Restore.2017-11-29_13.36.50_05
  Restore Client: test-PC-fd
  Start time: 29-Nov-2017 13:36:52
  End time:   29-Nov-2017 13:36:53
  Files Expected: 0
  Files Restored: 0
  Bytes Restored: 0
  Rate:   0.0 KB/s
  FD Errors:  2
  FD termination status:
  SD termination status:
  Termination:*** Restore Error ***


 Config:

Client {
  Name = test-PC-fd
  Address = 192.168.1.27
  FDport = 9102
  Catalog = MyCatalog
  Password = "123123tt"
  File Retention = 60 days
  Job Retention = 6 months
  AutoPrune = yes
}



FileSet {
  Name = "windowshome"
  Enable VSS = yes
  Include {
Options {
  signature = MD5
  compression = Gzip9
  IgnoreCase = yes

}
File = "C:/Users/test/Downloads"
  }
}

--- restore job:
Job {
  Name = "Windows01Restore"
  Type = Restore
  Client =test-PC-fd
  FileSet = "windowshome"
  Storage = File1
  Pool = File
  Write Bootstrap = "/var/lib/bacula/%c.bsr"
  Messages = Standard
  Where = /bacula/restore
}


--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] TAPE backups

2017-10-24 Thread Clark, Patti
Answers below.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 10/21/17, 10:54 AM, "Alan Brown"  wrote:


Straw poll time for people using tape-based systems


I'd like to know who is currently using what (not historical usage)


1:   Who on this list is NOT using half inch tape (12.7mm) formats(*) -
if so, what are you using?
Using.

2:   Who on this list is NOT using a robot or changer device?
Using.

3:  For the half inch tape formats, what are you using?
 LTO-5   

4:  For the robot users: What are you using? (number of drives / number
of slots)
 Spectralogic T950, 2 virtual partitions, 10 drives.




--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Please mount append Volume or label a new one - help needed

2017-06-28 Thread Clark, Patti
Luke,

This usually happens when the path to the device in Bacula does not line up 
with the OS.  For each drive one at a time, mount a volume in bconsole and 
verify with mtx status that it is where it is expected to be.  Release the 
volume and verify that it has returned to its slot.  Go through all of your 
drives that you have defined.  This should find where the drive configurations 
need to be modified.  One suggestion, it is best to name your bacula drives 
with the same numeric as the index.  Tends to cause identification issues 
otherwise.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

From: Luke Salsich 
Date: Wednesday, June 28, 2017 at 1:23 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Please mount append Volume or label a new one - help 
needed

​​
Hello everyone,

I'm really struggling to solve a problem with my bacula setup and I could use 
some guidance or helpful comments, PLEASE PLEASE. I've been using Bacula for 
about six months with an AWS storage gateway with success, but still have so 
much to learn. I would welcome any help!!

I've tried to walk through this current problem, read the docs, search the web 
- but I'm really stuck.

some quick background:

I started shutting down the storage gateway from most of the day because why 
run it when my backups aren't scheduled until 11:00 pm? This worked fine for 
about a week, then I started getting messages in the jobs asking 'Please mount 
append Volume "x" or label a new one for' the job.

So, I 'update slots' to make sure nothing got out of alignment and ran a job 
again:

27-Jun 13:03 bacula-dir JobId 419: Start Backup JobId 419, 
Job=crashbox.2017-06-27_13.03.25_03
27-Jun 13:03 bacula-dir JobId 419: Using Device "Drive-4" to write.
27-Jun 13:03 bacula-sd JobId 419: 3307 Issuing autochanger "unload slot 31, 
drive 3" command.
27-Jun 13:03 bacula-sd JobId 419: 3307 Issuing autochanger "unload slot 11, 
drive 0" command.
27-Jun 13:03 bacula-sd JobId 419: 3304 Issuing autochanger "load slot 11, drive 
3" command.
27-Jun 13:03 bacula-sd JobId 419: 3305 Autochanger "load slot 11, drive 3", 
status is OK.
27-Jun 13:03 bacula-sd JobId 419: Please mount append Volume "BAKEEC9D4D" or 
label a new one for:

It seemed like the autochanger was working properly - moving tapes around as 
needed. But, when I check which volumes are actually listed in the slots using 
MTX, I got a different result:

$ sudo /usr/sbin/mtx -f /dev/tape/by-id/scsi-2414d5a4e5f5347572d433245 status | 
head -n 50

 Storage Changer /dev/tape/by-id/scsi-2414d5a4e5f5347572d433245:10 Drives, 3200 
Slots ( 1600 Import/Export )
Data Transfer Element 0:Full (Storage Element 2 Loaded):VolumeTag = BAKB3DD699
Data Transfer Element 1:Full (Storage Element 11 Loaded):VolumeTag = BAKEE69D47
Data Transfer Element 2:Empty
Data Transfer Element 3:Full (Storage Element 21 Loaded):VolumeTag = BAKEEC9D4D
Data Transfer Element 4:Empty
Data Transfer Element 5:Empty
Data Transfer Element 6:Empty
Data Transfer Element 7:Empty
Data Transfer Element 8:Empty
Data Transfer Element 9:Empty
  Storage Element 1:Full :VolumeTag=BAKC8C9D2D
  Storage Element 2:Empty:VolumeTag=

SO - bacula was saying that slot 11 is in drive 3, status ok
BUT, mtx was saying that slot 11 is in drive 1.

I stopped bacula-dir and bacula-sd, then used manual mtx commands to unload / 
load the tapes out of the drives, then restarted bacula, updated slots, volumes 
and pools, but I keep getting errors about 'Please mount append Volume 
"BAKEEC9D4D" or label a new one for' the job - even though now the drives and 
volumes seem to line up with mtx data:

27-Jun 19:26 bacula-dir JobId 424: Start Backup JobId 424, 
Job=crashbox.2017-06-27_19.26.13_06
27-Jun 19:26 bacula-dir JobId 424: Using Device "Drive-1" to write.
27-Jun 19:26 bacula-sd JobId 424: Please mount append Volume "BAKEEC9D4D" or 
label a new one for:
Job: crashbox.2017-06-27_19.26.13_06
Storage: "Drive-1" (/dev/tape/by-path/ip-tapedrive-01-lun-0-nst)
Pool: Tape4
Media type: ULT3580-TD5

a list of the status of the changer:

$ sudo /usr/sbin/mtx -f /dev/tape/by-id/scsi-2414d5a4e5f5347572d433245 status | 
head -n 50
  Storage Changer /dev/tape/by-id/scsi-2414d5a4e5f5347572d433245:10 Drives, 
3200 Slots ( 1600 Import/Export )
Data Transfer Element 0:Full (Storage Element 11 Loaded):VolumeTag = BAKEEC9D4D
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Data Transfer Element 4:Empty
Data Transfer Element 5:Empty
Data Transfer Element 6:Empty
Data Transfer Element 7:Empty
Data Transfer Element 8:Empty
Data Transfer Element 9:Empty
  Storage Element 1:Full :VolumeTag=BAKC8C9D2D
  Storage Element 2:Full :VolumeTag=BAKB3DD699
  Storage Element 3:Full :VolumeTag=BAKB38D69C
  Storage Element 4:Full :VolumeTag=BAKB31D695
  Storage Element 5:Full :VolumeTag=BAKB32D696
  Storage Element 6:Full 

Re: [Bacula-users] Autochanger incorrectly assigning first slot number

2017-06-28 Thread Clark, Patti
Ivan,

You’ve not indicated what OS that you are using – it’s somewhat difficult to 
say whether your mtx package has a bug.  I’ve never had this issue with mtx 
running on RHEL6.  I don’t see your I/E slot being identified as the I/E slot, 
just a regular slot, which can be done if slots are tight.  It’s a configurable 
parameter on the library itself as are the slots.  It looks like a wrap around 
identification problem.

My library, while not a Qualstar, does identify the I/E slots with the mtx 
command:

 Storage Changer /dev/changer-admin:4 Drives, 280 Slots ( 10 Import/Export )
Data Transfer Element 0:Full (Storage Element 189 Loaded):VolumeTag = 405128L5  
  
Data Transfer Element 1:Full (Storage Element 227 Loaded):VolumeTag = 399696L5  
  
Data Transfer Element 2:Full (Storage Element 226 Loaded):VolumeTag = 399695L5  
  
Data Transfer Element 3:Full (Storage Element 1 Loaded):VolumeTag = 074260L5

  Storage Element 1:Empty:VolumeTag=
  Storage Element 2:Full :VolumeTag=074261L5
.
.
.
  Storage Element 270:Full :VolumeTag=621469L5 
  Storage Element 271 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 272 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 273 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 274 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 275 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 276 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 277 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 278 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 279 IMPORT/EXPORT:Empty:VolumeTag=

  Storage Element 280 IMPORT/EXPORT:Empty:VolumeTag=  

And Kern, disabling I/E ports, really?  I have used bconsole commands to move 
media to the I/E ports, but I’ve scripted to just change the volume location to 
0 and inchanger=no, and I use the mtx commands to manage moving the volumes to 
the I/E.  The process is handled in reverse for importing.

Patti Clark
Sr. Linux System Administrator
Oak Ridge National Laboratory

On 6/28/17, 5:01 AM, "Kern Sibbald"  wrote:

Hello,

I think this is what we politely call a "pilot error/misunderstanding".  
From what you have described, mtx is behaving correctly.  Normally I 
turn off the mail slot (aka import/export slot) on my autochanger and 
the problem goes away. It is my understanding that Bacula can be used 
with a mail slot, but I do not know how -- probably the simplest is to 
make sure there is no volume in the mail slot when you are doing an 
"update slots barcodes" command.  If you do that, Bacula should never 
access slot 1.

Best regards,

Kern


On 06/28/2017 05:44 AM, Ivan Adzhubey wrote:
> Hi,
>
> After more testing done today, this looks like a mtx bug: issuing command 
"mtx
> load 1 0" correctly loads tape from the changer slot 1 into the first tape
> drive. However, "mtx status" then shows this tape drive as loaded with 
slot 45
> instead (but also correctly lists slot 1 as empty):
>
> # mtx status
>Storage Changer /dev/changer:2 Drives, 45 Slots ( 1 Import/Export )
> Data Transfer Element 0:Empty
> Data Transfer Element 1:Empty
>Storage Element 1:Full :VolumeTag=A0L5
>Storage Element 2:Full :VolumeTag=A1L5
> <...>
>
> # mtx load 1 0
> Loading media from Storage Element 1 into drive 0...done
>
> # mtx status
>Storage Changer /dev/changer:2 Drives, 45 Slots ( 1 Import/Export )
> Data Transfer Element 0:Full (Storage Element 45 Loaded):VolumeTag = 
A0L5
> Data Transfer Element 1:Empty
>Storage Element 1:Empty
>Storage Element 2:Full :VolumeTag=A1L5
>Storage Element 3:Full :VolumeTag=A2L5
> <...>
>
> Unfortunately, mtx project seems dead, so no updates...
>
> --Ivan
>
> On Tuesday, June 27, 2017 8:34:47 PM EDT Ivan Adzhubey wrote:
>> On Tuesday, June 27, 2017 5:42:10 PM EDT Ivan Adzhubey wrote:
>>> The
>>> problem I suspect is with the extra I/O slot which this model has, in
>>> addition to normal slots in the mounted magazines. Mtx command correctly
>>> reports all magazine slots plus the I/O slot (separately). However, 
Bacula
>>> director seems to have issues with the I/O slot
>> Correction: This should read "Import/Export" (I/E) 

Re: [Bacula-users] Permissions problem backing up to NFS Share

2016-11-03 Thread Clark, Patti
Can you su or sudo to the bacula user and see if you can manually 
create/modify/delete files on your backup storage location?

- My file storage is owned by bacula:root and permissions are 770 – I 
would not have it set to be so wide open.
Is bacula user a member of your disk group?
If the answers to the above are yes, then what is your file pool configuration?

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Francis The Metman 
Date: Thursday, November 3, 2016 at 12:38 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Permissions problem backing up to NFS Share

Dear All, I am new to Bacula, and most impressed so far. I have version 7.4.3 
on a Gentoo server.
I have been trying to get my localhost to backup using the Automated Disk 
Backup config from the user manual as a template.
I am backing up to an NFS Share folder with permissions as below:

drwxrwxrwx 3 bacula   bacula4096 Nov  3 16:15 bacula-backups

The NFS is mounted on /home/backuppc/ToBackup/

when I run the full backup I get this error:

03-Nov 10:02 xensync-sd JobId 10: Job xensync.2016-11-03_10.02.05_05 is 
waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage:  "Storage-xensync" 
(/home/backuppc/ToBackup/bacula-backups/xensync)
Pool: Full-Pool-xensync
Media type:   File
I am bit surprised, because I would expect bacula to create the volumes 
automatically. Here is the relevent bit from my sd.conf file

Device {
  Name = Storage-xensync
  Media Type = File
  Archive Device = /home/backuppc/ToBackup/bacula-backups/xensync
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}


When I try and label a volume from the console I get this:

3910 Unable to open device ""Storage-xensync" 
(/home/backuppc/ToBackup/bacula-backups/xensync)": ERR=file_dev.c:185 Could not 
open(/home/backuppc/ToBackup/bacula-backups/xensync/xensync,CREATE_READ_WRITE,0640):
 ERR=Permission denied

As you can see the permissions are OK, and I have bacula user and group with 
same uid and gid on the NFS server to avoid any problems with permissions. Or 
so I thought.

Any ideas on how to fix this would be very much appreciated?

Regards

Francis
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Failed to connect to Storage Daemon.

2016-11-02 Thread Clark, Patti
You have port 9102 vs 9103 in your configuration.  The SD listens on 9103.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Francisco Javier Funes Nieto 
Date: Tuesday, November 1, 2016 at 1:58 PM
To: bacula-users 
Subject: [Bacula-users] Failed to connect to Storage Daemon.

Hi all,

Nov 1, doing my copy to tape jobs at office following the D2D2T aprox.

I run Bacula 7.4.4 in FreeBSD 10.3 based server with TLS.

The Storage Daemon has two Devices:

LocalChgr, a virtual autochanger device with five devices poiting to 
/bacula/volumes (ZFS)
LocalTape, an external Ultrium tape drive (LTO3 SCSI) .

This is what happen when I run the label command:


*m
01-Nov 18:35 betelgeuse.canonigos.es-dir JobId 0: Fatal error: 
authenticate.c:122 Director unable to authenticate with Storage daemon at 
"betelgeuse.canonigos.es:9102". Possible 
causes:
Passwords or names not the same or
Maximum Concurrent Jobs exceeded on the SD or
SD networking messed up (restart daemon).
For help, please see: 
http://www.bacula.org/rel-manual/en/problems/Bacula_Frequently_Asked_Que.html

Bacula Director can't authenticate with the Storage Daemon, but... it's the 
same as the LocalChgr that's do the disk backup jobs.


Detailed info:

camcontrol devlist
   at scbus0 target 3 lun 0 (pass0,sa0)
at scbus1 target 0 lun 0 (ada0,pass1)
at scbus2 target 0 lun 0 (ada1,pass2)
at scbus3 target 0 lun 0 (ada2,pass3)
at scbus4 target 0 lun 0 (ada3,pass4)
   at scbus7 target 0 lun 0 (pass5,ses0

bacula-sd.conf


Device {
  Name = HP920LTO3
  Description = "LTO3 HP STORAGEWORKS 920"
  Media Type = LTO3
  Archive Device = /dev/nsa0
  AutomaticMount = yes;   # when device opened, read it
  AlwaysOpen = yes
  Offline On Unmount = no
  Hardware End of Medium = no
  BSF at EOM = yes
  Backward Space Record = no
  Fast Forward Space File = no
  TWO EOF = yes
  Maximum File Size = 4GB
#  If you have smartctl, enable this, it has more info than tapeinfo
#  Alert Command = "sh -c 'smartctl -H -l error %c'"
}



bacula-dir.conf

# Definition of file Virtual Autochanger device
Storage {
  Name= LocalChgr
  Address = 
betelgeuse.canonigos.es# N.B. 
Use a fully qualified name here
  SDPort  = 9103
  Password= "kk"
  Device  = LocalChgr
  Media Type  = File1
  Maximum Concurrent Jobs = 10# run up to 10 jobs a the same time
  TLS Require   = yes
  TLS Enable= yes
  #TLS Verify Peer   = yes
  TLS CA Certificate File   = /usr/local/etc/ssl/cacert.pem
  TLS Certificate   = 
/usr/local/etc/ssl/betelgeuse.canonigos.es.cert
  TLS Key   = 
/usr/local/etc/ssl/betelgeuse.canonigos.es-nopass.key

}

Storage {
  Name= LocalTape
  Address = 
betelgeuse.canonigos.es
  SDPort  = 9102
  Password= "kk"
  Device  = HP920LTO3
  Media Type  = LTO3
  Maximum Concurrent Jobs = 10
  TLS Require   = yes
  TLS Enable= yes
  #TLS Verify Peer   = yes
  TLS CA Certificate File   = /usr/local/etc/ssl/cacert.pem
  TLS Certificate   = 
/usr/local/etc/ssl/betelgeuse.canonigos.es.cert
  TLS Key   = 
/usr/local/etc/ssl/betelgeuse.canonigos.es-nopass.key

}

# permissions

id bacula
uid=910(bacula) gid=910(bacula) groups=910(bacula),5(operator)


sudo ls -l /dev/sa0
crw-rw  1 root  operator  0x69 Nov  1 18:26 /dev/sa0


Why bacula can communicate with StorageDaemon-LocalChr and not with the same 
Storage Daemon but other device?

Thanks!







--
_

Francisco Javier Funes Nieto [esen...@gmail.com]
CANONIGOS
Servicios Informáticos para PYMES.
Cl. Cruz 2, 1º Oficina 7
Tlf: 958.536759 / 661134556
Fax: 958.521354
GRANADA - 18002
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula director daemon not start.-

2016-10-21 Thread Clark, Patti
I believe that you need quotes around the values for Name =

  Name = “Kepler-dir”

You should address that in your JobDefs for Client =  and anywhere else where 
the value is not a pre-defined selection from a list or numeric.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Leonardo Calcagno 
Date: Friday, October 21, 2016 at 9:22 AM
To: Wanderlei Huttel , 
"bacula-users@lists.sourceforge.net" 
Subject: Re: [Bacula-users] bacula director daemon not start.-

bacula-dir.conf  file   over CENTOS 6.8 OS


#
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 7.4.4 (28 September 2016) -- redhat
#
#  You might also want to change the default email address
#   from root to your address.  See the "mail" and "operator"
#   directives in the Messages resource.
#
# Copyright (C) 2000-2015 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#

Director {# define myself
  Name = Kepler-dir
  DIRport = 9101# where we listen for UA connections
  QueryFile = "/etc/bacula/query.sql"
  WorkingDirectory = "/opt/bacula/working"
  PidDirectory = "/var/run"
  Maximum Concurrent Jobs = 20
  Password = "xxD" # Console password
  Messages = Daemon
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = Kepler-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = Datos
  Messages = Standard
  Pool = File
  SpoolAttributes = yes
  Priority = 10
  Write Bootstrap = "/opt/bacula/working/%c.bsr"
}


#
# Define the main nightly save backup job
#   By default, this job will back up to disk in /tmp

#Job {
#  Name = "BackupClient2"
#  Client = Kepler2-fd
#  JobDefs = "DefaultJob"
#}

#Job {
#  Name = "BackupClient1-to-Tape"
#  JobDefs = "DefaultJob"
#  Storage = LTO-4
#  Spool Data = yes# Avoid shoe-shine
#  Pool = Default
#}

#}

# Backup the catalog database (after the nightly save)
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  # Arguments to make_catalog_backup.pl are:
  #  make_catalog_backup.pl 
  RunBeforeJob = 
"/etc/bacula/make_catalog_backup.pl MyCatalog"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/delete_catalog_backup"
  Write Bootstrap = "/opt/bacula/working/%n.bsr"
  Priority = 11   # run after main backup
}

#
# Standard Restore template, to be changed by Console program
# Only one such job is needed for all Jobs/Clients/Storage ...
#


# List of files to be backed up
FileSet {
  Name = "Full Set"
  Include {
Options {
  signature = MD5
}
#
#  Put your list of files here, preceded by 'File =', one per line
#or include an external list with:
#
#File = mailto:no-re...@mydomain.com>', is 
better since that tends to
#  tell (most) people that its coming from an automated source.

#
  mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: 
%t %e of %c %l\" %r"
  operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
\"Bacula: Intervention needed for %j\" %r"
  mail = root@localhost = all, !skipped
  operator = root@localhost = mount
  console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
#  time to time as it will grow indefinitely. However, it will
#  also keep all your messages if they scroll off the console.
#
  append = "/opt/bacula/log/bacula.log" = all, !skipped
  catalog = all
}


#
# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula 
daemon message\" %r"
  mail = root@localhost = all, !skipped
  console = all, !skipped, !saved
  append = "/opt/bacula/log/bacula.log" = all, !skipped
}

# Default pool definition
Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 365 days
  Maximum Volume Bytes = 50G
  Maximum Volumes = 100   # Limit number of Volumes in Pool
  LabelFormat = FullFile-
}

# File Pool definition
Pool {
  Name = File
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle Volumes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 365 days # one year
  Maximum Volume Bytes = 50G  # Limit Volume size to something 
reasonable
  Maximum Volumes = 100   # Limit number of Volumes in Pool
  Label Format = "Vol-"   # Auto label
}


# Scratch pool definition
Pool {

Re: [Bacula-users] Bacula in the cloud

2016-10-18 Thread Clark, Patti
From Bacula’s main.pdf documentation:

Max Run Time =  The time specifies the maximum allowed time that a job 
may run, counted from when the job starts, (not necessarily the same as when 
the job was scheduled).
By default, the the watchdog thread will kill any Job that has run more than 6 
days. The maximum watchdog timeout is independent of MaxRunTime and cannot be 
changed.


Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Josip Deanovic 
Date: Tuesday, October 18, 2016 at 4:06 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: Re: [Bacula-users] Bacula in the cloud

On Tuesday 2016-10-18 12:34:08 Jason Voorhees wrote:
Thank you all for your responses.
I'll take a look at Bacula systems' whitepaper to see what they're
talking about. Meanwhile I'll explore some of the alternatives
discussed on this thread like copying files with scripts and making a
replica on SpiderOak or anything similar.
I hope we can have an interesting solution for this "problem" in the
near future.


Hi Jason!

You have said that "Bacula can't run jobs for so long without modifying
source code and recompiling".

What did you mean by that and can you give an example of the problem
you have experienced?

I am asking because I am not aware of the bacula's job duration related
limitations.

--
Josip Deanovic

--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] No scheduled jobs - bacula 7.0.4

2016-09-29 Thread Clark, Patti
Did you restart or reload your director after making the changes?

Patti

From: "Ali Danish Mahmood (32940)" 
Date: Thursday, September 29, 2016 at 7:49 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] No scheduled jobs - bacula 7.0.4

Hi ALL,

I am trying to setup Bacula 7.0.4 on Ubuntu 16.04. I can take manual backups 
and run restore jobs successfully, however I am not been able to implement 
scheduled jobs although I have defined a schedule in my bacula-dir.conf.

Issuing “status schedule” on bconsole yields “No scheduled jobs” , Here is my 
config


bacula-dir.conf

Schedule {
  Name = "WeeklyCycle"
  Run = Full 1st sun at 23:05
  Run = Differential 2nd-5th sun at 23:05
  Run = Incremental mon-sat at 01:00
}

Job {
  Name = "vas-test-123"
  Type = Backup
  JobDefs =  "DefaultJob"
  Schedule = "WeeklyCycle"
  Client = vas-test-123.nadra.gov.pk-fd
  FileSet = "testing"
  Storage = File1
  Pool = Default
  Messages = Standard
  Maximum Concurrent Jobs = 1
  where = /bacula_backup/
}

Bconsole output:-


*status schedule
No Scheduled Jobs.


Am I missing something here ?

Best Regards,

Ali Danish Mahmood



--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Update Tape VolumeName in Bacula

2016-09-14 Thread Clark, Patti
More information is needed.  BTW, the output that you provided shows the slot 
number as zero for the 2 tapes listed and not present in your changer.

1. What version of bacula are you running?

2. Please provide the configuration of your storage devices.

3. Where does bacula think the volumes are located – “status slots 
storage= drive=0”

4. Where does the OS think your volumes and devices are located? – bacula 
and the OS have to agree

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: "ENRIQUE1742 ." 
Date: Wednesday, September 14, 2016 at 2:14 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Update Tape VolumeName in Bacula

Hello,

Please someone could help me with this support:

I have problem with the name of the tape loaded in the drive. I mounted the 
tape  LTO60003 but the bconsole show as the tape LTO60007. Also, I did a a test 
backup and save the data but with Warning.

Please, could help how I can update the field VolumenName with LTO60003 or some 
alternative. The version Bacula is 5.2.13

[mágenes integradas 1]

Thanks.

--
José Huamaní
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with Second Pool

2016-09-14 Thread Clark, Patti
You also need to remove that line “Recycle=no” or change it to yes.  That is 
what is preventing your volume reuse.

Patti

From: "Baggett, Mark Patrick" <mbagg...@utk.edu>
Date: Wednesday, September 14, 2016 at 10:52 AM
To: "Clark, Patti" <clar...@ornl.gov>, "bacula-users@lists.sourceforge.net" 
<bacula-users@lists.sourceforge.net>
Subject: Re: [Bacula-users] Problem with Second Pool

Patti,

Thanks.  Here is the entire config for pool4:

Pool {
  Name = Pool4
  Pool Type = Backup
  Recycle = no   # Bacula can automatically recycle Volumes
  AutoPrune = no # Prune expired volumes
  Volume Retention = 40 days
  Maximum Volumes = 100   # Limit number of Volumes in Pool
}

So no, this is not in the config.

Best,
Mark

From: "Clark, Patti" <clar...@ornl.gov<mailto:clar...@ornl.gov>>
Date: Wednesday, September 14, 2016 at 10:19 AM
To: Mark Baggett <mbagg...@utk.edu<mailto:mbagg...@utk.edu>>, 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>" 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Subject: Re: [Bacula-users] Problem with Second Pool

Could you provide your pool config?

Or is the following in your config?
  RecycleOldestVolume = yes

Patti

From: "Baggett, Mark Patrick" <mbagg...@utk.edu<mailto:mbagg...@utk.edu>>
Date: Wednesday, September 14, 2016 at 9:20 AM
To: 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>" 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Subject: [Bacula-users] Problem with Second Pool

Hello,

I apologize if this has been answered, but after googling I’m having
trouble finding something like this particular case. We have an ML6000
autochanger with two LTO-6 drives. For a long time we were just using one
pool, but we had two SSD disks (for spooling) and two tape drives, so we
ordered some new tapes and set up a second pool. It seemed like it could
be a good thing, and it worked for over a month... then it suddenly and
mysteriously stopped working when the new pool's tapes came back around
again. I'll give some configuration below, but here is basically how it
works:

Pool1 - tapes 000101-000140
Pool4 - tapes 000401-000420

None of these are newly labeled. They have all been through successful
backup rotations. It was all working.

Then a large backup had the status:

is waiting for an appendable Volume

In the Job definition:

  JobDefs = "Pool4Job"

which is assigned to Pool4.

++---+---+--+---+-+
| volumename | pool  | gb| slot | volstatus | lastwritten |
++---+---+--+---+-+
| 000401 | Pool4 | 2,439 |3 | Full  | 2016-08-23 20:36:42 |
| 000402 | Pool4 | 2,460 |5 | Purged| 2016-07-07 01:21:20 |
| 000403 | Pool4 | 2,927 |8 | Purged| 2016-07-09 04:51:54 |
| 000404 | Pool4 | 2,502 |9 | Purged| 2016-07-10 22:23:54 |
| 000405 | Pool4 | 2,551 |   10 | Purged| 2016-07-06 01:08:40 |

There are several volumes in Pool4 in the autochanger, and they have
already been written to during the last rotation. However:

Device tape: "Tapedrv-1" (/dev/nst1) is not open.
Device is BLOCKED waiting to create a volume for:
   Pool:Pool4
   Media type:  LTO-6
Drive 0 is not loaded.

I also see a message:

Please use the "label" command to create a new Volume for:
Storage:  "Tapedrv-1" (/dev/nst1)
Pool: Pool4
Media type:   LTO-6

bconsole seems to agree that there are Pool4 tapes in the autochanger with
status Purged, so I can’t figure out why bacula won’t use them anymore.

After I wrote all of that, as a drastic measure I deleted and relabeled
those tapes. They worked fine, and jobs assigned to Pool4Job were writing
to them. Then the next batch came back into rotation, and it happened all
over again. I tried mounting the volumes, but bacula wouldn't do it.

At this point, I'm not sure what to look at. It's possible that we're
missing something very simple and obvious. Any suggestions?

Thanks for any help or advice that you have,

Mark





Also, Here are selections from configuration files in case that’s useful:

JobDefs {
  Name = "Pool4Job"
  Type = Backup
  Level = Incremental
  Client = (hostname)-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = "autochanger"
  Messages = Standard
  Pool = Pool4
  SpoolAttributes = yes
  SpoolData = yes
  Priority = 10
  Write Bootstrap = "/bacula/working/%c.bsr"
}

Pool {
  Name = Pool1
  Pool Type = Backup
  Recycle = no   # Bacula can automatically recycle
Volumes
  AutoPrune = no 

Re: [Bacula-users] Problem with Second Pool

2016-09-14 Thread Clark, Patti
Could you provide your pool config?

Or is the following in your config?
  RecycleOldestVolume = yes

Patti

From: "Baggett, Mark Patrick" 
Date: Wednesday, September 14, 2016 at 9:20 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Problem with Second Pool

Hello,

I apologize if this has been answered, but after googling I’m having
trouble finding something like this particular case. We have an ML6000
autochanger with two LTO-6 drives. For a long time we were just using one
pool, but we had two SSD disks (for spooling) and two tape drives, so we
ordered some new tapes and set up a second pool. It seemed like it could
be a good thing, and it worked for over a month... then it suddenly and
mysteriously stopped working when the new pool's tapes came back around
again. I'll give some configuration below, but here is basically how it
works:

Pool1 - tapes 000101-000140
Pool4 - tapes 000401-000420

None of these are newly labeled. They have all been through successful
backup rotations. It was all working.

Then a large backup had the status:

is waiting for an appendable Volume

In the Job definition:

  JobDefs = "Pool4Job"

which is assigned to Pool4.

++---+---+--+---+-+
| volumename | pool  | gb| slot | volstatus | lastwritten |
++---+---+--+---+-+
| 000401 | Pool4 | 2,439 |3 | Full  | 2016-08-23 20:36:42 |
| 000402 | Pool4 | 2,460 |5 | Purged| 2016-07-07 01:21:20 |
| 000403 | Pool4 | 2,927 |8 | Purged| 2016-07-09 04:51:54 |
| 000404 | Pool4 | 2,502 |9 | Purged| 2016-07-10 22:23:54 |
| 000405 | Pool4 | 2,551 |   10 | Purged| 2016-07-06 01:08:40 |

There are several volumes in Pool4 in the autochanger, and they have
already been written to during the last rotation. However:

Device tape: "Tapedrv-1" (/dev/nst1) is not open.
Device is BLOCKED waiting to create a volume for:
   Pool:Pool4
   Media type:  LTO-6
Drive 0 is not loaded.

I also see a message:

Please use the "label" command to create a new Volume for:
Storage:  "Tapedrv-1" (/dev/nst1)
Pool: Pool4
Media type:   LTO-6

bconsole seems to agree that there are Pool4 tapes in the autochanger with
status Purged, so I can’t figure out why bacula won’t use them anymore.

After I wrote all of that, as a drastic measure I deleted and relabeled
those tapes. They worked fine, and jobs assigned to Pool4Job were writing
to them. Then the next batch came back into rotation, and it happened all
over again. I tried mounting the volumes, but bacula wouldn't do it.

At this point, I'm not sure what to look at. It's possible that we're
missing something very simple and obvious. Any suggestions?

Thanks for any help or advice that you have,

Mark





Also, Here are selections from configuration files in case that’s useful:

JobDefs {
  Name = "Pool4Job"
  Type = Backup
  Level = Incremental
  Client = (hostname)-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = "autochanger"
  Messages = Standard
  Pool = Pool4
  SpoolAttributes = yes
  SpoolData = yes
  Priority = 10
  Write Bootstrap = "/bacula/working/%c.bsr"
}

Pool {
  Name = Pool1
  Pool Type = Backup
  Recycle = no   # Bacula can automatically recycle
Volumes
  AutoPrune = no # Prune expired volumes
  Volume Retention = 40 days
  Maximum Volumes = 100   # Limit number of Volumes in Pool
}

Pool {
  Name = Pool4
  Pool Type = Backup
  Recycle = no   # Bacula can automatically recycle
Volumes
  AutoPrune = no # Prune expired volumes
  Volume Retention = 40 days
  Maximum Volumes = 100   # Limit number of Volumes in Pool
}

Autochanger {
  Name = "changer3"
  Device = Tapedrv-1,Tapedrv-2
  Changer Command = "/bacula/etc/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/sg5
}

Device {
  Name = Tapedrv-1
  Drive Index = 0
  Media Type = LTO-6
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Spool Directory = /bspool1
  Maximum Spool Size = 700G
  Maximum File Size = 5G
  Alert Command = "sh -c 'smartctl -H -l error %c'"
}

Device {
  Name = Tapedrv-2
  Drive Index = 1
  Media Type = LTO-6
  Archive Device = /dev/nst1
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no;
  AutoChanger = yes
  Spool Directory = /bspool2
  Maximum Spool Size = 700G
  Maximum File Size = 5G
  Alert Command = "sh -c 'smartctl -H -l error %c'"
}

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net

Re: [Bacula-users] Restart Director and Run Previously Pending Jobs?

2016-09-09 Thread Clark, Patti
You don’t mention what version of bacula that you are running.  The restart or 
resume commands are available in v7.x.  As a rather new feature it is not 
mature and may or may not actually resume the job.  If it does not, it’ll start 
a new jobid with the level of backup that would be normal for the day that you 
initiate the restart, not the level of the job that you wanted to restart.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Ralph Bolton 
Date: Friday, September 9, 2016 at 7:24 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Restart Director and Run Previously Pending Jobs?

Hi,
In a moment of 'fat fingers', I just restarted my Bacula Director (service 
bacula-dir restart) while it was running a series of backup jobs.
On restart, Bacula marks all the running/pending jobs as failed. I know I can 
reschedule on failure, but that'll only start things at some point in the 
future. Is there a way to tell the Director to continue to run Pending jobs 
after restarting it?
Cheers,
...Ralph
--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem which fd 7.4.3

2016-08-26 Thread Clark, Patti
Newer versions of a client than that of the director is unsupported.  If you 
are going to have clients that are that new, keeping your director/storage 
daemons current is somewhat important.  Other than that, you might try to 
compile the v5.2.13 source code for your debian client.  I’d like to say to try 
a package that runs on an older version of debian, but there can be library 
version differences there that will not work on the newer OS.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Claudia Koch 
Date: Friday, August 26, 2016 at 9:12 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Problem which fd 7.4.3

Hello,

I use Bachule 5.2.13 with many clients on Suse, Debian and CentOS. And
all is fine.

Now, I want to back-up a debian9 with bacula-fd 7.4.3 and I receive a error:

Fatal error: Authorization key rejected by Storage daemon.

and in debug-mod I see:

cram-get received: authenticate.c:79 Bad Hello command from Director at
client: Hello Bacula SD: Start Job xxx.2016-08-26_14.38.25_03 213

Cannot scan received response to challenge: authenticate.c:79 Bad Hello
command from Director at client: Hello Bacula SD: Start Job
xxx.2016-08-26_14.38.25_03 213

I use the same fd-conf for all the clients.

What is the problem? The difference of the versions from bacula or a
other problem with debian9?

Thanks
Claudia Koch
--

3w Media GmbH  DENIC-184 CORE-99

Member of  DENIC - CORE - EURid - NIC.AT - NOMINET - SIDN - RIPE NCC

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula wont mount backup directory

2016-08-10 Thread Clark, Patti
What are the ownership and permissions on /mnt/sda1/bacula/backup

Patti

From: Rolder 
Reply-To: "bacula-users@lists.sourceforge.net" 

Date: Monday, August 8, 2016 at 5:38 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Bacula wont mount backup directory

Good Afternoon,

I've been fiddling with this issue for a little under two weeks, if i have my 
archive device set to /tmp it works backs up my server as i want it to. does 
the incremental backup and no issues. if i change the archive device to 
/mnt/sda1/bacula/backup i get permission errors and blocked device waiting to 
mount. if i try to mount it nothing seems to happen, hard drive is auto mounted 
via fstab when the server boots, i'm not sure what to do. any help would be 
greatly appreciated, and ill gladly supply any information requested pertaining 
to the config files. i have the directory /mnt/sda1/* as owned by bacula and 
added bacula to the group of the mount directory i've changed the permissions 
to 775, and still i have permission issues. i think thats why its not mounting 
and why its being blocked.

Please find below some things i tried and their results / responses.
Thanks in advance.
-Rold


Here is some of the messages bacula spits out at me.

08-Aug 15:35 bacula-sd JobId 60: Warning: mount.c:219 Open device "File" 
(/mnt/sda1/bacula/backup) Volume "Local-0008" failed: ERR=dev.c:575 Could not 
open: /mnt/sda1/bacula/backup/Local-0008, ERR=No such file or directory

08-Aug 15:40 bacula-sd JobId 60: Please mount append Volume "Local-0008" or 
label a new one for:
Job:  BackupCatalog.2016-08-08_12.40.50_03
Storage:  "File" (/mnt/sda1/bacula/backup)
Pool: File
Media type:   File

If i try to label a new volume i get an error saying i have to mount it first.

Connecting to Storage daemon File at IPADDRESS_OF_SERVER:9103 ...
Sending label command for Volume "newvolume-1" Slot 0 ...
3910 Unable to open device ""File" (/mnt/sda1/bacula/backup)": ERR=dev.c:575 
Could not open: /mnt/sda1/bacula/backup/newvolume-1, ERR=Permission denied

Label command failed for Volume newvolume-1.
Do not forget to mount the drive!!!


This is when i run a status dir
bacula-dir Version: 5.2.13 (19 February 2013) x86_64-redhat-linux-gnu redhat 
(Core)
Daemon started 08-Aug-16 12:39. Jobs: run=0, running=2 mode=0,0
Heap: heap=270,336 smbytes=96,417 max_bytes=97,187 bufs=299 max_bufs=306

Scheduled Jobs:
Level  Type Pri  Scheduled  Name   Volume
===
Full   Backup11  09-Aug-16 07:10BackupCatalog  Local-0008
IncrementalBackup10  09-Aug-16 07:20BackupLocalFiles   Local-0008


Running Jobs:
Console connected at 08-Aug-16 17:31
JobId Level   Name   Status
==
60 FullBackupCatalog.2016-08-08_12.40.50_03 is waiting for a mount 
request
61 Increme  BackupLocalFiles.2016-08-08_12.45.54_05 is waiting execution


Terminated Jobs:
JobId  LevelFiles  Bytes   Status   FinishedName

50  Full  1403.5 K  OK   07-Aug-16 07:10 BackupCatalog
51  Full 98,0431.090 G  OK   07-Aug-16 07:30 BackupLocalFiles
52  Incr 9219.80 M  OK   07-Aug-16 19:03 BackupLocalFiles
53  Incr 7718.56 M  OK   07-Aug-16 21:51 BackupLocalFiles
54  Incr 5818.41 M  OK   07-Aug-16 21:59 BackupLocalFiles
55  Full  0 0   Error08-Aug-16 07:10 BackupCatalog
56  Incr  0 0   Error08-Aug-16 07:20 BackupLocalFiles
57  Incr  0 0   Error08-Aug-16 12:21 BackupLocalFiles

+--
|This was sent by brandon.boll...@gmail.com 
via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



Re: [Bacula-users] Autochander 2 Drive HP MSL2024 Pleasse Mount Label

2016-07-28 Thread Clark, Patti
Could you provide a status of your changer – please do both of these?
In bconsole:
*status storage=MSL2024

Command-line on storage daemon:
#mtx –f /dev/changer status

I’m also not sure why you would use Maximum Volumes or Maximum Volume Jobs on 
tape media.  Those directives are more appropriate for disk volumes and may 
ultimately cause you unnecessary issues.

It is possible to have a tape with a bacula label to have the label become 
corrupted and/or unreadable.  Sometimes the tape can be salvaged if it can be 
relabeled.  Sometimes, not.

Patti

From: nirvana 
Reply-To: "bacula-users@lists.sourceforge.net" 

Date: Thursday, July 28, 2016 at 7:34 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Autochander 2 Drive HP MSL2024 Pleasse Mount Label

Hello, thanks for answering.

But it says that no volumes? if they are already in the catalog reigstrados 
Annex I list media

*list media
Using Catalog "MyCatalog"
Pool: Default
+-++---+-+---+--+--+-+--+---+---+-++
| MediaId | VolumeName | VolStatus | Enabled | VolBytes  | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | 
ExpiresIn  |
+-++---+-+---+--+--+-+--+---+---+-++
|  11 | VXS011L6   | Append|   1 | 3,840,721,920 |   12 |   
31,536,000 |   1 |   11 | 1 | LTO-6 | 2016-07-28 00:16:19 | 
31,509,800 |
|  12 | VXS012L6   | Append|   1 |64,512 |0 |   
31,536,000 |   1 |   12 | 1 | LTO-6 | NULL| 
NULL   |
|  13 | VXS013L6   | Append|   1 |64,512 |0 |   
31,536,000 |   1 |   13 | 1 | LTO-6 | NULL| 
NULL   |
+-++---+-+---+--+--+-+--+---+---+-++
Pool: FullPool
+-++---+-+-+--+--+-+--+---+---+-++
| MediaId | VolumeName | VolStatus | Enabled | VolBytes| VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | 
ExpiresIn  |
+-++---+-+-+--+--+-+--+---+---+-++
|   1 | VXS001L6   | Append|   1 | 462,462,852,096 |  503 |   
94,608,000 |   1 |1 | 1 | LTO-6 | 2016-07-28 00:12:57 | 
94,581,598 |
|   2 | VXS002L6   | Append|   1 | 206,825,472 |   91 |   
94,608,000 |   1 |2 | 1 | LTO-6 | 2016-07-24 18:18:58 | 
94,301,159 |
|   3 | VXS003L6   | Append|   1 | 292,561,920 |3 |   
94,608,000 |   1 |3 | 1 | LTO-6 | 2016-07-24 18:40:34 | 
94,302,455 |
|   4 | VXS004L6   | Append|   1 | 295,916,544 |2 |   
94,608,000 |   1 |4 | 1 | LTO-6 | 2016-07-24 18:54:47 | 
94,303,308 |
|   5 | VXS005L6   | Append|   1 | 418,876,416 |2 |   
94,608,000 |   1 |5 | 1 | LTO-6 | 2016-07-24 19:07:26 | 
94,304,067 |
|   6 | VXS006L6   | Append|   1 |   0 |0 |   
94,608,000 |   1 |6 | 1 | LTO-6 | NULL| 
NULL   |
+-++---+-+-+--+--+-+--+---+---+-++
Pool: DifPool
+-++---+-+--+--+--+-+--+---+---+-++
| MediaId | VolumeName | VolStatus | Enabled | VolBytes | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten | 
ExpiresIn  |
+-++---+-+--+--+--+-+--+---+---+-++
|  14 | VXS014L6   | Append|   1 |0 |0 |
0 |   0 |   14 | 1 | LTO-6 | NULL| NULL   |
|  15 | VXS015L6   | Append|   1 |0 |0 |
0 |   0 |   15 | 1 | LTO-6 | NULL| NULL   |
|  16 | VXS016L6   | Append|   1 |  193,536 |2 |   
31,536,000 |   1 |   16 | 1 | LTO-6 | 2016-07-27 19:15:57 | 
31,491,778 |
|  17 | VXS017L6   | Append|   1 |0 |0 |
0 |   0 

Re: [Bacula-users] bacula Help!!!

2016-07-25 Thread Clark, Patti
You have provided no useful information.  Start with OS and Bacula versions, 
configuration files that relate to the issue, and the command output and/or 
error logs.

Patti

From: nirvana 
Reply-To: "bacula-users@lists.sourceforge.net" 

Date: Sunday, July 24, 2016 at 5:04 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] bacula Help!!!

the volumes are marked in state used just ends each backup that will I need to 
configure?

+--
|This was sent by nirvana...@hotmail.com via 
Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem drive bacula

2016-07-22 Thread Clark, Patti
Nirvana,

The tapes will rewind whenever they are ejected from the drive.  Bacula will 
manage the tapes as needed.  Auto-rewinding is unnecessary with modern backup 
software management particularly with an autochanger.

Patti

From: nirvana 
Reply-To: "bacula-users@lists.sourceforge.net" 

Date: Friday, July 22, 2016 at 2:31 PM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] problem drive bacula

Thank you for responding Patti.

I was reading about udev, but I say that the fastest way is to use the long 
form, in my case is / dev / changer but as you say it put me not to rewind the 
tape?

+--
|This was sent by nirvana...@hotmail.com via 
Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] problem drive bacula

2016-07-22 Thread Clark, Patti
You need to read up on udev.  I have posted several times on this list 
regarding the commands and configuration using udev rules.  Search the list for 
the information.   Otherwise, use the long path /dev/tape/by-path/… which is an 
ugly reference but is stable on reboots.  Use the “nst#” reference – it means 
no rewind, otherwise your tapes will rewind after each use by default.

Patti

From: nirvana 
Reply-To: "bacula-users@lists.sourceforge.net" 

Date: Friday, July 22, 2016 at 11:20 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] problem drive bacula

Good day, Dear

I am installing Bacula and had already done tests of full, incremental and 
differential backup, but the library had a problem and restart the server 
bacula, but when I do a lsscsi it that has moved the position in the dev where 
it was mounted in so that searching the internet I found a script for the start 
mount it in Changer Device = / dev / changer and fine but the Archive Device = 
/ dev / st0 each drive now does not work and before if it worked when I try to 
make a test tells me you can not find the medium that can be? any ideas please:

This is part of bacula-sd.conf

autochanger {
  Name = Autochanger
  Drive-device = 0
  Device = Drive-1
  Changer Command = "/ etc / bacula / mtx-changer% c% or% S% a% d"
  Changer Device = / dev / changer
}
Device {
  Drive-Name = 0
  Drive Index = 0
  Media Type = LTO-6
  Archive Device = / dev / st0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  Random Access = no;
  Autochanger = yes;
  Maximum Spool Size = 8G
}
Device {
  Name = Drive-1
  Drive Index = 1
  Media Type = LTO-6
 Archive Device = / dev / st1
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  Random Access = no;
  Autochanger = yes;
  Maximum Spool Size = 8G
}
Messages {
  Name = Standard
  Director = srvbacula-dir = all
}


and this is the error that appears when I run a btape

root @ srvbacula: / dev # btape Drive-0
Tape block granularity is 1024 bytes.
btape: butil.c: 291-0 Using device: "Drive-0" for writing.
btape: Fatal Error at device.c: 300 because:
dev open failed: tape_dev.c: 164 Unable to open device "Drive-0" (/ dev / st0): 
ERR = Not found the average

Jul 22 11:08 btape: Fatal Error at device.c: 300 because:
dev open failed: tape_dev.c: 164 Unable to open device "Drive-0" (/ dev / st0): 
ERR = Not found the average

btape: butil.c: 199-0 Can not open "Drive-0" (/ dev / st0)
Jul 22 11:08 btape JobId 0: Fatal error: butil.c: 199 Can not open "Drive-0" (/ 
dev / st0)

and this is the status of the changer

root @ srvbacula: / dev # mtx -f / dev / changer status
  Storage Changer / dev / changer: 2 Drives 24 Slots (0 Import / Export)
Data Transfer Element 0: Empty
Data Transfer Element 1: Empty
  Storage Element 1: Full: VolumeTag = VXS001L6
  Storage Element 2: Full: VolumeTag = VXS002L6
  Storage Element 3: Full: VolumeTag = VXS003L6
  Storage Element 4: Full: VolumeTag = VXS004L6
  Storage Element 5: Full: VolumeTag = VXS005L6
  Storage Element 6: Full: VolumeTag = VXS006L6
  Storage Element 7: Full: VolumeTag = VXS007L6
  Storage Element 8: Full: VolumeTag = VXS008L6
  Storage Element 9: Full: VolumeTag = VXS009L6
  Storage Element 10: Full: VolumeTag = VXS010L6
  Storage Element 11: Full: VolumeTag = VXS011L6
  Storage Element 12: Full: VolumeTag = VXS012L6
  Storage Element 13: Full: VolumeTag = VXS013L6
  Storage Element 14: Full: VolumeTag = VXS014L6
  Storage Element 15: Full: VolumeTag = VXS015L6
  Storage Element 16: Full: VolumeTag = VXS016L6
  Storage Element 17: Full: VolumeTag = VXS017L6
  Storage Element 18: Full: VolumeTag = VXS018L6
  Storage Element 19: Full: VolumeTag = VXS019L6
  Storage Element 20: Full: VolumeTag = VXS020L6
  Storage Element 21: Full: VolumeTag = VXS021L6
  Storage Element 22: Full: VolumeTag = VXS022L6
  Storage Element 23: Full: VolumeTag = VXS023L6
  Storage Element 24: Full

this is the lsscsi -g
[1: 0: 0: 0] HP Ultrium tape SCSI 6-252W / dev / st0 / dev / SG7
[1: 0: 0: 1] HP MSL G3 Series mediumx 6.20 / dev / sch0 / dev / SG8
[3: 0: 0: 0] cd / dvd MATSHITA UJDA780 DVD / CDRW CA22 / dev / sr0 / dev / SG9
[5: 0: 0: 0] HP Ultrium tape SCSI 6-252W / dev / st1 / dev / sg10

please help.

+--
|This was sent by nirvana...@hotmail.com via 
Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--




--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols 

Re: [Bacula-users] Device is BLOCKED. User unmounted during wait for media/moun

2016-06-14 Thread Clark, Patti
Someone did a manual unmount command.  This blocks the drive until a mount 
command or a release command in bconsole or through one of the bacula gui 
interfaces.

Patti

From: nirvana 
Reply-To: "bacula-users@lists.sourceforge.net" 

Date: Tuesday, June 14, 2016 at 9:35 AM
To: "bacula-users@lists.sourceforge.net" 
Subject: [Bacula-users] Device is BLOCKED. User unmounted during wait for 
media/moun

someone to help me, I have a robot hp MSL2024 two drive, and storage status 
appears next thing I miss me? dir annex information file and sd

Device status:
Autochanger "Autochanger" with devices:
   "Drive-0" (/dev/nst0)
   "Drive-1" (/dev/nst1)
Device "FileStorage" (/home/bacula) is not open.
Device "Drive-0" (/dev/nst0) is not open.
Device is BLOCKED. User unmounted during wait for media/mount.
Drive 0 is not loaded.
Device "Drive-1" (/dev/nst1) is not open.
Drive 1 is not loaded.

dir.conf

Storage {
  Name = MSL2024
  Address = 192.90.90.97
  SDPort = 9103
  Password = ""
  Device = Autochanger
  Media Type = LTO-6
  Autochanger = yes
  Maximum Concurrent Jobs = 20

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = srvbacula-fd
  Schedule = "WeeklyCycle"
  Storage = MSL2024
  Messages = Standard
  Pool = Default
  Priority = 10

Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 365 days
  Maximum Volume Jobs = 1
  LabelFormat = File
}
Pool {
  Name = Scratch
  Pool Type = Backup
Pool {
  Name = FullPool
  Pool Type = Backup
  UseVolumeOnce = yes
  Volume Retention = 180 days
  Recycle = yes
  AutoPrune = yes
  Maximum Volume Jobs = 1
  Volume Retention = 365 days
  Maximum Volumes = 2
  LabelFormat = FP
}
Pool {
  Name = IncPool
  UseVolumeOnce = yes
  Pool Type = Backup
  Volume Retention = 180 days
  Recycle = yes
  AutoPrune = yes
  Maximum Volume Jobs = 1
  LabelFormat = IP
}
Pool {
  Name = DifPool
  UseVolumeOnce = yes
  Pool Type = Backup
  Volume Retention = 180 days
  Recycle = yes
  AutoPrune = yes
  Volume Retention = 6 months
  Maximum Volume Jobs = 26
  LabelFormat = DP
}



sd.conf

Autochanger {
  Name = Autochanger
  Device = Drive-0
  Device = Drive-1
  Changer Command = "/etc/bacula/scripts/mtx-changer %c %o %S %a %d"
  Changer Device = /dev/changer
}
Device {
  Name = Drive-0
  Drive Index = 0
  Media Type = LTO-6
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  Random Access = no;
  Autochanger = yes
  Maximum Spool Size = 8G
# LabelMedia = yes
# Maximum Concurrent Jobs = 1
}
Device {
  Name = Drive-1
  Drive Index = 1
  Media Type = LTO-6
  Archive Device = /dev/nst1
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  Random Access = no;
  Autochanger = yes
  Maximum Spool Size = 8G
  #Maximum Concurrent Jobs = 1
  #Maximum Changer Wait = 10
  #Maximum Rewind Wait = 10
  #Maximum Open Wait = 10
  #LabelMedia = yes
}

+--
|This was sent by nirvana...@hotmail.com via 
Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

2016-05-25 Thread Clark, Patti
I understand using the Maximum File Size directive, but the other two are 
unnecessary (documentation even says this) and is most likely causing your 
issues.  A lot of these directives came about with older technologies in the 
tape arena and should not be used.  You should read up on LTO from the 
consortium (lto.org) and on wikipedia.  There’s a lot of good info on the how 
and why of LTO.

Patti



From: "Rao, Uthra R. (GSFC-672.0)[ADNET SYSTEMS INC]" 
>
Date: Wednesday, May 25, 2016 at 2:04 PM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] LTO-7 tape drive settings in bacula 7.4.0

I have a Qualstar Tape library (RLS-87120) with three LTO7 tape drives.  It is 
connected to the backup server directly through Fiber Channel. I am  running 
bacula 7.4.  I ran a test backup which completed successfully but I found that 
the LTO-7 Tape was not used up to its full capacity of 6TB. It wrote 2.6TB and 
marked the tape “FULL” then moved on to the next tape in the pool. I expected 
the backup to write 6TB to the tape before marking it “FULL”? Here is the 
information from my bacula-sd.conf:

  Maximum File Size = 50G
  Maximum Network Buffer Size = 65536
 Maximum Block Size = 2097152

The MaxBlock: 8388608 is seen in the tapeinfo command on the tape drive0:

   # tapeinfo -f /dev/tapedr0
Product Type: Tape Drive
Vendor ID: 'IBM '
Product ID: 'ULTRIUM-HH7 '
Revision: 'FA11'
Attached Changer API: No
SerialNumber: '10WT004131'
MinBlock: 1
MaxBlock: 8388608
SCSI ID: 0
SCSI LUN: 0
Ready: yes
BufferedMode: yes
Medium Type: 0x78
Density Code: 0x5c
BlockSize: 0
DataCompEnabled: yes
DataCompCapable: yes
DataDeCompEnabled: yes
CompType: 0xff
DeCompType: 0xff
BOP: yes
Block Position: 0
Partition 0 Remaining Kbytes: -1
Partition 0 Size in Kbytes: -1
ActivePartition: 0
EarlyWarningSize: 0
NumPartitions: 0
MaxPartitions: 3

I am not sure if the issue I am seeing with the tape not being used to its full 
capacity is due to the “Max Block size” I have set? What is the recommended 
setting for LTO-7? If anybody could share your knowledge about this I would 
really appreciate it. I did some search on the internet and could not find any 
useful information.

Thank you
--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bconsole connection to Director flapping

2016-05-24 Thread Clark, Patti
It appears that you are connecting to “localhost” vs the name of your director. 
 The names have to match in all of the config files and the rule-of-thumb is 
don’t use localhost

If you need further assistance you will need to post your config files for your 
director and console.

Patti

From: "dirk@roeder.rocks" 
>
Date: Tuesday, May 24, 2016 at 10:37 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] bconsole connection to Director flapping

Hello together,
we have a running bacula instance working fine for months.
Since a few days we face multiple times per day the issue, that the
bconsole connection to director is failing.

We did not change the configuration nor restart any of the bacula
daemons. After a while (Between minutes and hours) the connection
bconsole to director works fine again.

The call looks like this:

root@backupHost:~# bconsole
Connecting to Director 127.0.0.1:9101

[...] Waiting some minutes

Director authorization problem.
Most likely the passwords do not agree.
If you are using TLS, there may have been a certificate validation error
during the TLS handshake.
Please see
http://www.bacula.org/en/rel-manual/Bacula_Freque_Asked_Questi.html#SECTION00376
for help.


I have read the suggestion. Passwords are correct, without changing
anything bconsole can connect after a few tries.

Unfortunately what discourages is the missing log informations.
The only thing I find in the logs is this line
   24-May 12:26 backupHost-sd: ERROR in dircmd.c:155 Connection request
from client failed.
which is logged by the storage daemon. I know from reading the MySQL
Database and stracing the processes, that backup jobs are running in the
time, while I cannot connect. The Max parallel Job Limit is not hit,
normally there are 5 jobs running, the limit is 20.

We are running bacula 5.2.6 on Debian 8.3

Any suggestions what could cause this or how I may locate the root cause
of this?

Thanks in advance!

Kind Regards
Dirk

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 3910 Unable to open device ""nas2016" (/nas2016)": ERR=dev.c:575 Could not open: /nas2016/bkp-nas-0419, ERR=no permission

2016-05-19 Thread Clark, Patti
Is your bacula user a member of the disk group on your SD system?

What is the state of selinux?  If it’s enforcing – set it to permissive or 
disable it.

And lastly, I have a disk storage area for testing.  The ownership is set to be 
bacula:root with 770 perms which works.  When I change it to nobody:nobody I 
get the same error below.  When I change the permissions to 777, it works.  If 
you can test your mount area without the nfs mount and it works, then nfs is 
your issue.  NFSv4 maps users.  I’m willing to bet that if you fall back to 
NFSv3 it will work (provided that firewalld is set to allow all of the ports – 
probably disable firewalld for the test).  If so, then you need to either use 
NFSv3 or fix your user issues with NFSv4 which is outside the scope of this 
list.

Patti



From: Stefan Lamby >
Reply-To: Stefan Lamby 
>
Date: Thursday, May 19, 2016 at 11:25 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] 3910 Unable to open device ""nas2016" (/nas2016)": 
ERR=dev.c:575 Could not open: /nas2016/bkp-nas-0419, ERR=no permission

Hi.
I am searching for hours, but I am not able to figure out, why I get this
error...
Yes, I know, it must be a permission setting but I am too stupid to find it even
after years on linux.

This is my setup:
Device {
  Name = nas2016
  Media Type = File
  Archive Device = /nas2016
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  # AutomaticMount = no;   # when device opened, read it
  # RemovableMedia = no;
  AutomaticMount = yes;
  RemovableMedia = yes;
  AlwaysOpen = no;
  Maximum Volume Size = 295GB;
  Requires Mount = no;
  Mount Point = /nas2016
#
#  nicht notwendig, NAS wird per /etc/fstab beim Booten gemountet.
#
#  Mount Command = "/bin/mount /nas01_backup";
#  Unmount Command = "/bin/umount /nas01_backup";
}

The Mount Point looks like that:
Notice, it is 777...
drwxrwxrwx.   3 nobody nobody  4096 19. Mai 16:14 nas2016

I am able to touch a file there using:
sudo -u bacula touch /nas2016/test
I can even see (when using vi instead of touch) the contents of the file using
the nas gui.

The nas is mounted via fstab and looks like this:
cat /proc/mounts | grep nas
nas2016.privat.i-concept.de:/volume1/backups /nas2016 nfs4
rw,relatime,vers=4.0,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.50,local_lock=none,addr=192.168.1.15
0 0

Storage { # definition of myself
  Name = backnix05-sd
  SDPort = 9103  # Director's port
  WorkingDirectory = "/var/spool/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 5
}

I am on CentOS 7, running backnix05-dir Version: 5.2.13 (19 February 2013)

The error is triggered when doing this:

*label
Automatically selected Catalog: IcCatalog
Using Catalog "IcCatalog"
The defined Storage resources are:
 1: File
 2: NAS01_STORAGE_BACKNIX
Select Storage resource (1-2): 2
Enter new Volume name: bkp-nas-0422
Defined Pools:
 1: Default
 2: File
 3: Scratch
 4: Full-Backup-Pool
 5: Incr-Backup-Pool
 6: Subseq-Backup-Pool
 7: File-Backup-Pool
 8: USB_FRIDAY_EVEN
 9: USB_FRIDAY_ODD
10: NAS01_POOL
Select the Pool (1-10): 10
Connecting to Storage daemon NAS01_STORAGE_BACKNIX at 192.168.1.50:9103 ...
Sending label command for Volume "bkp-nas-0422" Slot 0 ...
3910 Unable to open device ""nas2016" (/nas2016)": ERR=dev.c:575 Could not open:
/nas2016/bkp-nas-0422, ERR=Keine Berechtigung

Label command failed for Volume bkp-nas-0422.
Do not forget to mount the drive!!!

Bacula tries to open the file, but with an ls -l I am not able to see the file
/nas2016/bkp-nas-0422 either. Is it not there, because bacula is not able to
produce and is this caused by the permission error? Or is the error triggered at
a earlier point?

Just in case: Yes, sd and dir are running as user bacula.

ps axf | grep bacula
1305 ?Ssl0:00 /usr/sbin/bacula-dir -f -c
/etc/bacula/bacula-dir.conf -u bacula -g bacula
1315 ?Ssl0:00 /usr/sbin/bacula-fd -f -c /etc/bacula/bacula-fd.conf
-u root -g root
2999 pts/0S+ 0:00  |   \_ grep --color=auto bacula
2963 pts/1S+ 0:00  |   \_ vi /etc/bacula/bacula-sd.conf
1336 ?Ssl0:00 /usr/sbin/bacula-sd -f -c /etc/bacula/bacula-sd.conf
-u bacula -g tape

Please help, my backups are not running.

Thanks.
Stefan

--
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on 

Re: [Bacula-users] Fatal error: askdir.c:373 NULL Volume name. This shouldn't

2016-05-06 Thread Clark, Patti
No and no.  I also don’t perform updates on my backup servers willy nilly.

There are bugs in bacula regarding the "Null Volume name” error.  I have fewer 
contention issues with jobs requesting the same volume on different devices 
with some of the latest BEE versions.  I expect that some of those improvements 
will propagate to the community version in future releases.

Patti


On 5/6/16, 7:05 AM, "bdam"  wrote:

>If this ever happens to anyone else, see if either/both of these happened 
>during one of the volume writes:
>
>1. The disk which bacula uses for its logs became full
>2. Someone did an apt-get update/dnf update or whatever during the backup.
>
>1. Definitley just hit us so we had to start the whole job again, and it is 
>suspected 2. did too, and possible earlier, so it is possible some library or 
>component bacula was depending on got changed mid-backup?
>
>+--
>|This was sent by bill.dam...@yahoo.com via Backup Central.
>|Forward SPAM to ab...@backupcentral.com.
>+--
>
>
>
>--
>Find and fix application performance issues faster with Applications Manager
>Applications Manager provides deep performance insights into multiple tiers of
>your business applications. It resolves application problems quickly and
>reduces your MTTR. Get your free trial!
>https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
>___
>Bacula-users mailing list
>Bacula-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bacula-users
>
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] how to resume backup

2016-05-05 Thread Clark, Patti
Daniel,

Generally speaking, the resume or restart bconsole commands are new and tend to 
work best if one used a stop command on a job.  Network disconnects and other 
causal failures usually leave a job with an error state vs an incomplete state. 
 An incomplete state on a job is more likely to resume properly.  An error 
state usually means that you will have to restart or in this case start a new 
job from the beginning.  As the resume/restart feature matures, the expectation 
is that some of these conditions will be addressed and we won’t have to go back 
to the beginning quite so often.

Patti

From: Daniel <5960...@gmail.com<mailto:5960...@gmail.com>>
Date: Thursday, May 5, 2016 at 8:04 AM
To: "Clark, Patricia A." <clar...@ornl.gov<mailto:clar...@ornl.gov>>, 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>" 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Subject: Re: [Bacula-users] how to resume backup

Hello

I have just noticed that i have old version for the director

file daemon : 5.2.10
director: : 5.2.6

i am going to to update to latest version but even if i have 7.4
director is there any special procedure in resuming backup job ?

On 5.05.2016 14:43, Clark, Patti wrote:
What version of Bacula are you running?

Patti

From: Daniel 
<5960...@gmail.com<mailto:5960...@gmail.com><mailto:5960...@gmail.com>>
Date: Thursday, May 5, 2016 at 7:09 AM
To: 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net><mailto:bacula-users@lists.sourceforge.net>"
 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net><mailto:bacula-users@lists.sourceforge.net>>
Subject: [Bacula-users] how to resume backup

Hello Everyone
I'm new to Bacula . And i have tried to do several backups but sometimes
for some reason the machines loose connection and i was wondering when
the connection is reestablished how to resume the backup ? is there any
command to do this or should i start the backup from the begging

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net<mailto:Bacula-users@lists.sourceforge.net><mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users





--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to properly remove volumes in regards to the catalog?

2016-05-05 Thread Clark, Patti
I concur with Wanderlei.  Another aspect of moving volumes between storage 
devices is the need to change the mediatype.  Bacula bconsole does not provide 
a command to change the mediatype.

Patti

From: Wanderlei Huttel 
>
Date: Thursday, May 5, 2016 at 7:24 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: Re: [Bacula-users] How to properly remove volumes in regards to the 
catalog?

Hello Kern

I understand your concerns about make changes by hand in bacula database, but 
it wouldn't be interesting create an option in update to move volumes to 
another Storage?
An exemple: you can have 2 disks with 1TB (everyone with one storage) and you 
will change for a new one of 4TB. In this case is not necessary 2 storages but 
just one.
You can move all volumes from both 1TB hard disk to the new one 4TB.


Best Regards

Wanderlei Hüttel
http://www.huttel.com.br

2016-05-04 8:18 GMT-03:00 Kern Sibbald 
>:
Hello,

I strongly encourage users to use Bacula bconsole commands to accomplish *all* 
modifications of the catalog database.  Making changes by hand using SQL will 
quite often lead to inconsistencies in the catalog that can come back to haunt 
you. In addition, much of the SQL for MySQL and PostgreSQL is different, which 
can also cause problems.  Bacula via bconsole knows how to handle the database 
for both MySQL and Postges.  It is *extremely* rare that I do any modification 
of the database by hand -- maybe 2 times in 16 years.

Best regards,
Kern


On 05/04/2016 12:13 PM, Florian Splett wrote:

Hello and sorry for the late response.

I just wanted to thank you for all the information.
Definitely helped me decide on how to approach the issue.

Regards,

Florian S.

Am 28.04.2016 um 13:04 schrieb Wanderlei Huttel:
Hello Florian


2016-04-28 5:47 GMT-03:00 Florian Splett 
>:
Hello, bacula community.

The harddrive my bacula system is using to store its volumes is reaching
its maximum capacity, so I had the following plan for my network:

I want to manually move the old volumes onto an external harddrive and
keep that somewhere else.

Now what i want to ask is: Does this cause complications with the catalog?
It depends if they will be recycle soon or not
I guess so, since the volumes will be just gone.
Can I somehow tell the catalog that the volumes should be marked as
"unavailable" or something like that?
You can update Volume Status and set to "Archive" or "Disabled"
*update
1: Volume parameters
1: Volume Status

...or is it in fact perfectly fine to just remove those volumes?
Or you could create another Storage Resource in bacula-dir.conf and new Device 
in bacula-sd.conf and use this external harddrive as a Storage.
Move those Volumes to the external harddrive.

Get StorageId from New Storage:
*sqlquery
Entering SQL query mode.
Terminate each query with a semicolon.
Terminate query mode with a blank line.
Enter SQL query: select StorageID, Name, Autochanger from Storage;
+---+---+-+
| StorageID | Name  | Autochanger |
+---+---+-+
| 1 | StorageLocal1 |   0 |
| 3 | StorageLocal2 |   0 |
+---+---+-+

Use this below sql to get information about Volumes x Pool x Storage

select M.MediaId, M.VolumeName, M.StorageId, S.Name, M.PoolId, P.Name from 
Media M  left join Storage S on (M.StorageId = S.StorageId) left join Pool P on 
(M.PoolId = P.PoolId) order by M.VolumeName;

*sqlquery
Entering SQL query mode.
Terminate each query with a semicolon.
Terminate query mode with a blank line.
Enter SQL query: select M.MediaId, M.VolumeName, M.StorageId, S.Name, M.PoolId, 
P.Name from Media M  left join Storage S on (M.StorageId = S.StorageId) left 
join Pool P on (M.PoolId = P.PoolId) orde; by M.VolumeNam
+-+-+---+---++-+
| MediaId | VolumeName  | StorageId | Name  | PoolId | Name|
+-+-+---+---++-+
|  36 | Volume-Diario-0001  | 1 | StorageLocal1 |  6 | Diaria  |
|  51 | Volume-Diario-0002  | 1 | StorageLocal1 |  6 | Diaria  |
|  74 | Volume-Diario-0003  | 1 | StorageLocal1 |  6 | Diaria  |
|  89 | Volume-Diario-0004  | 1 | StorageLocal1 |  6 | Diaria  |
|  96 | Volume-Diario-0005  | 1 | StorageLocal1 |  6 | Diaria  |
|  97 | Volume-Diario-0006  | 1 | StorageLocal1 |  6 | Diaria  |
|  98 | Volume-Diario-0007  | 1 | StorageLocal1 |  6 | Diaria  |
...

Update the volumes that you have moved to external hard drive to NewStorage 
(change StorageId).


Re: [Bacula-users] how to resume backup

2016-05-05 Thread Clark, Patti
What version of Bacula are you running?

Patti

From: Daniel <5960...@gmail.com>
Date: Thursday, May 5, 2016 at 7:09 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] how to resume backup

Hello Everyone
I'm new to Bacula . And i have tried to do several backups but sometimes
for some reason the machines loose connection and i was wondering when
the connection is reestablished how to resume the backup ? is there any
command to do this or should i start the backup from the begging

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to recover from lost connection

2016-04-21 Thread Clark, Patti
I use stand-in clients that have the various NAS’s filesystems mounted with 
full read permissions.  I control the OS (RHEL or CentOS)  for stability and 
can use the EPEL packages for the client which are the latest version available 
to the community.  Is it the most efficient – maybe not, but it’s the most 
expedient.  Not only that, but if I replace the storage with something else, I 
can get always get the data there.  The NAS’s weakest link usually is the 
controller.  It doesn’t matter how HA the disks are if the controller goes bad.

Patti


From: Ian Douglas <i...@zti.co.za<mailto:i...@zti.co.za>>
Organization: Zero 2 Infinity
Reply-To: "i...@zti.co.za<mailto:i...@zti.co.za>" 
<i...@zti.co.za<mailto:i...@zti.co.za>>
Date: Thursday, April 21, 2016 at 1:37 PM
To: "Clark, Patricia A." <clar...@ornl.gov<mailto:clar...@ornl.gov>>
Cc: 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>" 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>,
 Josh Fisher <jfis...@pvct.com<mailto:jfis...@pvct.com>>
Subject: Re: [Bacula-users] How to recover from lost connection

hi All

On Thursday 21 April 2016 17:00:14 Clark, Patti wrote:

If you are using spooling (recommended) your spool size parameters are used
to control the size of your job spool and the total spool space available.
The example below shows 50GB of job spool size and a total of 1TB of spool
space.  You will need to try sizes that are appropriate for your
environment and see what performs best for you.  The job spool size when
reached will write to tape at that point.  It will continue with spooling
and writing to tape media until the end of data has been reached.  Also for
something like a NAS, it’s best to break the backups into more manageable
chunks.  Don’t try to backup the entire NAS in one job.  And yes, use the
heartbeatinterval feature.
   Maximum Spool Size = 1000GB;
   Maximum Job Spool Size = 50GB;

Okay your explanation is clearer to me than what is in the manual. I was going
to use Maximum File Size as a way to "chunk" it, even though I was dubious
about it.

Will implement your suggestions, thanks.
You don’t mention which version of Bacula that you are using.  If it is
7.4.x is has a resume command that will restart failed jobs roughly from

Versions vary, Director and FD on this machine (Gentoo) are the same, 7.05 but
the NAS boxes are running FreeNas and I had to compile a version for them in
VirtualBox, don't think the FreeBSD releases are at that level yet. Also was
trying to back up a site on the net running CentOS 6, which had it's own
issues. Eventually gave up, could not get the remote FD and local SD to talk
to each other, I think the problem is somewhere between my firewall (IPFire)
and the SD (CentOS 7 on HP server). So now I rsync remote to here and backup
from here. Initial rsync took 20 hours so it's probably better that way.

It would be nice if the various OSs could get their act together and get the
versions in sync :-)

Thanks, Ian
--
i...@zti.co.za<mailto:i...@zti.co.za> http://www.zti.co.za
Zero 2 Infinity - The net.works
Phone +27-21-975-7273


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to recover from lost connection

2016-04-21 Thread Clark, Patti
Volume sizing is used for disk-based volumes – do not use it for tape media 
volumes.

If you are using spooling (recommended) your spool size parameters are used to 
control the size of your job spool and the total spool space available.  The 
example below shows 50GB of job spool size and a total of 1TB of spool space.  
You will need to try sizes that are appropriate for your environment and see 
what performs best for you.  The job spool size when reached will write to tape 
at that point.  It will continue with spooling and writing to tape media until 
the end of data has been reached.  Also for something like a NAS, it’s best to 
break the backups into more manageable chunks.  Don’t try to backup the entire 
NAS in one job.  And yes, use the heartbeatinterval feature.


  Maximum Spool Size = 1000GB;

  Maximum Job Spool Size = 50GB;

You don’t mention which version of Bacula that you are using.  If it is 7.4.x 
is has a resume command that will restart failed jobs roughly from the point 
that the backup failed.  The documentation will talk about this under 
Incomplete Jobs.  I have found the use of this feature to be great when it 
works, otherwise it will start from the beginning as a new job using the job 
schedule to determine the level of the backup.  Client connection drops are hit 
and miss on the resume working.

Patti

From: Ian Douglas >
Organization: Zero 2 Infinity
Reply-To: "i...@zti.co.za" 
>
Date: Thursday, April 21, 2016 at 9:33 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Cc: Josh Fisher >
Subject: Re: [Bacula-users] How to recover from lost connection

hi All

On Thursday 21 April 2016 07:21:08 Josh Fisher wrote:

Yes, most likely. In the 3 hours or so it took to despool to tape, the
SD->FD TCP connection was dropped for some reason. I am of the opinion
that not all interfaces interpret IEE 802.3az Energy-Efficient Ethernet
in the same way, and when one interface puts its transmitter into sleep
mode, the receiving interface sees it as a dropped connection. Setting a
heartbeat should work, if that is what is happening.

Okay thanks, will add that. I guess I will have to start the backup over, how
do I remove what's in the catalog so that I can reset the tape?

Is there a way to write to tape every 50GB or so? I see setting for volume
size but as I understand it (newbie and all) that that refers to the tape size
not the "chunk" size.

Thanks, Ian

--
i...@zti.co.za http://www.zti.co.za
Zero 2 Infinity - The net.works
Phone +27-21-975-7273

--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula 7.0.5 and RHEL 7

2016-04-20 Thread Clark, Patti
No, there are no issues backing up RHEL 7 clients with RHEL 6 server as long as 
the bacula client software version is at the same version level or older.  This 
is true for any bacula client regardless of their OS.

Patti



From: Craig Shiroma 
>
Date: Tuesday, April 19, 2016 at 4:34 PM
To: Bacula Users 
>
Subject: [Bacula-users] Bacula 7.0.5 and RHEL 7

Hello,

I have a few RHEL 7 servers slated to be backed up soon.  Will Bacula 7.0.5 (on 
RHEL 6) have any problems backing up these servers?  Anything special I need to 
do or be aware of?

Best regards,
Craig
--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] build RPM for FD 5.2 in CentOS 6

2016-04-14 Thread Clark, Patti
Because tcp_wrappers is not configured for bacula by default.  Your hosts.allow 
file is not configured properly.  As this is not a linux list, please read up 
on tcp_wrappers, there is a lot of information available.  I would only use 
tcp_wrappers in a layered approach to security and only after using a firewall 
as my primary defense.

It would be more appropriate to use iptables to control access to the bacula 
ports.  Here are a couple of examples.  If you want tighter controls on your 
backup server and/or storage daemon server, research iptables configurations 
and test.  Perhaps someone on the list will contribute some of their examples 
of tighter firewall controls.

On the server and wide open:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 9101:9103 -j ACCEPT

On the client and only to the specific server replacing x.x.x.x with your 
bacula server’s ip address:

-A INPUT -s x.x.x.x -p tcp -m state --state NEW,RELATED,ESTABLISHED -m tcp 
--dport 9102 -j ACCEPT

Patti


From: Norbert Gomes 
>
Date: Thursday, April 14, 2016 at 5:36 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: Re: [Bacula-users] build RPM for FD 5.2 in CentOS 6

My problem seems to be with TCP wrappers, but I don't understand why :

Like this, it doesn't work :

hosts.deny :
ALL: ALL

hosts.allow :
9102: ALL
bacula-fd: ALL


But if I comment the hosts.deny file (or put ALL: ALL in the hosts.allow file), 
it works.


I don't see where I made a mistake ?

My process running is :
root  1142 1  0 11:02 ?00:00:00 bacula-fd -c 
/etc/bacula/bacula-fd.conf -u root -g root


Norbert

Le 14/04/2016 09:58, Norbert Gomes a écrit :
Hi

Thank you for the repositories, it works on a test machine (fresh CentOS 6.2), 
but not in the production one : in this last, the DIR can't contact the FD ( 
iptables and TCP wrappers seem to be OK)

Maybe I missed something elsewhere.

I'll give a look

Regards

Norbert


Le 13/04/2016 12:47, Simone Caronni a écrit :
Hi Norbert,

I'm the Bacula mantainer for Fedora. can you use the rebuild I do of current 
packages for RHEL/CentOS and Fedora? You can upgrade directly from CentOS/RHEL 
packages straight to them.
They have all features enabled. Please read the included README file in 
bacula-common.

Bacula 5.2: https://repos.fedorapeople.org/slaanesh/bacula/
Bacula 7.0: https://repos.fedorapeople.org/slaanesh/bacula7/
Bacula 7.4: http://copr.fedorainfracloud.org/coprs/slaanesh/Bacula/

If you look on Google there's some history behind the packages.
Please note that only the 7.4 branch is supported.

Regards,
--Simone





On Wed, Apr 13, 2016 at 12:28 PM, Norbert Gomes 
> wrote:
Hi

I have to build a rpm for the bacula-fd 5.2 in Cent OS 6, and follow
this page :
http://www.bacula.org/5.2.x-manuals/en/utility/utility/Bacula_RPM_Packaging_FAQ.html

I downloaded and extracted the bacula-5.2.13.tar.gz file, then :

Looked at the bacula.spec.in file in 
"platforms/rpms/redhat/bacula.spec.in"

Tried to build with this command :

rpmbuild -ba --define "build_centos6 1" --define "build_client_only 1"
platforms/rpms/redhat/bacula.spec.in

But if fails with
error: line 457: empty tag: Distribution:

The line in the spec file is :
Distribution: %{_dist}


I think that the _dist variable is empty because in the precedent lines,
the centos6 condition is missing :

%if %{centos5} || %{centos4} || %{centos3}
%define _dist %(grep CentOS /etc/redhat-release)
%endif

If I add a centos6 condition, the same error message appears.

Anyone has an idea, or is there another way to build a RPM file ?

Regards

Norbert


--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



--
You cannot discover new oceans unless you have the courage to lose sight of the 
shore (R. W. Emerson).

http://xkcd.com/229/
http://negativo17.org/




--
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and

Re: [Bacula-users] Write Retry on Network Error without Restarting the Job

2016-02-25 Thread Clark, Patti
Bacula Enterprise has this feature where a job can be restarted.  There is no 
work around other than breaking up the jobs into smaller chunks.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Duane Webber >
Date: Thursday, February 25, 2016 at 11:58 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] Write Retry on Network Error without Restarting the Job

Is there an option to have Bacula retry write operations without restarting the 
job?   A search shows the last time this question was asked was in 2010 (the 
answer was no) and I'm hoping there is a change since then.  I have remote 
backups that can take days, if not a week plus and it is not uncommon to run 
into a network error where Bacula aborts the backup job altogether.

If Bacula does not have this capability, is there a workaround for the same 
such that the end result is that the remote backups are visible to Bacula 
directly.

I appreciate any suggestions.

Thanks,

Duane
--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151=/4140___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Client multiplexing

2016-01-07 Thread Clark, Patti
Well, this particular client probably qualifies as slow local disk and fast 
network (1Gb).  Some of the file systems are presented to the client via 
Infiniband backend.  Generally, I’ve found the file system traversal to be the 
chokepoint.  Another reason to have multiple threads running and living with 
any slowness introduced by the multiplexing on the pipeline.  I can see 4 
threads, but only one has any usage.

The SD has only this backup going which was true when the backup was started.

The director has one other backup with a different SD and different network, 
although when I started the job, there were quite a few others in-progress at 
that time.

Patti

From: Dimitri Maziuk <dmaz...@bmrb.wisc.edu<mailto:dmaz...@bmrb.wisc.edu>>
Organization: BioMagResBank, UW-Madison
Date: Thursday, January 7, 2016 at 10:57 AM
To: 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>" 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Subject: Re: [Bacula-users] Client multiplexing

On 2016-01-07 07:25, Clark, Patti wrote:
...  Without creating separate jobs and fileset
definitions, is there any way to have Bacula multiplex these file
systems using one job?

Are you backing up slow disks over a very fast network? I would expect
this to be limited by net rather than disk, especially if you're also
multiplexing jobs and have the server reading from multiple clients at once.

Dimitri



--

--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Can not write data: Job is waiting for a mount request

2015-12-31 Thread Clark, Patti
My disk storage directory is owned by bacula:disk and the permissions are 770 
(drwxrwx—)

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: SPQR 
>
Reply-To: 
"bacula-users@lists.sourceforge.net" 
>
Date: Thursday, December 31, 2015 at 9:48 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] Can not write data: Job is waiting for a mount request

Hello,

I installed bacula 7 on Cent OS 7 according to this howto: 
http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/howto-install-bacula-7-on-centos-7-fresh-install-126395/
 .

Now I would like to backup a server but the job is stuck at "is waiting for a 
mount request".

The director shows the following messages:

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: label.c:362 Open file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Warning: mount.c:212 Open of file device 
"FileStorage" (/var/bacula/backups) Volume "Remote-0002" failed: 
ERR=file_dev.c:172 Could not 
open(/var/bacula/backups/Remote-0002,CREATE_READ_WRITE,0640): ERR=Keine 
Berechtigung

31-Dez 15:42 bacula-sd JobId 6: Please mount append Volume "Remote-0002" or 
label a new 

Re: [Bacula-users] auto-changer with 2 drives

2015-12-16 Thread Clark, Patti
David,

Your assumption is incorrect.  Both pools must have the same media type as 
defined for the tape drives if you want both pools to use both drives, 
otherwise, the media type can be different, but that is usually when you have 
different changers and/or storage daemons.  I have multiple pools and drives in 
my changer (all with the same media type) and they play happily together at the 
same time.  If you have further questions, posting your configuration, bacula 
version, OS version, etc are the details needed to provide more directed 
answers.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: David Lawley >
Date: Wednesday, December 16, 2015 at 10:41 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] auto-changer with 2 drives

Kind of a newbie question, yet asking for a confirmation of my research.

I have a Dell ML6000 changer/library with 2 LTO4 drives

bconsole list the ML6000 as my device.  The library is configured with
tapedrive0 and tapedrive1.

When I start jobs with different pools one of the drives will get used
but not the other, job remains queued even tho the other drive is free.

So what I seem to have found is that once a pool is used by a device
(this being the ML6000) It cannot access another pool, even tho the
device has 2 drives and one is idle.

Guessing the best way around this is to use each drive directly rather
than the library device?

tx






--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula Logs

2015-12-10 Thread Clark, Patti
You have provided no information on your OS, version of bacula, or anything 
else that may prove helpful like what happened on your system on November the 
9th?

Thoughts:
Bacula logrotate does not do a HUP, so while the rotate takes place, it is not 
effective until the bacula director service is restarted.  Highly likely on 
November 9th.
The log directory should be /var/log/bacula/bacula.log and ownership of the 
bacula log directory should be bacula:bacula, permissions should be at least 
750.
Do you have selinux running?  Is it in enforcing mode?

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Rickinfl 
>
Reply-To: 
"bacula-users@lists.sourceforge.net" 
>
Date: Thursday, December 10, 2015 at 7:52 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] Bacula Logs

Can anyone help with this or point me in the right direction?  It just stopped 
writing logs.

The bacula-dir file has this:

  append = "/var/log/bacula.log" = all, !skipped

But the folder is empty. I also have Bacula-Web installed and the logs stopped 
on Nov 9th also so wherever it read from is missing also. All logs stopped on 
Nov 9th.

Thanks,

+--
|This was sent by hahajunkem...@gmail.com via 
Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] File Daemon precedence...

2015-12-01 Thread Clark, Patti
The windows client installer creates two files, one for the director 
configuration which is what is below.  It may be used by the backup server 
admin for his/her configuration or not.  There should be a second configuration 
file for the bacula-fd.conf that lives on the client that is also created.  As 
long as both sides agree on the password all is good.  FYI, the linux installer 
only creates the client configuration file.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: Gilberto Nunes 
>
Date: Tuesday, December 1, 2015 at 4:14 PM
To: bacula-users 
>
Subject: Re: [Bacula-users] File Daemon precedence...

That is the settings from windows client.

# Client (File Services) to backup
Client {
  Name = server-fd-whatever-name
  Address = WHATEVER-SERVER
  FDPort = 9102
  Catalog = MyCatalog
  Password = "password"  # password for FileDaemon
  File Retention = 30 days# 30 days
  Job Retention = 6 months# six months
  AutoPrune = yes # Prune expired Jobs/Files
}

This file was created by bacula installer...
I just wanna know if the options AutoPrune and File Retention, for example, has 
priority over sames options into bacula-dir.conf... Or not!

Thanks

2015-12-01 18:12 GMT-02:00 Ana Emília M. Arruda 
>:
Hello Gilberto,

Where did you see that? File retention and autoprune are directives for client 
configuration in bacula-dir.conf, not bacula-fd.conf.

Best regards,
Ana

On Tue, Dec 1, 2015 at 6:42 PM, Gilberto Nunes 
> wrote:
Hello folks

Who has the precende: Client File Daemon or the FD settings inside 
bacula-dir.conf?!?

I ask it, 'cause I see some sets inside bacula-dir,conf that are also included 
into -fd.conf, like File Retention, AutoPrune, etc...

So, If I set AutoPrune = Yes in the client-fd.conf and AutoPrune = No in the 
bacula-dir.conf, who has the precedence?!?

Thanks a lot for any help.

--

Gilberto Ferreira
+55 (47) 9676-7530
Skype: gilberto.nunes36


--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





--

Gilberto Ferreira
+55 (47) 9676-7530
Skype: gilberto.nunes36

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows VSS Backup error

2015-10-28 Thread Clark, Patti
Sebastian,

I do recommend staying as close to current – 7.2 as you are comfortable with 
managing.  Many on the list are still using 5.X versions of Bacula for many 
reasons.  The problem with using any of the older versions is that unless you 
have a work around for bugs, your only recourse is to upgrade to a current 
version.

I did grab the links from another posting instead of reviewing the current 
status, so, no reason not to use the latest version.

Patti

From: 
"sebastian.gumpr...@t-systems.com<mailto:sebastian.gumpr...@t-systems.com>" 
<sebastian.gumpr...@t-systems.com<mailto:sebastian.gumpr...@t-systems.com>>
Date: Wednesday, October 28, 2015 at 2:58 AM
To: "Clark, Patricia A." <clar...@ornl.gov<mailto:clar...@ornl.gov>>, 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>" 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Subject: AW: [Bacula-users] Windows VSS Backup error

Hi Patti, Wanderlei,

thanks for your suggestions!
I’m not using spooling, so there should be now problem.
I’m going to increase the heartbeat interval now, first.

Then I’ll update Bacula. I see that you’re linking Bacula 5.2 backported and 
Bacula 7.0.
Are there general recommendations on what version to use?
There’s also the recent version 7.2 by the same maintainer:
https://copr-be.cloud.fedoraproject.org/results/slaanesh/Bacula/epel-6-x86_64/00119023-bacula/

Is there any reason you did not link this version?

Regards
Sebastian

Von: Clark, Patti [mailto:clar...@ornl.gov]
Gesendet: Dienstag, 27. Oktober 2015 18:40
An: Gumprich, Sebastian; 
bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>
Betreff: Re: [Bacula-users] Windows VSS Backup error

Sebastian,

First, it’s usually a bad idea to have your FD running a newer version than 
your director.  That is an unsupported combination and is likely to cause 
problems.  It can be the other way around, the director can be newer than your 
FD.  I understand that 5.0.0 is the default carried by RHEL6, but you can use 
these to be more current:
http://repos.fedorapeople.org/repos/slaanesh/bacula/<http://repos.fedorapeople.org/repos/slaanesh/bacula/README.txt>
http://repos.fedorapeople.org/repos/slaanesh/bacula7/<http://repos.fedorapeople.org/repos/slaanesh/bacula7/README.txt>

Next, the recommendation is to increase your heartbeat interval.  I use 300.  
This needs to be set on the director configuration AND the client 
configuration.  This should reduce the number of bsock errors.  You don’t 
mention if you are using spooling.  If the size of your spool file is too big 
you will have more disconnects particularly if your director or SD are busy.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: 
"sebastian.gumpr...@t-systems.com<mailto:sebastian.gumpr...@t-systems.com>" 
<sebastian.gumpr...@t-systems.com<mailto:sebastian.gumpr...@t-systems.com>>
Date: Tuesday, October 27, 2015 at 11:58 AM
To: 
"bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>" 
<bacula-users@lists.sourceforge.net<mailto:bacula-users@lists.sourceforge.net>>
Subject: [Bacula-users] Windows VSS Backup error

Hi bacula users,

we’re backing up Windows Server 2008 R2 64bit with Bacula using VSS.
Occasionally we’re getting the following error messages:

27-Oct 02:02 HOST JobId 44046: Generate VSS snapshots. Driver=\"Win64 VSS\", 
Drive(s)=\"C\"
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Task Scheduler 
Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"VSS Metadata 
Store Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Performance 
Counters Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"System Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"WMI Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): 
\"TermServLicensing\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"BITS Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Shadow Copy 
Optimization Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Registry 
Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"ASR Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"COM+ REGDB 
Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 4

Re: [Bacula-users] Windows VSS Backup error

2015-10-27 Thread Clark, Patti
Sebastian,

First, it’s usually a bad idea to have your FD running a newer version than 
your director.  That is an unsupported combination and is likely to cause 
problems.  It can be the other way around, the director can be newer than your 
FD.  I understand that 5.0.0 is the default carried by RHEL6, but you can use 
these to be more current:
http://repos.fedorapeople.org/repos/slaanesh/bacula/
http://repos.fedorapeople.org/repos/slaanesh/bacula7/

Next, the recommendation is to increase your heartbeat interval.  I use 300.  
This needs to be set on the director configuration AND the client 
configuration.  This should reduce the number of bsock errors.  You don’t 
mention if you are using spooling.  If the size of your spool file is too big 
you will have more disconnects particularly if your director or SD are busy.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory

From: 
"sebastian.gumpr...@t-systems.com" 
>
Date: Tuesday, October 27, 2015 at 11:58 AM
To: 
"bacula-users@lists.sourceforge.net" 
>
Subject: [Bacula-users] Windows VSS Backup error

Hi bacula users,

we’re backing up Windows Server 2008 R2 64bit with Bacula using VSS.
Occasionally we’re getting the following error messages:

27-Oct 02:02 HOST JobId 44046: Generate VSS snapshots. Driver=\"Win64 VSS\", 
Drive(s)=\"C\"
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Task Scheduler 
Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"VSS Metadata 
Store Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Performance 
Counters Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"System Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"WMI Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): 
\"TermServLicensing\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"BITS Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Shadow Copy 
Optimization Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"Registry 
Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"ASR Writer\", 
State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"COM+ REGDB 
Writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"DFS Replication 
service writer\", State: 0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: VSS Writer (BackupComplete): \"NTDS\", State: 
0x1 (VSS_WS_STABLE)
27-Oct 02:05 HOST JobId 44046: Error: lib/bsock.c:382 Socket is terminated=1 on 
call to client:172.29.209.71:9102
27-Oct 02:05 dir JobId 44046: Bacula dir 5.0.0 (26Jan10): 27-Oct-2015 02:05:06
  Build OS:   x86_64-redhat-linux-gnu redhat Enterprise release
  JobId:  44046
  Job:backup-HOST-adm.2015-10-27_01.00.01_11
  Backup Level:   Incremental, since=2015-10-26 02:01:25
  Client: \"HOST-adm\" 5.2.10 (28Jun12) Microsoft Windows 
Server 2008 R2 Enterprise Edition Service Pack 1 (build 7601), 
64-bit,Cross-compile,Win64
  FileSet:\"active_directory\" 2015-02-24 01:00:01
  Pool:   \"HOST-adm\" (From Job resource)
  Catalog:\"bacula\" (From Client resource)
  Storage:\"mgmt_storage\" (From Job resource)
  Scheduled time: 27-Oct-2015 01:00:01
  Start time: 27-Oct-2015 02:02:45
  End time:   27-Oct-2015 02:05:06
  Elapsed time:   2 mins 21 secs
  Priority:   10
  FD Files Written:   102
  SD Files Written:   102
  FD Bytes Written:   120,943,768 (120.9 MB)
  SD Bytes Written:   120,963,115 (120.9 MB)
  Rate:   857.8 KB/s
  Software Compression:   94.1 %
  VSS:yes
  Encryption: no
  Accurate:   no
  Volume name(s): HOST-adm9421
  Volume Session Id:  2448
  Volume Session Time:1444207056
  Last Volume Bytes:  121,406,963 (121.4 MB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK


27-Oct 02:05 HOST JobId 44046: Error: lib/bsock.c:382 Socket is terminated=1 on 
call to client:172.29.209.71:9102
What error is this? The backup seems 

Re: [Bacula-users] verify error with LTO hardware encryption

2015-10-20 Thread Clark, Patti
Mark,

Bacula is not involved in hardware (tape drive) encryption.

The encryption dialog is an exchange of key information between the drive
and the encryption key manager, in your case stenc.  If your tapes were
initially written to prior to using the encryption capability, the tapes
can never be hardware encrypted.  The opposite is also true, if you write
to the tapes the very first time using encryption, they can never be
written to unencrypted.

What testing did you perform prior to getting bacula involved?  I'm not
familiar with stenc, are you sure that it is conversing properly with your
hardware?

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory


On 10/19/15, 6:47 PM, "Mark D. Strohm"  wrote:

>Hello-
>
>Is there a trick to using Bacula with LTO hardware encryption enabled?
>
>With drive encryption turned on, verify jobs are hitting an I/O error
>reading the first record of a tape file.
>
>On a test job that went to files 78, 79 and 80, the error looks like this:
>
>19-Oct 14:03 ccnback-sd JobId 988: Ready to read from volume "CCNB12" on
>tape device "Magnum-224-LTO4"
>(/dev/tape/by-id/scsi-1IBM_ULTRIUM-TD4_1310025811-nst).
>19-Oct 14:03 ccnback-sd JobId 988: Forward spacing Volume "CCNB12" to
>file:block 78:0.
>19-Oct 14:19 ccnback-sd JobId 988: Error: block.c:429 Read error on fd=5
>at file:blk 79:0 on device "Magnum-224-LTO4"
>(/dev/tape/by-id/scsi-1IBM_ULTRIUM-TD4_1310025811-nst). ERR=Input/output
>error.
>19-Oct 14:19 ccnback-sd JobId 988: End of Volume at file 79 on device
>"Magnum-224-LTO4" (/dev/tape/by-id/scsi-1IBM_ULTRIUM-TD4_1310025811-nst),
>Volume ³CCNB12"
>
>dd can read the data from both files.  The boundary is on the phrase
>"varius sed feugiat².  The end of file 78, and the start of 79 are:
>
>"varius sed "
>
>"~\274\301\214^@^@\374^@^@^A.\300BB02^@^@^@^AV%X\226^@^@^@3\377\377\377\37
>6^@^@\313\233feugiat²
>
>I¹m using Bacula 7.0.5 with an LTO-4 drive and stenc 1.0.7 to control
>encryption.
>
>Any advice would be appreciated.
>
>Thank you very much.
>Mark
>
>
>--
>
>___
>Bacula-users mailing list
>Bacula-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/bacula-users


--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Timout problem with spooled jobs

2015-09-04 Thread Clark, Patti
One more suggestion, reducing the spool size has also helped.  I have a
mix of clients where initially everyone was using a 500GB spool size.  My
10Gb connected clients were fine, but my 1 Gb clients would timeout when
things were busy - I dropped the spool size to 50GB for the 1 Gb clients
and rarely have a timeout.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory



On 9/4/15, 7:08 AM, "Clark, Patti" <clar...@ornl.gov> wrote:

>My heartbeat interval is set to 300 - you should probably increase yours.
>I originally had a smaller interval and had some clients that would time
>out - particularly if they were Windows clients.
>
>Patti Clark
>Linux System Administrator
>R Systems Support Oak Ridge National Laboratory
>
>
>
>On 9/3/15, 7:16 PM, "Jeffrey R. Lang" <jrl...@uwyo.edu> wrote:
>
>>First let me say thanks to Kern and all those that have helped make
>>bacula a great tool.
>>
>>My current backup environment currently consists of a server, VTL and a
>>tape library connected by a 10GiG network.  Bacula currently at 5.2.13.
>>I plan on upgrading once I've integrated the tape library and thing were
>>working.  A good starting point for an upgrade.
>>
>>My issue is when jobs are destined for the tape library I have enable
>>job spooling, but these job always timeout after the first spooled block
>>of data is written to tape.  Here's an example:
>>
>>03-Sep 11:19 bkupsvr2-dir JobId 12570: No prior Full backup Job record
>>found.
>>03-Sep 11:19 bkupsvr2-dir JobId 12570: No prior or suitable Full backup
>>found in catalog. Doing FULL backup.
>>03-Sep 11:19 bkupsvr2-dir JobId 12570: Start Backup JobId 12570,
>>Job=bighorn-home.2015-09-03_11.19.32_03
>>03-Sep 11:20 bkupsvr2-dir JobId 12570: Using Device "LTO5-0" to write.
>>03-Sep 11:21 bkupsvr2-sd JobId 12570: 3304 Issuing autochanger "load slot
>>94, drive 0" command.
>>03-Sep 11:22 bkupsvr2-sd JobId 12570: 3305 Autochanger "load slot 94,
>>drive 0", status is OK.
>>03-Sep 11:22 bkupsvr2-sd JobId 12570: Volume "94L5" previously
>>written, moving to end of data.
>>03-Sep 11:23 bkupsvr2-sd JobId 12570: Ready to append to end of Volume
>>"94L5" at file=1724.
>>03-Sep 11:23 bkupsvr2-sd JobId 12570: Spooling data ...
>>03-Sep 15:07 bkupsvr2-sd JobId 12570: User specified Device spool size
>>reached: DevSpoolSize=322,122,610,512 MaxDevSpoolSize=322,122,547,200
>>03-Sep 15:07 bkupsvr2-sd JobId 12570: Writing spooled data to Volume.
>>Despooling 322,122,610,512 bytes ...
>>03-Sep 15:23 mmcnsd4-fd JobId 12570: Error: bsock.c:429 Write error
>>sending 253977 bytes to Storage daemon:bkupsvr2.gg.uwyo.edu:9103:
>>ERR=Connection timed out
>>03-Sep 15:23 mmcnsd4-fd JobId 12570: Fatal error: backup.c:1200 Network
>>send error to SD. ERR=Connection timed out
>>03-Sep 15:23 bkupsvr2-dir JobId 12570: Error: Director's comm line to SD
>>dropped.
>>03-Sep 15:23 bkupsvr2-dir JobId 12570: Error: Bacula bkupsvr2-dir 5.2.13
>>(19Jan13):
>>  Build OS:   x86_64-unknown-linux-gnu redhat Enterprise
>>release
>>  JobId:  12570
>>  Job:bighorn-home.2015-09-03_11.19.32_03
>>  Backup Level:   Full (upgraded from Incremental)
>>  Client: "mmonsd4-fd" 5.2.13 (19Jan13)
>>x86_64-unknown-linux-gnu,redhat,
>>  FileSet:"bighorn-home" 2015-06-12 08:21:10
>>  Pool:   "ARCC" (From Job resource)
>>  Catalog:"MyCatalog" (From Client resource)
>>  Storage:"NEO4200" (From Pool resource)
>>  Scheduled time: 03-Sep-2015 11:19:31
>>  Start time: 03-Sep-2015 11:20:26
>>  End time:   03-Sep-2015 15:23:28
>>  Elapsed time:   4 hours 3 mins 2 secs
>>  Priority:   10
>>  FD Files Written:   1,805,322
>>  SD Files Written:   0
>>  FD Bytes Written:   321,716,097,371 (321.7 GB)
>>  SD Bytes Written:   0 (0 B)
>>  Rate:   22062.5 KB/s
>>  Software Compression:   None
>>  VSS:no
>>  Encryption: no
>>  Accurate:   yes
>>  Volume name(s): 94L5
>>  Volume Session Id:  1
>>  Volume Session Time:1441300753
>>  Last Volume Bytes:  1,817,725,514,752 (1.817 TB)
>>  Non-fatal FD errors:2
>>  SD Errors:  0
>>  FD termination status:  Error
>>  SD termination status:  Error
>>  

Re: [Bacula-users] Timout problem with spooled jobs

2015-09-04 Thread Clark, Patti
My heartbeat interval is set to 300 - you should probably increase yours.
I originally had a smaller interval and had some clients that would time
out - particularly if they were Windows clients.

Patti Clark
Linux System Administrator
R Systems Support Oak Ridge National Laboratory



On 9/3/15, 7:16 PM, "Jeffrey R. Lang"  wrote:

>First let me say thanks to Kern and all those that have helped make
>bacula a great tool.
>
>My current backup environment currently consists of a server, VTL and a
>tape library connected by a 10GiG network.  Bacula currently at 5.2.13.
>I plan on upgrading once I've integrated the tape library and thing were
>working.  A good starting point for an upgrade.
>
>My issue is when jobs are destined for the tape library I have enable
>job spooling, but these job always timeout after the first spooled block
>of data is written to tape.  Here's an example:
>
>03-Sep 11:19 bkupsvr2-dir JobId 12570: No prior Full backup Job record
>found.
>03-Sep 11:19 bkupsvr2-dir JobId 12570: No prior or suitable Full backup
>found in catalog. Doing FULL backup.
>03-Sep 11:19 bkupsvr2-dir JobId 12570: Start Backup JobId 12570,
>Job=bighorn-home.2015-09-03_11.19.32_03
>03-Sep 11:20 bkupsvr2-dir JobId 12570: Using Device "LTO5-0" to write.
>03-Sep 11:21 bkupsvr2-sd JobId 12570: 3304 Issuing autochanger "load slot
>94, drive 0" command.
>03-Sep 11:22 bkupsvr2-sd JobId 12570: 3305 Autochanger "load slot 94,
>drive 0", status is OK.
>03-Sep 11:22 bkupsvr2-sd JobId 12570: Volume "94L5" previously
>written, moving to end of data.
>03-Sep 11:23 bkupsvr2-sd JobId 12570: Ready to append to end of Volume
>"94L5" at file=1724.
>03-Sep 11:23 bkupsvr2-sd JobId 12570: Spooling data ...
>03-Sep 15:07 bkupsvr2-sd JobId 12570: User specified Device spool size
>reached: DevSpoolSize=322,122,610,512 MaxDevSpoolSize=322,122,547,200
>03-Sep 15:07 bkupsvr2-sd JobId 12570: Writing spooled data to Volume.
>Despooling 322,122,610,512 bytes ...
>03-Sep 15:23 mmcnsd4-fd JobId 12570: Error: bsock.c:429 Write error
>sending 253977 bytes to Storage daemon:bkupsvr2.gg.uwyo.edu:9103:
>ERR=Connection timed out
>03-Sep 15:23 mmcnsd4-fd JobId 12570: Fatal error: backup.c:1200 Network
>send error to SD. ERR=Connection timed out
>03-Sep 15:23 bkupsvr2-dir JobId 12570: Error: Director's comm line to SD
>dropped.
>03-Sep 15:23 bkupsvr2-dir JobId 12570: Error: Bacula bkupsvr2-dir 5.2.13
>(19Jan13):
>  Build OS:   x86_64-unknown-linux-gnu redhat Enterprise
>release
>  JobId:  12570
>  Job:bighorn-home.2015-09-03_11.19.32_03
>  Backup Level:   Full (upgraded from Incremental)
>  Client: "mmonsd4-fd" 5.2.13 (19Jan13)
>x86_64-unknown-linux-gnu,redhat,
>  FileSet:"bighorn-home" 2015-06-12 08:21:10
>  Pool:   "ARCC" (From Job resource)
>  Catalog:"MyCatalog" (From Client resource)
>  Storage:"NEO4200" (From Pool resource)
>  Scheduled time: 03-Sep-2015 11:19:31
>  Start time: 03-Sep-2015 11:20:26
>  End time:   03-Sep-2015 15:23:28
>  Elapsed time:   4 hours 3 mins 2 secs
>  Priority:   10
>  FD Files Written:   1,805,322
>  SD Files Written:   0
>  FD Bytes Written:   321,716,097,371 (321.7 GB)
>  SD Bytes Written:   0 (0 B)
>  Rate:   22062.5 KB/s
>  Software Compression:   None
>  VSS:no
>  Encryption: no
>  Accurate:   yes
>  Volume name(s): 94L5
>  Volume Session Id:  1
>  Volume Session Time:1441300753
>  Last Volume Bytes:  1,817,725,514,752 (1.817 TB)
>  Non-fatal FD errors:2
>  SD Errors:  0
>  FD termination status:  Error
>  SD termination status:  Error
>  Termination:*** Backup Error ***
>
>If I turn off job spooling then the job will complete as expected.
>
>I have enable "heartbeats" on the client, storage daemon and director
>but that didn't help.
>
>My current client configuration is this:
>
>FileDaemon {  # this is me
>  Name = mmcnsd4-fd
>  FDport = 9102  # where we listen for the director
>  WorkingDirectory = /usr/local/bacula/working
>  Pid Directory = /usr/local/bacula/working
>  Maximum Concurrent Jobs = 20
>  Maximum Network Buffer Size = 262144
>  Heartbeat Interval = 60
>}
>
>My storage daemon configuration is:
>Storage { # definition of myself
>  Name = bkupsvr2-sd
>  SDPort = 9103  # Director's port
>  WorkingDirectory = "/usr/local/bacula/working"
>  Pid Directory = "/usr/local/bacula/working"
>  Maximum Concurrent Jobs = 20
>  Heartbeat Interval = 60
>}
>
>The only thing I can see is that with spooling turned off, data is
>constantly flowing over the network connection.  With the spooling
>turned on there is a quiet period on the network connection.
>
>I've talked with my network engineer about 

Re: [Bacula-users] Bacula daemon message- where did it come from?

2015-08-24 Thread Clark, Patti
Apologies for the late response to this thread.  Michael is correct in that 
these daemon messages are Bacula created and not delivered when created.  Not 
only the example that he provided, but when an attempt to connect to the 
director from an unknown and invalid client will generate these messages.  They 
only appear in the bacula log and the mail log when the director is shutdown, 
not when the incident occurs.  I consider this a bug in Bacula.  Not only a 
bug, but a security bug because the delay in reporting prevents responsive 
action if required.  I have checked my messages and traced them to our security 
team probing our systems for security holes.  I just don't see this from Bacula 
until the next director shutdown.  Where Bacula keeps the messages until then, 
I do not know.

Patti Clark
Linux System Administrator
RD Systems Support Oak Ridge National Laboratory

From: Michael Schwager 
mschwa...@mochotrading.commailto:mschwa...@mochotrading.com
Date: Thursday, August 13, 2015 at 1:09 PM
To: Heitor Faria hei...@bacula.com.brmailto:hei...@bacula.com.br
Cc: bacula-users 
bacula-users@lists.sourceforge.netmailto:bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] Bacula daemon message- where did it come from?

On Wed, Aug 12, 2015 at 8:15 AM, Heitor Faria 
hei...@bacula.com.brmailto:hei...@bacula.com.br wrote:
I agree with Ana with the fact it is probably not a bug. Even in the hypothesis 
Bacula is sending delayed messages this is the reason there is a time stamp on 
each log message. Yes: the connection error happened. Yes: daemon messages can 
be annoying and sometime lead incautious users to confusion if they only 
receive the message after the error is solved. But you can always opt out this 
messages or don't send them to the boss. =)

​For the record and benefit of any future Google searches (and I believe this 
problem is solved in any case), it may be instructive for the user to have 
Bacula call a script (as I have done) rather than bsmtp directly. Over the 
course of my Bacula installation I needed to verify the correct operation of 
all the component pieces of messaging delivery so I created a frontend to 
bsmtp. Bacula calls that, rather than bsmtp itself, so I can see what it is 
trying to do before it even gets to the mail system.

What I know is this:

  1.  Bacula sent a message at 11:00 UTC. This is not a hypothesis, it's a 
fact; in fact, this line in the script:

echo ARGUMENTS: 1:'$1' 2:'$2' 3:'$3' 4:'$4' 5:'$5' 6:'$6' 7:'$7' 
8: '$8' | logger -p mail.infohttp://mail.info
http://mail.info
produced this line in the mail.log:

Aug  9 11:00:01 ch0-backup-01 logger: ARGUMENTS: 1:'-h' 2:'mailhub' 3:'-f' 
4:'(Bacula) bac...@example.commailto:bac...@example.com' 5:'-s' 6:'Bacula 
daemon message' 7:'i...@example.commailto:7%3a%2...@example.com' 8: ''

  2.  Its subject line as you can see was Bacula daemon message which matches 
the following entry in my bacula-dir.conf:
​Messages {
  Name = Daemon
  mailcommand = /usr/local/bin/my_smtp -h mailhub -f \\(Bacula\) 
\bac...@example.commailto:bac...@example.com\\ -s \Bacula daemon 
message\ %r
  mail = i...@mochotrading.commailto:i...@mochotrading.com = all, !skipped
  append = /var/log/bacula/daemon.log = all, !skipped
}
  3.  It contained information that was over a week old.
  4.  I didn't know why.
  5.  Curiously, precisely the same time (at 11:00 UTC) I stop the Bacula 
daemons. Some time later I restart them.
  6.  I don't want it to happen again.

Opting out of alerts is very dangerous. They are always telling you something. 
They may be telling you that there is a problem in your system, or they may be 
a false alarm. Either way, they are telling you something should be fixed. 
Otherwise soon you are ignoring daemon messages as a nuisance and then you 
REALLY have some explaining to your boss when you miss the one that alerts you 
to a real problem!

In this case, it looks like there was a problem in the Bacula system that Kern 
repaired.

- Mike Schwager
  Linux Network Engineer, Mocho Trading LLC
  312-646-4783 Phone312-637-0011 Cell312-957-9804 Fax


This message is for the named person(s) use only. It may contain confidential 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please immediately delete it and all copies of it from your system, destroy any 
hard copies of it and notify the sender. You must not, directly or indirectly 
use, disclose, distribute, print, or copy any part of this message if you are 
not the intended recipient. Mocho Trading LLC reserves the right to monitor all 
e-mail communications through its networks. Any views expressed in this message 
are those of the individual sender, except where the message states otherwise 
and the sender is authorized to state them to be the views of any such entity.

Re: [Bacula-users] version error for database bacula. wanted 14 got 0

2015-06-11 Thread Clark, Patti
I am just getting caught up on the list .  You need to follow upgrade
instructions for your database.  There are scripts available to perform
the upgrade.  Depending on which version of 5.X that you were running,
there are different starting points.

Patti Clark
Linux System Administrator
RD Systems Support Oak Ridge National Laboratory



On 5/21/15, 9:54 AM, mthompson01 bacula-fo...@backupcentral.com wrote:

Good Day All,

My backup server HD died on Monday, so i decided to set up a new bacula
server with the lastest version 7.0.5. I've completed my configuration
however when I import my bacula.sql dump file from my old bacula server
which was running 5.x I've been getting this error version error for
database bacula . wanted 14 got 0.

I've done some checking online and i've seen similar wanted 14, got 12,
wanted 12, got 0 but no wanted 14, got 0 and all i've tried so far
has lead me nowhere.

Anyone seen this before, some assistance would be appreciated.

+--
|This was sent by mthompso...@jpccu.com.jm via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--

___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



--
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users