Bacula-users

Re: [Bacula-users] How to use Bscan - Segmentation Fault

2016-05-12 08:15:09
Subject: Re: [Bacula-users] How to use Bscan - Segmentation Fault
From: Carlo Filippetto <carlo.filippetto AT gmail DOT com>
To: "Rubright, Matt" <mrubrigh AT uncc DOT edu>
Date: Thu, 12 May 2016 14:13:49 +0200
Waww...
This is a fedora 23,
and I don't remember to shutdown selinux!!

I'll try now.

Thank you




2016-05-11 15:05 GMT+02:00 Rubright, Matt <mrubrigh AT uncc DOT edu>:
Carlo, are you using a Linux system here with SELinux enabled and enforcing? If so, would you consider disabling it temporarily for a test run?

On Wed, May 11, 2016 at 8:21 AM, Carlo Filippetto <carlo.filippetto AT gmail DOT com> wrote:
Same problem:
..
..
..
done: 86%
done: 87%
11-mag-2016 13:44:12 bscan: bscan.c:697-0 1,802,240 file records. At file:blk=115:2,342,871,863 bytes=495,987,212,289
11-mag-2016 13:44:26 bscan: bscan.c:518-0 SOS_LABEL: Found Job record for JobId: 285
11-mag-2016 13:46:01 bscan: bscan.c:697-0 1,835,008 file records. At file:blk=115:3,700,058,232 bytes=497,343,640,669
11-mag-2016 13:47:37 bscan: bscan.c:697-0 1,867,776 file records. At file:blk=115:3,844,306,989 bytes=497,487,765,718
11-mag-2016 13:49:16 bscan: bscan.c:697-0 1,900,544 file records. At file:blk=116:463,474,675 bytes=498,401,385,955
11-mag-2016 13:51:01 bscan: bscan.c:697-0 1,933,312 file records. At file:blk=116:1,738,102,610 bytes=499,675,336,571
11-mag-2016 13:51:44 bscan: bscan.c:518-0 SOS_LABEL: Found Job record for JobId: 286
11-mag-2016 13:51:49 bscan: bscan.c:1063-0 Fileset "FS-alfresco-dump-log" already exists.
11-mag-2016 13:51:49 bscan: bscan.c:1181-0 Could not update JobId=172764 record. ERR=bdb.h:101 Update failed: affected_rows=0 for UPDATE Job SET JobStatus='T',EndTime='2015-11-01 05:40:19',ClientId=28,JobBytes=48886350,ReadBytes=0,JobFile
s=2858,JobErrors=0,VolSessionId=383,VolSessionTime=1459260753,PoolId=15,FileSetId=4,JobTDate=1446352819,RealEndTime='2015-11-01 05:40:19',PriorJobId=0,HasBase=0,PurgedFiles=0 WHERE JobId=172764

11-mag-2016 13:51:49 bscan: bscan.c:1279-0 Created JobMedia record JobId 172764, MediaId 2
11-mag-2016 13:51:49 bscan: bscan.c:518-0 SOS_LABEL: Found Job record for JobId: 287
..
..

May 11 13:51:49 bacula-DR1-gaz audit: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 subj=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 pid=13873 comm="bscan" exe="/opt/bacula-7.2.0_2/sbin/bscan" sig=11
May 11 13:51:49 bacula-DR1-gaz kernel: bscan[13873]: segfault at 70 ip 00000000004077b1 sp 00007ffd43aa7500 error 4 in bscan[400000+51000]
May 11 13:51:50 bacula-DR1-gaz abrt-hook-ccpp: Process 13873 (bscan) of user 0 killed by SIGSEGV - dumping core


What does it means?






2016-05-11 11:50 GMT+02:00 Carlo Filippetto <carlo.filippetto AT gmail DOT com>:
Now I trying with 2 options:
1 - # ulimit -c unlimited
2 - ricompile bacula with "--disable-largefile"

Now it's at 7% of 530Gb of volumes.. we will see!

Thank you




2016-05-11 10:55 GMT+02:00 Heitor Faria <heitor AT bacula.com DOT br>:

s/dashes/hyphens/g

=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II

Próximas aulas telepresencial ao-vivo - 02 de maio: http://www.bacula.com.br/agenda/

Ministro treinamento e implementação in-company Bacula: http://www.bacula.com.br/in-company/

Ou assista minhas videoaulas on-line: http://www.bacula.com.br/treinamento-bacula-ed/

61 8268-4220

Site: www.bacula.com.br | Facebook: heitor.faria

========================================================================

Enviado por TypeApp

Em 11 de mai de 2016, em 5:45 AM, Heitor Faria <heitor AT bacula.com DOT br> escreveu:

Sorry, Carlo,

Didn't notice the backlash that can also be used to "escape" the pipe.
Anyway ai think there is a very small possibility that bscan is messed by dashes (-) in you volume names or by another syntax problem that is not being acused.

Regards,
=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II

Próximas aulas telepresencial ao-vivo - 02 de maio: http://www.bacula.com.br/agenda/

Ministro treinamento e implementação in-company Bacula: http://www.bacula.com.br/in-company/

Ou assista minhas videoaulas on-line: http://www.bacula.com.br/treinamento-bacula-ed/

61 8268-4220

Site: www.bacula.com.br | Facebook: heitor.faria

