Hey Josip,

 FINALLY we have success!

[root@ops:/etc/bacula] #service bacula-dir start
Starting bacula-dir:                                       [  OK  ]


[root@ops:/etc/bacula] #service bacula-dir status
bacula-dir (pid 3547) is running...

And the test results are good:

[root@ops:/etc/bacula] #bacula-dir -c /etc/bacula/bacula-dir.conf -f -d 200
bacula-dir: dird.c:194-0 Debug level = 200
bacula-dir: address_conf.c:264-0 Initaddr 0.0.0.0:9101
bacula-dir: runscript.c:284-0 runscript: debug
bacula-dir: runscript.c:285-0  --> RunScript
bacula-dir: runscript.c:286-0   --> Command=/usr/libexec/bacula/
make_catalog_backup.pl MyCatalog
bacula-dir: runscript.c:287-0   --> Target=
bacula-dir: runscript.c:288-0   --> RunOnSuccess=1
bacula-dir: runscript.c:289-0   --> RunOnFailure=0
bacula-dir: runscript.c:290-0   --> FailJobOnError=1
bacula-dir: runscript.c:291-0   --> RunWhen=2
bacula-dir: runscript.c:284-0 runscript: debug
bacula-dir: runscript.c:285-0  --> RunScript
bacula-dir: runscript.c:286-0   -->
Command=/usr/libexec/bacula/delete_catalog_backup
bacula-dir: runscript.c:287-0   --> Target=
bacula-dir: runscript.c:288-0   --> RunOnSuccess=1
bacula-dir: runscript.c:289-0   --> RunOnFailure=0
bacula-dir: runscript.c:290-0   --> FailJobOnError=1
bacula-dir: runscript.c:291-0   --> RunWhen=1
27-Mar 19:31 bacula-dir: ERROR TERMINATION at bsys.c:556
bacula-dir is already running. pid=4090
Check file /var/run/bacula-dir.9101.pid

And I can connect to the console!!

[root@ops:/etc/bacula] #bconsole
Connecting to Director localhost:9101
1000 OK: 1 bacula-dir Version: 7.0.5 (28 July 2014)
Enter a period to cancel a command.
*

And even tried it out on my own config and all was right with the world:

[root@ops:~] #bconsole
Connecting to Director ops.jokefire.com:9101
1000 OK: 1 ops.jokefire.com Version: 7.0.5 (28 July 2014)
Enter a period to cancel a command.
*st dir
ops.jokefire.com Version: 7.0.5 (28 July 2014) x86_64-redhat-linux-gnu
redhat Enterprise release
Daemon started 27-Mar-15 19:36. Jobs: run=0, running=0 mode=0,0
 Heap: heap=679,936 smbytes=270,726 max_bytes=271,793 bufs=245 max_bufs=254

Scheduled Jobs:
Level          Type     Pri  Scheduled          Job Name           Volume
===================================================================================
Incremental    Backup    10  28-Mar-15 03:05    ops.jokefire.com   *unknown*
Incremental    Backup    10  28-Mar-15 03:05    web1.jokefire.com  *unknown*
Full           Backup    11  28-Mar-15 03:10    Jokefire BackupCatalog
*unknown*
====

Running Jobs:
Console connected at 27-Mar-15 19:41
No Jobs running.
====

Terminated Jobs:
 JobId  Level    Files      Bytes   Status   Finished        Name
====================================================================
   716  Incr     63,208    1.543 G  OK       28-Sep-13 14:47
beta.jokefire.com
   717  Incr        114    259.7 M  OK       28-Sep-13 14:50
mail.jokefire.com
   718  Incr        114    259.7 M  OK       28-Sep-13 14:51
mail.jokefire.com
   719  Incr        142    335.8 M  OK       28-Sep-13 14:52
chef.jokefire.com
   720  Full          1    257.6 M  OK       28-Sep-13 14:53
Jokefire_BackupCatalog
   721  Diff      3,401    1.800 G  OK       29-Sep-13 03:09
cloud.jokefire.com
   722  Diff    150,708    7.741 G  OK       29-Sep-13 03:59
beta.jokefire.com
   723  Diff     20,427    1.108 G  OK       29-Sep-13 04:09
mail.jokefire.com
   724  Diff     44,217    1.282 G  OK       29-Sep-13 04:42
chef.jokefire.com
   725  Full          1    264.4 M  OK       29-Sep-13 04:44
Jokefire_BackupCatalog

====
*


