Re: [Bacula-users] [Non-DoD Source] Re: Bacula 9.4.4 make error bsockcore timer unsinged int

2019-10-21 Thread Hicks, Daniel CTR OSD DMEA via Bacula-users
./configure \
--sysconfdir=/etc/bacula \
--sbindir=/sbin \
--oldincludedir=/usr/include/mysql \
--enable-smartalloc \
--enable-bat \
--disable-nls \
--with-mysql \
--with-systemd \
--with-pid-dir=/etc/bacula/working \
--with-subsys-dir=/etc/bacula/working \
--with-working-dir=/etc/bacula/working \
--with-plugindir=/etc/bacula/plugins \
--with-logdir=/var/log/bacula \
--with-dump-email=user@domain \
--with-job-email=user@domain \
--with-smtp-host=localhost \
--with-dir-password=### \
--with-fd-password=### \
--with-sd-password=### \
--with-mon-dir-password=### \
--with-mon-fd-password=### \
--with-mon-sd-password=### \
--with-db-password=### \

Sincerely

Dan Hicks | BWI | 916-999-2711

From: Radosław Korzeniewski 
Sent: Monday, October 21, 2019 3:17 AM
To: Hicks, Daniel CTR OSD DMEA 
Cc: Bacula-users@lists.sourceforge.net
Subject: [Non-DoD Source] Re: [Bacula-users] Bacula 9.4.4 make error bsockcore 
timer unsinged int

Hello,

pt., 18 paź 2019 o 20:09 Hicks, Daniel CTR OSD DMEA via Bacula-users 
mailto:bacula-users@lists.sourceforge.net>> 
napisał(a):
Hello all

I am trying to update my Bacula server to 9.4.4. The configure runs without 
error

What configure parameters did you setup?

but when I run make I get the following error.

/opt/Bacula-9.4.4/src/qt-consold/../lib/bsockcore.h:191: undefined reference to 
‘start_bsock_timer(BSOCKCORE*, unsinged int)’
Collect2: error: ld returned 1 exit status
Make[1]: ***[bat] Error 1
Make[1]: Leaving directory `/opt/Bacula-9.4.4/src/qt-console’


What object build generated this error?

This function is included in the main libbac library so it is a very strange 
why this compile fail here.

$ objdump -x -C libbac-9.6.0.so<http://libbac-9.6.0.so> | grep start_bsock_timer
00053ae0 g F .text 00ca  
_start_bsock_timer(BSOCK*, unsigned int)
00053bc0 g F .text 0005  
start_bsock_timer(BSOCK*, unsigned int)
00053bb0 g F .text 0005  
start_bsock_timer(BSOCKCORE*, unsigned int)

best regards
--
Radosław Korzeniewski
rados...@korzeniewski.net<mailto:rados...@korzeniewski.net>
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Non-DoD Source] Re: Bacula 9.4.4 make error bsockcore timer unsinged int

2019-10-21 Thread Hicks, Daniel CTR OSD DMEA via Bacula-users
This is the first error, I am updating on a CentOS 7.6.1810.

Sincerely 

Dan Hicks | BWI | 916-999-2711

-Original Message-
From: Martin Simmons  
Sent: Monday, October 21, 2019 3:28 AM
To: Hicks, Daniel CTR OSD DMEA 
Cc: bacula-users@lists.sourceforge.net
Subject: [Non-DoD Source] Re: [Bacula-users] Bacula 9.4.4 make error bsockcore 
timer unsinged int

>>>>> On Fri, 18 Oct 2019 17:51:55 +, Hicks, Daniel CTR OSD DMEA via 
>>>>> Bacula-users said:
> 
> Hello all
> 
> I am trying to update my Bacula server to 9.4.4. The configure runs without 
> error but when I run make I get the following error.
> 
> /opt/Bacula-9.4.4/src/qt-consold/../lib/bsockcore.h:191: undefined reference 
> to 'start_bsock_timer(BSOCKCORE*, unsinged int)'
> Collect2: error: ld returned 1 exit status
> Make[1]: ***[bat] Error 1
> Make[1]: Leaving directory `/opt/Bacula-9.4.4/src/qt-console'

