Bacula-users

[Bacula-users] bextract 5.0.3/64bit hangs ? 100% cpu, no result

2011-07-11 05:45:10
Subject: [Bacula-users] bextract 5.0.3/64bit hangs ? 100% cpu, no result
From: Pierre Bourgin <pierre.bourgin AT free DOT fr>
To: bacula-users AT lists.sourceforge DOT net
Date: Mon, 11 Jul 2011 11:42:35 +0200 (CEST)
Hello,

I have installed bacula 5.0.3 on a CentOS 5.4 x86_64 system (RPM x86_64 rebuilt 
from source) and it's working great since a year.

After a mistake I mad, I need to restore my catalog.
So I tried to use bextract in order to restore a 51 MB file from a volume-disk 
file of 20GB.
bextract hangs a lot: 100% CPU used, no I/O wait at all.
After several minutes of run, I stopped it without any success: restored file 
with created, but empty.

Since I really need this file, I've tried the 32bit version of bextract on the 
same system: worked fine !

I've tried to debug it by the use of strace, but I'm not clever enough to find 
anything usefull in these outputs.
(please find the strace files attached to this email)

So I don't know if it's a bug from the packaging or a bextract bug related to 
64bit platform ?

If someone has a clue ...

My environmment:

# uname -a
Linux b52 2.6.18-194.11.3.el5 #1 SMP Mon Aug 30 16:19:16 EDT 2010 x86_64 x86_64 
x86_64 GNU/Linux

# cat /etc/redhat-release
CentOS release 5.4 (Final)

# rpm -aq --last |grep bacula
bacula-mysql-5.0.3-1                          Fri 24 Sep 2010 01:43:58 PM CEST
bacula-libs-5.0.3-1                           Fri 24 Sep 2010 01:43:54 PM CEST


Here the command I used for the 64bit problem:

# strace -t -o /root/bextract-5.0.3-64bit.strace /usr/sbin/bextract -v -b 
/var/lib/bacula/BackupCatalog.bsr /local/bacula/diskStorage 
/local/bacula/restore/bextract


The commands I used to run the 32bit version of bextract:

# mkdir /root/bacula-mysql-5.0.3-1.i386.rpm.files
# cd /root/bacula-mysql-5.0.3-1.i386.rpm.files
# rpm2cpio /path/to/bacula-mysql-5.0.3-1.i386.rpm | cpio -id
# rpm2cpio /path/to/bacula-libs-5.0.3-1.i386.rpm |cpio -id

# cd /root/bacula-mysql-5.0.3-1.i386.rpm.files
# strace -t -o /root/bextract-5.0.3-32bit.strace -E LD_LIBRARY_PATH=./usr/lib 
./usr/sbin/bextract -v -b /var/lib/bacula/BackupCatalog.bsr 
/local/bacula/diskStorage /local/bacula/restore/bextract

[ Process PID=25401 runs in 32 bit mode. ]
bextract: butil.c:281 Using device: "/local/bacula/diskStorage" for reading.
11-Jul 10:58 bextract JobId 0: Ready to read from volume "DISK-LYO-0012" on 
device "ext3-sd-combined" (/local/bacula/diskStorage).
11-Jul 10:58 bextract JobId 0: Forward spacing Volume "DISK-LYO-0012" to 
file:block 0:994085004.
bextract JobId 0: -rw-------   1 bacula   bacula      52973239 2011-07-10 
23:10:16  /local/bacula/restore/bextract/var/lib/bacula/bacula.sql
11-Jul 10:58 bextract JobId 0: End of Volume at file 0 on device 
"ext3-sd-combined" (/local/bacula/diskStorage), Volume "DISK-LYO-0012"
11-Jul 10:58 bextract JobId 0: End of all volumes.
1 files restored.

regards, 
Pierre Bourgin

Attachment: bextract-5.0.3-32bit.64bit.strace.zip
Description: application/download

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users