One thing I neglected to mention was that my backup tapes were at all
points fine and not affected by the incident that had wrecked my bacula
system. So it looks like I'm good to go!

The bacula community is absolutely phenomenal and a pleasure to deal with.
As always!!

Thanks so much for everyone's help!

Tim

On Fri, Mar 27, 2015 at 6:28 PM, Josip Deanovic <djosip+n...@linuxpages.net>
wrote:

> Quoting message written on Friday 2015-03-27 17:55:52:
> > These are the binaries I have installed:
> >
> > [root@ops:/etc/yum.repos.d] #rpm -qa | grep bacula
> > bacula-client-7.0.5-1.el5.x86_64
> > bacula-storage-7.0.5-1.el5.x86_64
> > bacula-director-7.0.5-1.el5.x86_64
> > bacula-libs-sql-7.0.5-1.el5.x86_64
> > bacula-libs-7.0.5-1.el5.x86_64
> > bacula-console-7.0.5-1.el5.x86_64
> > bacula-common-7.0.5-1.el5.x86_64
> >
> > And those are from the slaanesh-Bacula repository.
> >
> > I'm still thinking that my bacula director is just not supporting mysql.
> >
> > I would think by this message I'm getting when trying to install bacula
> > mysql:
> >
> > Package bacula-director-mysql is obsoleted by bacula-director, trying to
> > install bacula-director-7.0.5-1.el5.x86_64 instead
> > Package bacula-director-7.0.5-1.el5.x86_64 already installed and latest
> > version
> > Nothing to do
> >
> > That the new bacula director would support mysql.
> >
> > But that doesn't appear to be the case. That alternatives command is
> > pretty straight forward and usually works. Not really sure why it's not
> > working this time around.
> >
> > I hope I can get to the bottom of this. I'll keep digging. And I
> > appreciate all your responses, and any help offered.
>
> Ok, I have just did this on some test server (centos 6.6 x86_64)...
>
> Before you go through the same steps I did, I would strongly suggest
> that you:
> 1. uninstall all the bacula packages (copy your bacula configuration
>    somewhere just in case
> 2. remove your current bacula repo file from /etc/yum.repos.d
> 3. yum clean all
>
> Then continue with this steps:
>
> wget "
> https://repos.fedorapeople.org/repos/slaanesh/bacula7/epel-bacula7.repo";
>
> mv epel-bacula7.repo /etc/yum.repos.d
>
> yum install bacula-director-mysql.x86_64
>
> At that this point "bacula-dir -c /etc/bacula/bacula-dir.conf -f -d 200"
> would show that we are using postgres by default and we can also check
> this using this ls command:
>
> # ls -l /usr/lib64/libbaccats.so
> lrwxrwxrwx 1 root root 31 Mar 27 23:01 /usr/lib64/libbaccats.so ->
> /etc/alternatives/libbaccats.so
>
> # ls -l /etc/alternatives/libbaccats.so
> lrwxrwxrwx 1 root root 35 Mar 27 23:01 /etc/alternatives/libbaccats.so ->
> /usr/lib64/libbaccats-postgresql.so
>
> Now we can proceed with the alternatives command:
> alternatives --set libbaccats.so /usr/lib64/libbaccats-mysql.so
>
> And if we check the path again we will see that the symlink has been
> changed and it now pointing to mysql version of the library:
>
> # ls -l /etc/alternatives/libbaccats.so
> lrwxrwxrwx 1 root root 30 Mar 27 23:13 /etc/alternatives/libbaccats.so ->
> /usr/lib64/libbaccats-mysql.so
>
> If we check the comand "bacula-dir -c /etc/bacula/bacula-dir.conf -f -d
> 200" again, it will show these lines near the end of the output:
>
> bacula-dir: dir_plugins.c:148-0 Load dir plugins
> bacula-dir: dir_plugins.c:150-0 No dir plugin dir!
> bacula-dir: mysql.c:697-0 db_init_database first time
> bacula-dir: mysql.c:165-0 mysql_init done
>
> That clearly shows that bacula-dir now supports mysql.
>
> At that point you just need to install the rest of the mysql packages
> that didn't came as bacula-dir-mysql dependency:
> yum install bacula-client.x86_64 bacula-console.x86_64 bacula-
> storage.x86_64
>
> And that should be it.
> Now you just need to configure bacula-dir, bacula-sd, bacula-fd(s)
> and bconsole. May God Have Mercy on Your Soul while you are at it. :-)
>
>
> --
> Josip Deanovic
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>



-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to