[Bacula-users] symbol lookup error: /usr/lib/libbaccats-7.0.2.so: undefined symbol: mysql_thread_safe

2014-04-28 Thread marcel.van.gereste...@steltix.com
Hi,

I upgraded my bacula 5.2.5 to 7.0.2  i had no compilation errors but the 
director is not starting anymore.
It does not log's anything in the bacula log.
When I run sbin/bacula-dir -d 200 -c bacula-dir.conf I get /sbin/bacula-dir: 
symbol lookup error: /usr/lib/libbaccats-7.0.2.so: undefined symbol: 
mysql_thread_safe

Please help don't know where to look anymore.
Its installed on ubuntu 12.04 server

The FD and SD are starting oke.

Marcel

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] mount command error does not cancel backup

2014-04-28 Thread le dahut
Hi Kern, thank you for answering.

24/04/2014 22:51, Kern Sibbald wrote :
> On 04/23/2014 11:00 AM, le dahut wrote:
>> Sorry to insist but am I the only one who've noticed that ?
>>
>> How can I solve this problem ?
>
> I am not sure those commands are used internally by Bacula anymore. They
> were originally written to support writing to CD drives, which is no
> longer implemented.

"Mount command" and "Unmount command" are still documented here :
http://www.bacula.org/5.2.x-manuals/en/main/main/Storage_Daemon_Configuratio.html


>  And so, I imagine that no one else uses them.

Thousands of servers will use it in a few months.

But maybe you have an idea on how to acheive this otherwise :
* DIR, SD and FD are on 3 different machines
* SD uses a Samba share
* Samba share must be mounted before backup and umounted after
?


> Are you sure that you python script is actually returning a "system"  or
> standard shell script error status?

Very very sure ;-)


>  If not, it is clear that Bacula
> won't know there is an error.  If you can absolutely show that your
> script returns a correct error status, or provide some script that does
> and the job is not failed, then it is probably worth submitting to the
> bugs database.

Done. http://bugs.bacula.org/view.php?id=2053

>
> Best regards,
> Kern
>>
>>
>> 14/04/2014 11:44, le dahut wrote :
>>> Hello,
>>>
>>> Bacula 5.2.5-0ubuntu6.2 (on 12.04 LTS)
>>>
>>> In bacula-sd.conf I have :
>>>  Name = FileStorage
>>>  LabelMedia = yes
>>>  Automatic Mount = yes
>>>  Archive Device = /mnt/backup
>>>  Media Type = File
>>>  Device type = File
>>>  Mount Point = /mnt/backup
>>>  Mount Command = "sudo /sbin/baculamount.py --mount"
>>>  Unmount Command = "sudo /sbin/baculamount.py --umount"
>>>  Maximum Open Wait = 60
>>>  Requires Mount = yes
>>>  Random Access = yes
>>>  Removable Media = yes
>>>  Always Open = no
>>>
>>> But even if "sudo /sbin/baculamount.py --mount" makes an error and exits
>>> with code 1, backup is not cancelled/marked as error but still happens.
>>>
>>>
>>> Why ?
>>> Is there a way to make backup NOT happen if "mount command" has failed ?
>>>
>>>
>>> Thanks,
>>> Klaas
>> --
>> Start Your Social Network Today - Download eXo Platform
>> Build your Enterprise Intranet with eXo Platform Software
>> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
>> Get Started Now And Turn Your Intranet Into A Collaboration Platform
>> http://p.sf.net/sfu/ExoPlatform
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>
>
>

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] MySQL slowness when initializing new disk volume

2014-04-28 Thread Uwe Schuerkamp
On Mon, Apr 21, 2014 at 08:25:50AM -0600, Lloyd Brown wrote:

> At the moment:
> 
> > mysql> select count(*) from File;
> > +---+
> > | count(*)  |
> > +---+
> > | 287794478 |
> > +---+
> > 1 row in set (0.00 sec)
> 
> 
> Definitely more than I expected.  Although, I have to say, RAM usage on
> this host isn't really much of a concern.  At the moment, the mysqld
> process is only using just over 1GB of RAM, and this host has 128G.
> Possibly I need to tune MySQL to keep more of the tables' contents in RAM.