========================================================================

Enviado por TypeApp

Em 11 de mai de 2016, em 5:04 AM, Carlo Filippetto < carlo.filippetto AT gmail DOT com> escreveu:
Hi,
can you explain better what you want to say?

I'm reading the Bacula's document (The Leading Open Source Backup Solution - Utility Programs - August 14, 2015)
and find
    bscan -c bacula-sd.conf -v -V Vol001\|Vol002 /dev/nst0

so I think that this is not the problem.


Thank you


2016-05-10 17:47 GMT+02:00 Heitor Faria <heitor AT bacula.com DOT br>:

Carlo: scape the list of volume names with quotes you must. Pipe is a special shell character.

Regards,
=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II

Próximas aulas telepresencial ao-vivo - 02 de maio: http://www.bacula.com.br/agenda/

Ministro treinamento e implementação in-company Bacula: http://www.bacula.com.br/in-company/

Ou assista minhas videoaulas on-line: http://www.bacula.com.br/treinamento-bacula-ed/

61 8268-4220

Site: www.bacula.com.br | Facebook: heitor.faria

========================================================================

Enviado por TypeApp

Em 10 de mai de 2016, em 12:38 PM, Carlo Filippetto < carlo.filippetto AT gmail DOT com> escreveu:
Hi Heitor,

this is my information:
Version: 7.2.0 (14 August 2015)

I compile Bacula with:
./configure --prefix=/opt/bacula-7.2.0 --with-mysql --with-db-name=bacula --with-db-user=bacula --with-db-password=bacula --sysconfdir=/etc/bacula/


The command I use is:
bscan -V P-Virtual-b-0003\|P-Virtual-b-0004 -d1 -dt -m -v -s -S -c /etc/bacula/bacula-sd.conf /data/bacula/datb/ >> /var/log/bacula_import 2>&1


LOGS:
/var/log/messages

May  9 14:48:59 bacula-DR1-gaz audit: ANOM_ABEND auid=4294967295 uid=0 gid=0 ses=4294967295 subj=system_u:system_r:system_cronjob_t:s0-s0:c0.c1023 pid=28589 comm="bscan" exe="/opt/bacula-7.2.0/sbin/bscan" sig=11
May  9 14:49:00 bacula-DR1-gaz kernel: bscan[28589]: segfault at 70 ip 00000000004077c1 sp 00007ffd1bb75760 error 4 in bscan[400000+51000]
May  9 14:49:00 bacula-DR1-gaz abrt-hook-ccpp: Process 28589 (bscan) of user 0 killed by SIGSEGV - dumping core




/var/log/bacula_import
..
..
09-mag-2016 14:48:59 bscan: bscan.c:1072-0 Created FileSet record "FS-dns"
09-mag-2016 14:48:59 bscan: bscan.c:1187-0 Updated Job termination record for JobId=28 Level=Full TermStat=T
09-mag-2016 14:48:59 bscan: bscan.c:1279-0 Created JobMedia record JobId 28, MediaId 1
09-mag-2016 14:48:59 bscan: bscan.c:1046-0 Created Client record for Client: dns02-bck-fd
09-mag-2016 14:48:59 bscan: bscan.c:1129-0 Created new JobId=38 record for original JobId=186282

After this line nothing more was written in this log


Thank you




2016-05-10 15:10 GMT+02:00 Heitor Faria <heitor AT bacula.com DOT br>:
this is the last log:
bscan[28589]: segfault at 70 ip 00000000004077c1 sp 00007ffd1bb75760 error 4 in bscan[400000+51000]

What does it means?
Hello, Carlo: what is the version of this bscan? How do you installed Bacula? What is the exact bscan command are you using to fetch the error? Can you post the error output?
Btw: Ana is right. Both MySQL and Postgresql have also replication features that might perform what you want with lesser computational effort and storage stress. 

Regards,
Thanks

2016-05-09 12:58 GMT+02:00 Carlo Filippetto <carlo.filippetto AT gmail DOT com>:
Hi all,
I'm trying to create a secondary site using the bscan feature to recreate the Catalog.

I use this command:
bscan -V V-Daily-0005  -d1 -dt -m -v -s -S -c /etc/bacula/bacula-sd.conf /data/bacula/data/ >> /var/log/bacula_import 2>&1

When I user little volumes I don't have any problem running a test
bscan -V V-Daily-0005 -v -c /etc/bacula/bacula-sd.conf /data/bacula/data/ >> /var/log/bacula_import 1>&2  

I have the output:
Records would have been added or updated in the catalog:
     1 Media
     1 Pool
    23 Job


If I use a big Volume (700Gb) I receive
Errore di segmentazione (core dump creato)
Error segmentation fault (core dump created)

Why?
What can I do?

Thank you




------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users

--
=======================================================================
Heitor Medrado de Faria  - LPIC-III | ITIL-F |  Bacula Systems Certified Administrator II
Próximas aulas telepresencial ao-vivo - 02 de maio: http://www.bacula.com.br/agenda/
Ministro treinamento e implementação in-company Bacula: http://www.bacula.com.br/in-company/
Ou assista minhas videoaulas on-line: http://www.bacula.com.br/treinamento-bacula-ed/
Site: www.bacula.com.br | Facebook: heitor.faria
========================================================================





------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users



------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
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>