Which OS?

Is that the first error?

__Martin


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


[Bacula-users] Bacula 9.4.4 make error bsockcore timer unsinged int

2019-10-18 Thread Hicks, Daniel CTR OSD DMEA via Bacula-users
Hello all

I am trying to update my Bacula server to 9.4.4. The configure runs without 
error but when I run make I get the following error.

/opt/Bacula-9.4.4/src/qt-consold/../lib/bsockcore.h:191: undefined reference to 
'start_bsock_timer(BSOCKCORE*, unsinged int)'
Collect2: error: ld returned 1 exit status
Make[1]: ***[bat] Error 1
Make[1]: Leaving directory `/opt/Bacula-9.4.4/src/qt-console'


Any help would be great.

Sincerely

Daniel Hicks


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


[Bacula-users] Solaris Install

2018-03-12 Thread Hicks, Daniel CTR OSD DMEA
Hello All

Does anyone have experience in installing Bacula 9.0.6 - Client on a Solaris 8 
system that does not have LVS / LZ4 installed.

Any tips for setting up the configure switches would be great.

Thanks

Daniel Hicks
Senior Systems Analyst
FutureWorld Technologies Inc.
DMEA IT Support

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


[Bacula-users] Which version works with GCC 4.8.5

2018-02-23 Thread Hicks, Daniel CTR OSD DMEA
Hello all

I am working on installing on a new system running RHEL 7.4 but unfortunately 
that RHEL version still only comes with GCC 4.8.5.

I have 9.0.3 installed on another network and would like to install a newer 
version on this other network.

Before everyone points to an online repository let me say that both network are 
isolated from the internet so moving data in and out is very difficult.

As always thanks for the help.


Daniel Hicks
Senior Systems Analyst
FutureWorld Technologies Inc.
DMEA IT Support

--
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] [Non-DoD Source] Re: Configuration for clients define director

2017-09-29 Thread Hicks, Daniel CTR OSD DMEA
My question is about running the configuration on clients prior to a make
and install. In the configuration script there are switches for defining
items such as the director, storage and file daemons passwords but there is
not a switch to define the director name or address for setting them within
Bacula-fd.conf. 

 

You can edit the file bacula-9.0.3/src/filed/bacula-fd.conf.in changing the
variable to a given and that works however, when a new build comes out that
change is needed again.  

 

It would be more streamline if there was either a switch for the
configuration or if bacula-fd.conf.in used a different variable than
hostname.

 

Daniel Hicks | 916-999-2711 | DMEA 

 

From: Dan Langille [mailto:d...@langille.org] 
Sent: Friday, September 29, 2017 5:23 AM
To: Hicks, Daniel CTR OSD DMEA <daniel.hicks@dmea.osd.mil>
Cc: bacula-users <bacula-users@lists.sourceforge.net>
Subject: [Non-DoD Source] Re: [Bacula-users] Configuration for clients
define director

 

On Sep 26, 2017, at 9:10 AM, Hicks, Daniel CTR OSD DMEA
<daniel.hicks@dmea.osd.mil <mailto:daniel.hicks@dmea.osd.mil> >
wrote:

 

Hello

 

I have been going through the configuration settings working on a script to
configure clients. I have not been able to find which switch is used to
define the director by name and address. 

 

Using Bacula 9.0.3 on Centos7 

 

What is your question?

 

In the bacula-fd.conf, you add a Director { } clause.

 

-- 
Dan Langille - BSDCan / PGCon
d...@langille.org <mailto:d...@langille.org> 

 

 



smime.p7s
Description: S/MIME cryptographic signature
--
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


[Bacula-users] Configuration for clients define director

2017-09-26 Thread Hicks, Daniel CTR OSD DMEA
Hello

 

I have been going through the configuration settings working on a script to
configure clients. I have not been able to find which switch is used to
define the director by name and address. 

 

Using Bacula 9.0.3 on Centos7 

 

Thank you

 

Daniel Hicks

Senior Systems Analyst

DMEA IT Support

 



smime.p7s
Description: S/MIME cryptographic signature
--
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] [Non-DoD Source] Re: Configuring Bacula-web 9.0.3 API error

2017-09-14 Thread Hicks, Daniel CTR OSD DMEA
Thanks Marcin, 

After looking at your comments I was not able to find the 
"/usr/share/baculum/htdocs/protected/API/Config/api.conf" file or the 
"/usr/share/baculum/htdocs/protected/API/Logs/baculum-api.log" file

I think that something was missing out of the make process. 

As for the baculum users file symbolic I thought the user file was supposed to 
be in /etc/baculum while the httpd config file looks at the baculum/htdocs area 
for users.

I will wipe out the install and re-do it.  

Daniel Hicks | 916-999-2711 | DMEA 


-Original Message-
From: Marcin Haba [mailto:ganius...@gmail.com] 
Sent: Thursday, September 14, 2017 10:54 AM
To: Hicks, Daniel CTR OSD DMEA <daniel.hicks@dmea.osd.mil>
Cc: Bacula-users@lists.sourceforge.net
Subject: [Non-DoD Source] Re: [Bacula-users] Configuring Bacula-web 9.0.3 API 
error

Hello Daniel,

Could you tell me what you see when you load http://localhost:9096 ?
Does the Apache listen on 9096?

Could you look at:

/var/log/httpd/baculum-api-access.log
/var/log/httpd/baculum-api-error.log

If the Apache listens on 9096 and you see the request in access log and you 
don't see anything wrong in error log then you can enable debug logging in the 
API file:

/usr/share/baculum/htdocs/protected/API/Config/api.conf

by switching in [api] section option debug to "1"

The log should be here:

/usr/share/baculum/htdocs/protected/API/Logs/baculum-api.log

I have also question why you needed to do symbolic links? These users are fully 
managed by Baculum API and Baculum Web interfaces.

Best regards.
Marcin Haba (gani)

On 14 September 2017 at 19:27, Hicks, Daniel CTR OSD DMEA 
<daniel.hicks@dmea.osd.mil> wrote:
> Hello
>
>
>
> I am trying to configure the web interface for Bacula 9.0.3. I have my 
> server side running and using the GUI interface works. I have 
> installed from bin for Centos7. I am using apache, I can access the 
> site localhost:9095 but not localhost:9096
>
>
>
> I have looked at the /etc/httpd/conf.d/baculum-api.conf and the 
> /etc/httpd/conf.d/baculum-web.conf they look good.
>
>
>
> I have updated the user file in 
> /etc/baculum/Config-api-apache/baculum.users
> and created a link in the baculum/htdocs/API/Config
>
> I have updated the user file in 
> /etc/baculum/Config-web-apache/baculum.users
> and created a link in the baculum/htdocs/Web/Config
>
>
>
> I have turned off the firewalld and SElinux is not running.
>
>
>
> When I go through the configuration on localhost:9095 I cannot 
> authenticate with the API
>
>
>
> Thanks
>
>
>
> Daniel Hicks
>
> Senior Systems Analyst
>
> DMEA IT Support
>
>
>
>
> --
>  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
>



--
"Greater love hath no man than this, that a man lay down his life for his 
friends." Jesus Christ

"Większej miłości nikt nie ma nad tę, jak gdy kto życie swoje kładzie za 
przyjaciół swoich." Jezus Chrystus


smime.p7s
Description: S/MIME cryptographic signature
--
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


[Bacula-users] Configuring Bacula-web 9.0.3 API error

2017-09-14 Thread Hicks, Daniel CTR OSD DMEA
Hello

I am trying to configure the web interface for Bacula 9.0.3. I have my server 
side running and using the GUI interface works. I have installed from bin for 
Centos7. I am using apache, I can access the site localhost:9095 but not 
localhost:9096

I have looked at the /etc/httpd/conf.d/baculum-api.conf and the 
/etc/httpd/conf.d/baculum-web.conf they look good.

I have updated the user file in /etc/baculum/Config-api-apache/baculum.users 
and created a link in the baculum/htdocs/API/Config
I have updated the user file in /etc/baculum/Config-web-apache/baculum.users 
and created a link in the baculum/htdocs/Web/Config

I have turned off the firewalld and SElinux is not running.

When I go through the configuration on localhost:9095 I cannot authenticate 
with the API

Thanks

Daniel Hicks
Senior Systems Analyst
DMEA IT Support

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


[Bacula-users] Bacula 9.0.3 tape pool definition reports incorrectly

2017-09-08 Thread Hicks, Daniel CTR OSD DMEA
Hello, 

 

I am using Bacula 9.0.3 on Centos7 and have the following issue when
reviewing storage from bat. I am using LTO-5 tapes that are 1.5TB raw and
3TB compressed. I believe that I have set the Bacula-dir.conf tape pool
definition correctly but when I look at bat after a single job wrote to
tape. That job consisting of 479MG in size but bat reports that 48% of the
tape is used. 

 

Please let me know if there is better way to define the tapes and if so
where and how. 

 

 

# Tape pool definition

Pool {

  Name = Tape

  Pool Type = Backup

  Recycle = yes

  AutoPrune = yes

  Volume Retention = 5 years

  Maximum Volume Bytes = 1500G

  Storage = HP-Overland-TL

}

 

Thanks

 

Daniel Hicks

Senior Systems Analyst

DMEA IT Support

 



smime.p7s
Description: S/MIME cryptographic signature
--
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] [Non-DoD Source] Re: Bacula 9.0.3 bat qwt requirements

2017-09-05 Thread Hicks, Daniel CTR OSD DMEA
Kern

 

Since this was on my test system I ignored the error and ran ‘make install’ 
that ran without errors. I was able to also start bat and after updating the DB 
it looks to be running fine. With the exception of a DB error that I noted in 
another message thread. 

 

Thanks for the reply. 

 

Daniel Hicks | 916-999-2711 | DMEA 

 

From: Kern Sibbald [mailto:k...@sibbald.com] 
Sent: Saturday, September 2, 2017 11:55 PM
To: Hicks, Daniel CTR OSD DMEA <daniel.hicks@dmea.osd.mil>; 
Bacula-users@lists.sourceforge.net
Subject: [Non-DoD Source] Re: [Bacula-users] Bacula 9.0.3 bat qwt requirements

 

Hello,

I am not sure why you mention qwt since Bat has not used it for a number of 
years.  Bat builds fine for me here and it builds on the machines where we are 
beginning to produce binaries.  I have a number of suggestions:

1. With output like "Make[1]: *** [bat] Error 1" it is impossible to find the 
problem. If you want help, you will need to supply some additional information:
   - Version of qt you are compiling/linking against
   - Full output from the compiles in src/qt-console

2. You can contact Bacula Systems and ask for a professional contract, which 
will supply you with working binaries on a number of platforms (not all) and 
world class support.

3. You can wait a bit, since we are now building binaries for distribution on 
the www.bacula.org <http://www.bacula.org>  web site, but this is at least a 
month off.  It *is* advancing though ...

Best regards,
Kern

On 08/31/2017 06:25 PM, Hicks, Daniel CTR OSD DMEA wrote:

Hello,

 

I am trying to test the 9.0.3 build but cannot get past the make process. I am 
configuring with the following but when I try to run make I get an error:

 

CFLAGS="-g -O2 -Wall" \

  ./configure \

--sysconfdir=/etc/bacula \

--sbindir=/sbin \

--oldincludedir=/usr/include/mysql \

--enable-smartalloc \

--enable-bat \

--disable-nls \

--with-pid-dir=/var/run/bacula \

--with-subsys-dir=/var/run/subsys \

--with-systemd=/usr/lib/systemd/system \

--with-mysql \

--with-working-dir=/etc/bacula/working \

 --with-plugindir=/etc/bacula/plugins \

--with-logdir=/var/log/bacula \

--with-dump-email=admin@localhost \

--with-job-email=admin@localhost \

--with-smtp-host=localhost

 

 

Make[1]: *** [bat] Error 1

Make[1]: Leaving directory ‘/usr/local/src/Bacula-9.0.3/src/qt-console’

 

= Error in / usr/local/src/Bacula-9.0.3/src/qt-console 

 

 

This error is on a test system that already has Bacula 7.4.7 running with bat 
enabled. 

 

Thank you

 

Daniel Hicks

Senior Systems Analyst

DMEA IT Support

 






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

 



smime.p7s
Description: S/MIME cryptographic signature
--
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] [Non-DoD Source] Re: database upgrade problem

2017-09-01 Thread Hicks, Daniel CTR OSD DMEA
Davide,

I am having this same issue. Can you clarify how to make sure the catalog 
upgrade is done. I did the update to tables without error but am not sure it is 
the same.

Thank you

Dan Hicks | 916-999-2711

From: Davide Franco [mailto:bacula-...@dflc.ch]
Sent: Friday, September 1, 2017 12:11 PM
To: Jerry Lowry ; bacula-users@lists.sourceforge.net
Subject: [Non-DoD Source] Re: [Bacula-users] database upgrade problem

Hi Jerry,

Make sure the catalog upgrade has been done without issue.

This seems to be related to Mariadb.

Good luck

Davide

On Fri, 1 Sep 2017 at 17:38, Jerry Lowry 
> wrote:
Hi,
I finally got my backup server upgraded to 9..0.3.  I have run the database 
update and it succeeded with out any errors. But I get this error any time I 
start a job:

01-Sep 00:20 kilchis-dir JobId 0: Fatal error: sql_create.c:84 Create DB Job 
record INSERT INTO Job 
(Job,Name,Type,Level,JobStatus,SchedTime,JobTDate,ClientId,Comment) VALUES 
('BackupCatalog.2017-09-01_00.20.18_03','BackupCatalog','B','F','C','2017-09-01 
00:20:16',1504250416,15,'') failed. ERR=Field 'StartTime' doesn't have a 
default value
Does this mean the update did not work?
thanks for the help!
jerry
--
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


[Bacula-users] Bacula 9.0.3 bat qwt requirements

2017-08-31 Thread Hicks, Daniel CTR OSD DMEA
Hello,

I am trying to test the 9.0.3 build but cannot get past the make process. I am 
configuring with the following but when I try to run make I get an error:

CFLAGS="-g -O2 -Wall" \
  ./configure \
--sysconfdir=/etc/bacula \
--sbindir=/sbin \
--oldincludedir=/usr/include/mysql \
--enable-smartalloc \
--enable-bat \
--disable-nls \
--with-pid-dir=/var/run/bacula \
--with-subsys-dir=/var/run/subsys \
--with-systemd=/usr/lib/systemd/system \
--with-mysql \
--with-working-dir=/etc/bacula/working \
 --with-plugindir=/etc/bacula/plugins \
--with-logdir=/var/log/bacula \
--with-dump-email=admin@localhost \
--with-job-email=admin@localhost \
--with-smtp-host=localhost


Make[1]: *** [bat] Error 1
Make[1]: Leaving directory '/usr/local/src/Bacula-9.0.3/src/qt-console'

= Error in / usr/local/src/Bacula-9.0.3/src/qt-console 


This error is on a test system that already has Bacula 7.4.7 running with bat 
enabled.

Thank you

Daniel Hicks
Senior Systems Analyst
DMEA IT Support

--
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] [Non-DoD Source] Re: Bacula kills tape drive and autoloader

2017-07-26 Thread Hicks, Daniel CTR OSD DMEA
Ana

 

Thanks for your help, your suggestions helped to get me started. I also needed 
to define within the source pool that is was a read pool for the job. 

 

Now I have two different issues, one where I can only write a small amount of 
data about 2GB of data and then the tape is marked full, the tapes are 3TB 
tapes. The other is when a larger migration job starts about 5 minutes in it 
will kill the tape drive taking it offline where the server no longer sees the 
SCSI devices for autoloader and tape drive. The only way to get it back is to 
reboot the autoloader/tape drive. 

 

Any ideas. 

 

Daniel Hicks | 916-999-2711 | DMEA 

 

From: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com] 
Sent: Monday, July 24, 2017 3:01 PM
To: Hicks, Daniel CTR OSD DMEA <daniel.hicks@dmea.osd.mil>
Cc: Bacula-users@lists.sourceforge.net
Subject: Re: [Non-DoD Source] Re: [Bacula-users] Bacula kills tape drive and 
autoloader

 

Hello Daniel,

 

You are welcome :-).

 

I see you are using /dev/sgX and /dev/nstX device names for the autochanger 
configuration. This is not recommended since they can be modified after server 
reboots.

 

Please use /dev/tape/by-id values or even udev rules. Also, I noticed you have 
a pool configured to use "Storage = HP-Overland". To avoid confusion, I would 
rename your tape library and tape drive resources:

 

 

bacula-sd.conf

 

Autochanger {

  Name = "

​HP-Overland-​

Autochanger"

  Device = HP-Overland

​-Drive-0​

  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"

  Changer Device = /dev/​tape/by-id/scsi-3500110a00093f5f0 

}

 

Device {

  Name = HP-Overland

​-Drive-0​

  Drive Index = 0

  Media Type = LTO-5

  Archive Device = /dev/​tape/by-id/scsi-3500110a00093f5f1-nst

  AutomaticMount = yes;

  AlwaysOpen = yes;

  RemovableMedia = yes;

  RandomAccess = no;

  AutoChanger = yes;

  Alert Command = "sh -c 'smartctl -H -l error /dev/sg3'"

}

 


​The Storage definition in bacula-dir.conf, should use

​ be something like:

 

Storage {

  Name = 

HP-Overlan

​d​

​-TL

  Device = HP-Overland-Autochanger

...

  Autochanger = yes

​}​

​

 

​Then your Tape pool should be configured to use the tape library and not the 
single drive:​

 

# Tape pool definition

Pool {

  Name = Tape

  Pool Type = Backup

  Recycle = yes

  AutoPrune = yes

  Volume Retention = 3 years

  Storage = HP-Overland​​-TL 

}

 

​Regarding what you mentioned about the migration job, I would recommend you to 
have the btape tests successfully run and a successful backup job writing to 
tape before dealing with a migration job.​

 

The "fill" btape test needs a blank tape. You should have it formated before 
using it with the fill btape test:

 

mt -f /dev/nst0 rewind

mt -f /dev/nst0 weof

 

If this does not solve this problem, please let us know the Bacula version you 
are using.

 

Best regards,

Ana



smime.p7s
Description: S/MIME cryptographic signature
--
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] [Non-DoD Source] Re: Bacula kills tape drive and autoloader

2017-07-24 Thread Hicks, Daniel CTR OSD DMEA
Thanks for the reply Ana.

 

Here is most of the info you asked. I will work on running btape again but now 
it is just timing out and saying that the device cannot be accessed when I try 
to run the fill test. 

 

[root@server ~]# lsscsi -g

[0:2:0:0]diskLSI  MR9260-8i2.13  /dev/sda   /dev/sg0 

[0:2:1:0]diskLSI  MR9260-8i2.13  /dev/sdb   /dev/sg1 

[1:0:1:0]cd/dvd  Slimtype DVD A  DS8ACSH   LP53  /dev/sr0   /dev/sg2 

[5:0:4:0]tapeHP   Ultrium 5-SCSI   Z58W  /dev/st0   /dev/sg3 

[5:0:4:1]mediumx HP   1x8 G2 AUTOLDR   3.50  /dev/sch0  /dev/sg4 

 

 

[root@server ~]# ls -laR /dev/tape

/dev/tape:

total 0

drwxr-xr-x  4 root root   80 Jul 21 11:43 .

drwxr-xr-x 21 root root 3560 Jul 21 11:45 ..

drwxr-xr-x  2 root root  100 Jul 21 11:45 by-id

drwxr-xr-x  2 root root   80 Jul 21 11:43 by-path

 

/dev/tape/by-id:

total 0

drwxr-xr-x 2 root root 100 Jul 21 11:45 .

drwxr-xr-x 4 root root  80 Jul 21 11:43 ..

lrwxrwxrwx 1 root root   9 Jul 21 11:45 scsi-3500110a00093f5f0 -> ../../sg4

lrwxrwxrwx 1 root root   9 Jul 21 11:43 scsi-3500110a00093f5f1 -> ../../st0

lrwxrwxrwx 1 root root  10 Jul 21 11:43 scsi-3500110a00093f5f1-nst -> ../../nst0

 

/dev/tape/by-path:

total 0

drwxr-xr-x 2 root root 80 Jul 21 11:43 .

drwxr-xr-x 4 root root 80 Jul 21 11:43 ..

lrwxrwxrwx 1 root root  9 Jul 21 11:43 
pci-:04:00.0-sas-0x500110a00093f5f2-lun-0 -> ../../st0

lrwxrwxrwx 1 root root 10 Jul 21 11:43 
pci-:04:00.0-sas-0x500110a00093f5f2-lun-0-nst -> ../../nst0

 

 

bacula-sd.conf

 

Autochanger {

  Name = "Autochanger"

  Device = HP-Overland

  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"

  Changer Device = /dev/sg4

}

 

Device {

  Name = HP-Overland

  Drive Index = 0

  Media Type = LTO-5

  Archive Device = /dev/nst0

  AutomaticMount = yes;

  AlwaysOpen = yes;

  RemovableMedia = yes;

  RandomAccess = no;

  AutoChanger = yes;

  Alert Command = "sh -c 'smartctl -H -l error /dev/sg3'"

}

 

With the current configuration I am now able to complete the following, but 
when I run btape and try to run the fill test. The tape devices go offline. I 
need to power cycle the tape device manually.

 

(stop bacula / storage daemon to run test)

bacula stop or

bacula-sd stop

 

(load tape into slot 0 on autochanger)

mtx -f /dev/sg4 load 1

 

TEST 1 - SUCCESSFUL

mt -f /dev/nst0 rewind

tar cvf /dev/nst0 .

mt -f /dev/nst0 rewind

tar tvf /dev/nst0

 

TEST 2 - SUCCESSFUL

btape -c bacula-sd.conf /dev/nst0

* test (command within the btape console)

 

TEST 3 - SUCCESSFUL

btape -c bacula-sd.conf /dev/nst0

* autochanger (command within the btape console)

 

 

TEST 4 -

btape -c bacula-sd.conf /dev/nst0

* fill (command within the btape console)

 

I am not sure if this is too much info. I have created a migration job. When I 
run it there are two jobs that are created, a migration and a backup but they 
just sit there waiting on tape device. 

 

bacula-dir.conf

 

Job {

  Name = Migrate-to-Tape

  Type = Migrate

  Level = Full

  Client = server-fd

  FileSet = "Full Set"

  Schedule = SaturdayNight

  Pool = File

  Selection Type = SQLQuery

  Selection Pattern = "

SELECT DISTINCT J.JobId, J.StartTime

  FROM Job J, Pool P

  WHERE P.Name = 'File'

AND P.PoolId = J.PoolId

AND J.Type = 'B'

AND J.JobStatus IN ('T','W')

AND J.JobBytes > 0

AND J.JobId NOT IN

   (SELECT PriorJobID

  FROM Job

 WHERE Type IN ('B','C')

   AND Job.JobStatus IN ('T','W')

   AND PriorJobId != 0)

  ORDER By J.StartTime

  LIMIT 1;

"

  Purge Migration Job = yes

  Storage = HP-Overland

  Maximum Concurrent Jobs = 6

  Messages = Standard

  Spool Data = yes

  Spool Attributes = yes

}

 

# Tape pool definition

Pool {

  Name = Tape

  Pool Type = Backup

  Recycle = yes

  AutoPrune = yes

  Volume Retention = 3 years

  Storage = HP-Overland

}

 

 

# File Pool definition

Pool {

  Name = File

  Pool Type = Backup

  Recycle = yes

  AutoPrune = yes

  Volume Retention = 30 days

  Maximum Volume Bytes = 500G

  Maximum Volumes = 100

  Next Pool = Tape

  LabelFormat = FVol-

}

 

 

Daniel Hicks | 916-999-2711 | DMEA 

 

From: Ana Emília M. Arruda [mailto:emiliaarr...@gmail.com] 
Sent: Saturday, July 22, 2017 5:52 AM
To: Hicks, Daniel CTR OSD DMEA <daniel.hicks@dmea.osd.mil>
Cc: Bacula-users@lists.sourceforge.net
Subject: [Non-DoD Source] Re: [Bacula-users] Bacula kills tape drive and 
autoloader

 

Hi Daniel,

 

It would be helpful if you could send to the list the configuration you are 
using in Bacula for the Autochanger and the btape fill output.

 

Also, it would be helpful the output of the following commands:

 

lsscsi -g

ls -laR /dev/tape

 

Best regards,

Ana

 

On Fri, Jul 21, 2017 at 4:13 PM, Hicks, Daniel CTR OSD DMEA 
<daniel.hicks@dmea.osd.mil <m

[Bacula-users] Bacula kills tape drive and autoloader

2017-07-21 Thread Hicks, Daniel CTR OSD DMEA
Hello all

I have been working on adding a HP Overland 8 tape drive to my Bacula backup 
system.

I have the system recognizing the tape and autoloader.

I can run mt and mtx command. I can write to and read from the tapes. I was 
able to successfully run btape test and autochanger but when I ran the (fill) 
test the device would be removed from /dev and the test would fail. I then need 
to power cycle the device.

I have looked at dmesg and there is nothing reported about btape or the 
devices. I have rebooted the server. I have reset the device to factory 
default. I have also powered the device off for at least 15 minutes.

Any advice would be great.

Daniel Hicks
Senior Systems Analyst
FutureWorld Technologies Inc.
DMEA IT Support

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


[Bacula-users] Btape - cannot pass

2017-07-20 Thread Hicks, Daniel CTR OSD DMEA
Hello all,

I am running Bacula 7.4.7 on a Centos 7 server with a HP-Overland tape / 
autoloader.

Within bconsole I can inventory the autoloader, mount and move tapes around.

However, when I run btape -c /etc/bacula/bacula-sd.conf /dev/nst0 I get the 
following:

20-July 11:54 btape: Fatal Error ad device.c:300 because:
Dev open failed: tape_dev.c:164 Unable to open device "HP-Overland" 
(/dev/nst0): ERR=Device or resource busy

Btape: butyl.c:199-0 Cannot open "HP-Overland" (/dev/nst0)
20-Jul 11:59 btape JobId 0: Fatal error: butyl.c:199 Cannot open "HP-Overland" 
(/dev/nst0)

Any help would be great

Thanks

Daniel Hicks
Senior Systems Analyst
FutureWorld Technologies Inc.
DMEA IT Support

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


[Bacula-users] MariaDB vs. MySQL

2017-06-29 Thread Hicks, Daniel CTR OSD DMEA
Hello all

 

I started using Bacula with 7 and it looked for MariaDB during the
installation, using the CentOS 7 rpms. When I went to 7.4.7 I had to compile
from source and was only able to get MySQL to work. 

 

My question is this, is there a way to get the 7.4.7 version to work with
MariaDB? Or is there a newer version that works better with MariaDB? Is
there a version that might have the database pre-compiled / built in? 

 

Thank you

 

Daniel Hicks

Senior Systems Analyst

Defense Microelectronics Activity (DMEA)

 



smime.p7s
Description: S/MIME cryptographic signature
--
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