If you want to retain MySQL as the db backend I'd strongly suggest
switching to InnoDB on a MariaDB server. 

We have a catalog of similar size (about 400,000,000 entries in the
file table, DB size around 100GB) with 64GB of RAM and the system hums
along just fine (about 35GB RAM allocated to the innodb buffer pool).

Cheers, Uwe

-- 
NIONEX --- Ein Unternehmen der Bertelsmann SE & Co. KGaA



--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] symbol lookup error: /usr/lib/libbaccats-7.0.2.so: undefined symbol: mysql_thread_safe

2014-04-28 Thread Levie, Jim

On Apr 28, 2014, at 2:38 AM, 
marcel.van.gereste...@steltix.com 
wrote:

Hi,

I upgraded my bacula 5.2.5 to 7.0.2  i had no compilation errors but the 
director is not starting anymore.
It does not log’s anything in the bacula log.
When I run sbin/bacula-dir -d 200 -c bacula-dir.conf I get /sbin/bacula-dir: 
symbol lookup error: /usr/lib/libbaccats-7.0.2.so: undefined symbol: 
mysql_thread_safe

Please help don’t know where to look anymore.
Its installed on ubuntu 12.04 server

Was the mysql development package installed when you built Bacula?




The information contained in this message, and any attachments, may contain 
privileged and/or proprietary information that is intended solely for the 
person or entity to which it is addressed. Moreover, it may contain export 
restricted technical data controlled by Export Administration Regulations (EAR) 
or the International Traffic in Arms Regulations (ITAR). Any review, 
retransmission, dissemination, or re-export to foreign or domestic entities by 
anyone other than the intended recipient in accordance with EAR and/or ITAR 
regulations is prohibited.
--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] symbol lookup error: /usr/lib/libbaccats-7.0.2.so: undefined

2014-04-28 Thread selanty
Hi Jim,

Sry didn't post a reply earlier but was not able to till now.
The problem is solved i got a direct reply.

this did the trick
===
The short answer to the problem is that with the default Makefile for the 
src/cats diretory, the build cannot find the libmysqlclient_r on Ubuntu 12.04. 
I'm not exactly sure why the configure works but the Makefile is not built 
properly but I am really out of my element when I get deep into building 
software on linux. At any rate, to get Bacula to build on Ubuntu 12.04.02 with 
mysql, use the proper configure file and make sure that works as expected. Then 
edit the src/cats/Makefile produced and change the line MYSQL_LIBS = to 
MYSQL_LIBS = -L/usr/lib/i386-linux-gnu -lmysqlclient_r

Note that this was the proper path for my Ubuntu 12.04.02 LTS 32 bit 
installation, but you may have a different path).
===
so every thing is runnig fine now.

+--
|This was sent by marcel.van.gereste...@steltix.com via Backup Central.
|Forward SPAM to ab...@backupcentral.com.
+--



--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula-dir ignores second File storage device

2014-04-28 Thread shockwavecs
Hey ,
I cannot get a new File storage device to be used. I can create the volumes and 
the volumes appear on the newly added SAN hard disk, but writing to the volumes 
fail and change the volume to Error. The Status window of the File-SAN storage 
device shows that the job is attempting to run on the primary Storage device 
and not this device. Ask for anything you can think of and I will provide. 
Thanks!

I have setup bacula-sd.conf to use a second hard disk as a File storage device. 
It is called File-SAN:

Device {
  Name = FileStorage-SAN
  Media Type = File
  Archive Device = /baculastorage-hqsan1/RAID10-slow-hqbacula1
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

I edit the bacula-dir.conf and edit all of the jobdefs to include Storage = 
File,File-SAN.
Example:

JobDefs {
  Name = "Linux Root Drive plus mysql databases"
  Type = Backup
  Level = Incremental
  FileSet = "Linux Root Drive plus mysql databases"
  Schedule = "WeeklyCycle"
  Storage = File,File-SAN
  Messages = Standard
  Pool = File
  Priority = 10
  Write Bootstrap = "/var/spool/bacula/%c.bsr"
}




Next, I edited the storage section of bacula-dir.conf to include the Storage 
with the file name of File-SAN:
..
..
Storage {
  Name = File
  Address = hqbacula1
  SDPort = 9103
  Password = "password"
  Device = FileStorage
  Media Type = File
}

Storage {
  Name = File-SAN
  Address = hqbacula1
  SDPort = 9103
  Password = "password"
  Device = FileStorage-SAN
  Media Type = File
}
..
..

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



--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula-dir ignores second File storage device

2014-04-28 Thread shockwavecs
Bacula documentation helped me out  [Embarassed] 

 An important thing to know is that Bacula treats disks like tape drives as 
much as it can. This means that you can only have a single Volume mounted at 
one time on a disk as defined in your Device resource in the Storage daemon's 
conf file. You can have multiple concurrent jobs running that all write to the 
one Volume that is being used, but if you want to have multiple concurrent jobs 
that are writing to separate disks drives (or partitions), you will need to 
define separate Device resources for each one, exactly as you would do for two 
different tape drives. There is one fundamental difference, however. The 
Volumes that you create on the two drives cannot be easily exchanged as they 
can for a tape drive, because they are physically resident (already mounted in 
a sense) on the particular drive. As a consequence, you will probably want to 
give them different Media Types so that Bacula can distinguish what Device 
resource to use during a restore. An example would be the following:

Device {
  Name = Disk1
  Media Type = File1
  Archive Device = /disk1
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Device {
  Name = Disk2
  Media Type = File2
  Archive Device = /disk2
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}


On top of that they actually say you can trick it by symbolically linking more 
drives to other disks. thats crazy and stupid IMHO.

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



--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bug when canceling a job in bconsole on 7.0.2?

2014-04-28 Thread Bill Arlofski
I believe I just found a (minor) bug in bconsole.

I have two jobs running that I wish to cancel. I typically cancel jobs with
higher numbers first so that new queued jobs have a chance to start as running
jobs are killed off.

So, in this situation, I chose #2 i the list of jobs to cancel:

*can
Select Job(s):
 1: JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
 2: JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Choose Job list to cancel (1-2): 2
JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Confirm cancel of 2 Jobs (yes/no): no

Ooops, It wanted to cancel both jobs. That is not what I wanted/expected.

Try again to be sure:

*can
Select Job(s):
 1: JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
 2: JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Choose Job list to cancel (1-2): 2
JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Confirm cancel of 2 Jobs (yes/no): no


Ok, let's try canceling the first one in the list:

*can
Select Job(s):
 1: JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
 2: JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Choose Job list to cancel (1-2): 1
JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Confirm cancel of 2 Jobs (yes/no):

It still wants to cancel both jobs.


*version
bacula-dir Version: 7.0.2 (02 April 2014) x86_64-pc-linux-gnu gentoo  
RevpolBacula


Thanks!


-- 
Bill Arlofski
Reverse Polarity, LLC
http://www.revpol.com/
-- Not responsible for anything below this line --

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bug when canceling a job in bconsole on 7.0.2?

2014-04-28 Thread Bill Arlofski

Whoops... Clicked send too soon.

Just a follow-up.

I went ahead and chose #1 in the list to see if it would cancel both jobs. It 
did:

*can
Select Job(s):
 1: JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
 2: JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Choose Job list to cancel (1-2): 1
JobId=25775 Job=Helpdesk.2014-04-28_20.30.00_52
JobId=25776 Job=Postbooks.2014-04-28_20.30.00_53
Confirm cancel of 2 Jobs (yes/no): yes
2001 Job Helpdesk.2014-04-28_20.30.00_52 marked to be canceled.
3000 JobId=25775 Job="Helpdesk.2014-04-28_20.30.00_52" marked to be canceled.
2001 Job Postbooks.2014-04-28_20.30.00_53 marked to be canceled.
3000 JobId=25776 Job="Postbooks.2014-04-28_20.30.00_53" marked to be canceled.


-- 
Bill Arlofski
Reverse Polarity, LLC
http://www.revpol.com/
-- Not responsible for anything below this line --

--
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users