Bacula-users

Re: [Bacula-users] Bacula 5.0.3 hangs on MySQL 5.5 -- slow DELETE's

2013-11-15 02:01:29
Subject: Re: [Bacula-users] Bacula 5.0.3 hangs on MySQL 5.5 -- slow DELETE's
From: "Novosielski, Ryan" <novosirj AT ca.rutgers DOT edu>
To: Uwe Schuerkamp <uwe.schuerkamp AT nionex DOT net>, "Novosielski, Ryan" <novosirj AT ca.rutgers DOT edu>
Date: Fri, 15 Nov 2013 01:58:43 -0500
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10/09/2013 05:10 AM, Uwe Schuerkamp wrote:
> On Wed, Oct 09, 2013 at 01:39:52AM -0400, Novosielski, Ryan wrote:
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>> 
>> Hi all,
>> 
>> I upgraded my system from Bacula 2.2.8 to 5.0.3 awhile back and 
>> upgraded MySQL from 5.0 to 5.5 if I'm not mistaken. Since that
>> time, I've been having reliability problems. My schedule is to
>> run incrementals every day except for the 2nd and 4th Tuesday and
>> fulls on those days instead. When I tend to have trouble is on
>> the 2nd and 4th Tuesday. The backups on those days hang -- I need
>> to restart the storage daemon and the director it seems like to
>> clear the hang. That is another problem. However, I believe the
>> cause of the hang is a slow delete when the director goes to
>> purge the "full" tape. I have tried running 'status dir' right
>> before one of these backups is to take place and there is a pause
>> for probably more than a minute. MySQL at that time grows to 20%
>> of the system in CPU use. I checked 'mysqladmin processlist' and
>> I see what is taking so long is the following:
>> 
>> | 1063 | bacula | localhost | bacula | Query   | 71   | updating
>> | DELETE FROM File WHERE JobId IN (14485,14486,14487,14488,14489)
>> |
> 
> Hi Ryan,
> 
> how large is your File table? Have you tried a "repair table File"
> and maybe a dbcheck? Have you checked the indices for damage? Are
> you using innodb or MyISAM for your storage backend? How much RAM
> is installed in your box, and how large is your bacula database
> overall?
> 
> Depending on the number of rows in your file table, volume
> recycling (which involves deleting all records for jobs on that
> volume from the File table) can take a very long time. For large
> tapes and File tables (a billion rows or more) I have seen upwards
> of 4 hours for a single volume recycle, but thankfully those days
> are past now for us since we got rid of copy jobs and migrated to
> disk-based backups with separate devices, storages and pools for
> each client.

I'm expecting that my catalog is not even close to "large" for what
this software can handle, even on my older system. My file table has
1.4M rows. The whole database takes up 401M on disk. Not sure if
that's the measure of "large" you were looking for. My tables are
MyISAM. System is a 4x480MHz UltraSparc-II w/4GB of RAM. And like I
said, this machine functioned fine on Bacula 2.2.8 with MySQL probably
5.0. Whatever Blastwave was offering for packages (probably could get
the exact MySQL version if it mattered).

I seem to have improved the times some but I still have the hang, and
the only time it seems to occur is on days when a Full backup tape
needs to be recycled in order to be used. So I can't figure out
whether it's related to MySQL or not, but the hang happens and I can't
figure out what information would be helpful for troubleshooting it. A
truss shows all of the processes don't really seem to be doing
anything. A mount, however, will hang. Seems like the storage daemon
is locked up when this happens.

- -- 
 ____*Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*
 || \\UTGERS      |---------------------*O*---------------------
 ||_// Biomedical | Ryan Novosielski - Sr. Systems Programmer
 || \\ and Health | novosirj AT rutgers DOT edu - 973/972.0922 (2x0922)
 ||  \\  Sciences | OIT/EI-Academic Svcs. - ADMC 450, Newark
      `'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iEYEARECAAYFAlKFxh4ACgkQmb+gadEcsb5MxQCffhypL+eK65zVBdasD3WLpoKv
IeoAoJmNOor7b18OLz5Nje7TyzLns0g4
=WK3w
-----END PGP SIGNATURE-----


------------------------------------------------------------------------------
DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps
OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access
Free app hosting. Or install the open source package on any LAMP server.
Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native!
http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

<Prev in Thread] Current Thread [Next in Thread>