[Bacula-users] extract/restore from backup-file using bextract

2010-06-30 Thread crazyzed

Hello I'm new to this forum and I really need some help with bacula.

I have a home server (gentoo linux) with all of baculas components installed 
on, backup is done on "/boot" and "/" partitions on the server and stored as a 
file on another HD. There is only 1 backup-file which contains only the latest 
full backup. I use mysql as database!

I really don't know much about bacula, I followed a howto to get it setup over 
a year ago and once it was running I kind of forgot all about baculas config 
and such.

Now I have managed to remove a whole bunch of files from the server and it's no 
longer possible to boot into linux :(

I have booted a LiveCD and managed to copy the backup-file to my desktop 
computer, and also what I think is the bootstrap-file?? a file located in 
/var/lib/bacula/t1000.bsr  (the server name is t1000).

Now basically what I want to do is: from my desktop computer extract ALL files 
from the backup-file to a temporary location /tmp/t1000 

The backup-file "t1000Vol0001" is modified "May 31 2010"
and the ?bootstrap-file? "t1000.bsr" is modified "Jul 7 2009"
My question now is if this is correct? Is the bootstrap-file created once then 
left alone or should it change with every backup?

I should say at this point that all config files for bacula was removed by my 
mistake so I can't see how things were setup. The config files, of course, is 
included in the backup-file though!

Now to the possibility to extract files, can this be done from my situation?

On my desktop computer in /tmp I have placed both "t1000Vol0001" and 
"t1000.bsr" and created a folder /tmp/t1000 to were I'd like to place the 
extracted files. I have installed bacula (not changing any setup),
and tried to extract files with "bextract" first like this:

bextract -v -b t1000.bsr FileStorage /tmp/t1000
bextract: butil.c:281 Using device: "FileStorage" for reading.
30-jun 14:30 bextract JobId 0: Ready to read from volume "t1000Vol0001" 
on device "FileStorage" (/tmp).
30-jun 14:30 bextract JobId 0: Forward spacing Volume "t1000Vol0001" to 
file:block 0:195.
0 files restored.

No files were restored! Then I tried without the bootstrap:

bextract -v -V t1000Vol0001 FileStorage /tmp/t1000
bextract: butil.c:281 Using device: "FileStorage" for reading.
30-jun 14:38 bextract JobId 0: Ready to read from volume "t1000Vol0001" 
on device "FileStorage" (/tmp).
bextract JobId 0: -rw-r--r--   1 root    
 root              77 2009-03-04 
18:48:21  /tmp/t1000/root/crons.cron

And this never seem to stop, bextract is using the CPU at 100% but the only 
thing showing up in /tmp/t1000 is root/crons.cron and the file is empty! It has 
been working like this for a couple of hours now.

"t1000.bsr" looks like this:

# 07-jul-2009 23:21:35 - t1000Job.2009-07-07_23.02.10 - Full
Volume="t1000Vol0001"
MediaType="File"
VolSessionId=11
VolSessionTime=1244397210
VolFile=0-0
VolBlock=195-35621
FileIndex=1-187910
Volume="t1000Vol0001"
MediaType="File"
VolSessionId=11
VolSessionTime=1244397210
VolFile=0-0
VolBlock=35622-1905842238
FileIndex=187910-317000

Please help my guys! And remember that I don't know much about bacula when 
explaining.

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



--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Storage Daemon crash backtrace

2010-06-30 Thread Robert LeBlanc
On Wed, Jun 30, 2010 at 1:06 AM, Kern Sibbald  wrote:

>
> This seems to a support issue.  The dump that you posted shows no
> indication
> of a crash, which means that your understanding of a crash an mine are
> different.
>
> This is possibly a deadlock, but I won't spend any more time on it until
> the
> problem is a bit clearer.
>
> Best regards,
>
> Kern
>
> By the way, if this is a production system, you should be running on Lenny,
> which is known to be stable, and we support it.
>

I'm not really sure what you need as a good backtrace, since I'm not a
programmer. I always thought that segfault lead to a program crashing. I
just don't know enough about gdb to know when there is enough information.
All I know is that when it crashes when running as a daemon, I get a
traceback that is useless in my e-mail (says no ptrace). When I run it under
gdb and get the segfault, when I type 'cont' it says that bacula-sd has
exited, and when I run it again, it doesn't complain that a process is
already running. In both cases, there is no process called bacula-sd running
on the system.

I updated/upgraded about 10 clients yesterday to using TLS, and I did not
get a crash from the SD. I will keep running it under the debugger in case
it crashes again, although, I'm not sure how useful it will be if I can not
operate gdb correctly to get you anything helpful. I have a feeling it's
some perfect storm of configuration that may be causing the issue. I've been
running Bacula for 6 years and never have had a problem like this. I'm just
trying to help the project be as robust as possible because we like it and
it has treated us so well in the past.

As a side note, I get a lot more connection timeouts and broken pipes when
using TLS, adding heartbeat interval helps, but it is not a silver bullet.
Most of the back-ups are succeeding with only a few here and there having
problems. Not using TLS and not having heartbeat interval, the back-ups
aways succeed. I'll keep working through things and see if I can come up
with anything.

Thank you for the time and the great project.

Robert LeBlanc
Life Sciences & Undergraduate Education Computer Support
Brigham Young University

P.S. We are working on a support contract and will be talking with you in
about 24 hours with many others from our group who are also interested in
using Bacula.
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Issue backing up Oracle database using Bacula

2010-06-30 Thread Mike Holden
Mike Holden wrote:
> If I can find how to register as a wiki contributor, I'll update the
> page, otherwise somebody else may wish to take on these minor
> modifications?

I've registered and updated the wiki page at
http://wiki.bacula.org/doku.php?id=application_specific_backups:oracle_rdbms
with the suggested changes.

I've also added a warning that the recovery script quoted on that
page should not be used directly, even with modified paths, as it
simply won't work without heavy changes. You should instead use the
scripts that the backup process generates for you using the "alter
database backup controlfile" commands. It's myu opinion that the
paragraph is too dangerous to include there in it's current form!
-- 
Mike Holden

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bconsole not properly installed

2010-06-30 Thread Paul Mather
On Jun 30, 2010, at 9:13 AM, Albin Vega wrote:

> Hello
>  
> First let me say that I havent been using FreeBSD and Bacula before, so its 
> all a bit new to me, and I might do some beginners mistakes.
>  
>  have installed Bacula server 5.0.0.1 on a FreeBsd 8 platform. Have followed 
> the instructions on http://www.freebsddiary.org/bacula.php and have run all 
> the scripts and have the bacula pids running. But now I have run into some 
> trouble. When i try to start the bconsole on the terminal window I get the 
> message "Command not found".

Be careful about following that guide: it is somewhat out of date.  (For 
example, the sysutils/bacula port no longer exists, as I'm sure you discovered.)

> I then open Gnome and run the bconsole command in a treminal window. I get 
> the message "Bconsole not properly installed"
>  
> I have located bconsole file in to places:
>  
> 1.
> /usr/local/share/bacula/bconsole
>  
> This script looks like this:
> bacupserver# more /usr/local/share/bacula/bconsole
> #!/bin/sh
> which dirname >/dev/null
> # does dirname exit?
> if [ $? = 0 ] ; then
>   cwd=`dirname $0`
>   if [ x$cwd = x. ]; then
>  cwd=`pwd`
>   fi
>   if [ x$cwd = x/usr/local/sbin ] ; then
>  echo "bconsole not properly installed."
>  exit 1
>   fi
> fi
> if [ x/usr/local/sbin = x/usr/local/etc ]; then
>echo "bconsole not properly installed."
>exit 1
> fi
> if [ $# = 1 ] ; then
>echo "doing bconsole $1.conf"
>/usr/local/sbin/bconsole -c $1.conf
> else
>/usr/local/sbin/bconsole -c /usr/local/etc/bconsole.conf
> fi
> Running this script returns message:
> bconsole not properly installed.
>  
> 2. 
> /usr/ports/sysutils/bacula-server/work/bacula-5.0.0/scripts/bconsole
>  
> This script looks like this:
> bacupserver# more 
> /usr/ports/sysutils/bacula-server/work/bacula-5.0.0/scripts/bconsole
> #!/bin/sh
> which dirname >/dev/null
> # does dirname exit?
> if [ $? = 0 ] ; then
>   cwd=`dirname $0`
>   if [ x$cwd = x. ]; then
>  cwd=`pwd`
>   fi
>   if [ x$cwd = x/sbin ] ; then
>  echo "bconsole not properly installed."
>  exit 1
>   fi
> fi
> if [ x/sbin = x/etc/bacula ]; then
>echo "bconsole not properly installed."
>exit 1
> fi
> if [ $# = 1 ] ; then
>echo "doing bconsole $1.conf"
>/sbin/bconsole -c $1.conf
> else
>/sbin/bconsole -c /etc/bacula/bconsole.conf
> fi
>  
> Runnig this script returns the message:
> /usr/ports/sysutils/bacula-server/work/bacula-5.0.0/scripts/bconsole: 
> /sbin/bconsole: not found
>  
>  
> I then located the bconsole.conf file:
> /usr/ports/sysutils/bacula-server/work/bacula-5.0.0/src/console/bconsole.conf
> Tryed to manually move til to /etc/bacula but there is no /etc/bacula 
> directory... 
>  
> I am running out of ideas on what to do here. Enybody have any ideas on what 
> to do? Would be very greatful I someone would point me in the right 
> direction

Did you install the sysutils/bacula-server port?  (I.e., did you do a "make 
install" in the /usr/ports/sysutils/bacula-server directory to build and 
install it?)  If you did, it should have installed bconsole for you under 
/usr/local.  In my case, it shows it to be installed under /usr/local/sbin:

backup# which bconsole
/usr/local/sbin/bconsole
backup# file /usr/local/sbin/bconsole
/usr/local/sbin/bconsole: ELF 32-bit LSB executable, Intel 80386, version 1 
(FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800505), not 
stripped

You shouldn't be trying to run the bconsole shell script; run 
/usr/local/sbin/bconsole directly.

Under FreeBSD, ports avoid putting configuration directories in the base 
operating system directories, to avoid polluting the base system.  The ports 
system tries to keep them separate, usually under /usr/local.  So, Bacula 
installed from ports on FreeBSD will not use /etc/bacula, it uses 
/usr/local/etc.  The bconsole installed knows to look in /usr/local/etc for 
configuration files.

Note, when you installed the Bacula server port, there will probably have been 
some messages about adding entries to /etc/rc.conf to ensure the Bacula daemons 
are run at system startup.  Also, there will have been information indicating 
that the configuration files for the daemons will have been installed in 
/usr/local/etc and will need to be edited to suit your local setup.

If you want to know what files were installed by the Bacula server port, you 
can use the following command: "pkg_info -L bacula-server-5.0.0_1"

Finally, Dan Langille is listed as the current maintainer of the 
sysutils/bacula-server port.  I believe Dan is subscribed to this list and 
sometimes posts.

Cheers,

Paul.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforg

Re: [Bacula-users] Issue backing up Oracle database using Bacula

2010-06-30 Thread Mike Holden
Mogaroy wrote:
> Thanks Mike, for clearing up a few things.Appreciate your patience !
>
> I finally managed to identify the cause of the errors.The problem,
> as I see it, is with the way in which the hotbackupscript.sql is
> being created.
> The host rsync command inside that file is being split into 2 lines
> instead of appearing in a single line.Just to be sure, I edited
> the file to make the first couple of commands appear in a single
> line and tested by running it manually from SQL prompt, and the
> script executes successfully!
>
> This is how the commands appear in the hotbackupscript.sql file:
>
> host rm -f /var/oracle/backup/*
> ALTER TABLESPACE ATGINT BEGIN BACKUP;
> host rsync -vcW
> /home/dbusr/app/dbusr/product/11.1.0/db_1/dbs/ATGINT.dbf
> /var/oracle/backup/
> ALTER TABLESPACE ATGINT END BACKUP;
> ALTER TABLESPACE ATL_CONTENT_DATA BEGIN BACKUP;
> host rsync -vcW /home/dbusr/app/dbusr/oradata/orcl/ATL_CONTENT_DATA
> /var/oracle/backup/
> ALTER TABLESPACE ATL_CONTENT_DATA END BACKUP;
> ALTER TABLESPACE ATL_CONTROL_DATA BEGIN BACKUP;
> host rsync -vcW /home/dbusr/app/dbusr/oradata/orcl/ATL_CONTROL_DATA
> /var/oracle/backup/
> ALTER TABLESPACE ATL_CONTROL_DATA END BACKUP;
> ALTER TABLESPACE AT_CATA BEGIN BACKUP;
> host rsync -vcW
> /home/dbusr/app/dbusr/product/11.1.0/db_1/dbs/atcata.dbf
> /var/oracle/backup/
> ALTER TABLESPACE AT_CATA END BACKUP;
> ALTER TABLESPACE AT_CATB BEGIN BACKUP;
> host rsync -vcW
> /home/dbusr/app/dbusr/product/11.1.0/db_1/dbs/atcatb.dbf
> /var/oracle/backup/
>
>
> I tried different combinations of placing the quotes in the relevant
> line of runhotbackup.sql(with spaces, without space etc), but no
> matter
> how I try, am not able to have the hotbackupscript.sql file
> generated in the right format(i,e having the rsync command in a
> single line).Any
> help here would be greatly appreciated.
>
> Thanks again for guiding me thus far !!
>
> NK Mogaroy

Sqlplus works with a linelength that, by default, is 80 characters.
This looks like the reason for the text being split.

Try adding the following line to the top of the hotbackup sql script:

set linesize 500

If 500 is not wide enough, you can increase the value still further,
up to several thousand if necessary.

As you can see from the following code snippet (prints a line of 90
stars, both with a line size of 80 and then 500), this will resolve
your issue:

Code:
set linesize 80
begin
dbms_output.put_line(LPAD('*', 90, '*'));
end;
/
set linesize 500
begin
dbms_output.put_line(LPAD('*', 90, '*'));
end;
/

Output:
SQL> set linesize 80
SQL> begin
SQL> dbms_output.put_line(LPAD('*', 90, '*'));
SQL> end;
SQL> /

**

PL/SQL procedure successfully completed.

SQL> set linesize 500
SQL> begin
SQL> dbms_output.put_line(LPAD('*', 90, '*'));
SQL> end;
SQL> /
**

PL/SQL procedure successfully completed.

Note that email line wrapping may bork that output a bit in
transmission, but you should also be able to see that the second set
of stars is on fewer lines than the first. Try it in your own
sqlplus session to see the difference for yourself!

I would add an extra couple of points of interest here:

1. You may wish to consider adding:

set trimspool on

at the top as, by default, each line is padded to the line width,
making for a much bigger file.

2. If you have a lot of files and tablespaces to process, it is
possible that the buffer size of 2 set up at the top (in the
call to dbms_output.enable(2)) is not big enough. I would
suggest increasing this value to 2 million, which is the maximum
value allowed. I've also go no idea why this is run as a separate
exec call at the top, rather than as the first line of the pl/sql
script!

If I can find how to register as a wiki contributor, I'll update the
page, otherwise somebody else may wish to take on these minor
modifications?
-- 
Mike Holden

http://www.by-ang.com - the place to shop
for all manner of hand crafted items,
including Jewellery, Greetings Cards and Gifts


--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Issue backing up Oracle database using Bacula

2010-06-30 Thread Mogaroy


Mike Holden wrote:
> Mogaroy wrote:
> 
> > Thanks Mike,
> > 
> 
> No problem!!
> 
> 
> > Will recheck the points you mentioned.Meanwhile, some searching has
> > led me to feel that it has something to do with the PL/SQL script
> > (runhotbackup.sql) which does the actual backup to local disk
> > (/var/oracle/backup) in my case.
> > The 'host' command which is used in the script to rsync the
> > datafiles is not recognized by PL/SQL, and maybe that's causing it
> > to throw the errors.
> > 
> > http://www.orafaq.com/wiki/PL/SQL_FAQ
> > 
> > To verify, I tried copying a single file, running the command
> > manually from SQL prompt, and the file got copied successfully.
> > 
> > But, since the author of the script has tested the whole thing
> > successfully, I'm wondering if it indeed is the cause.
> > 
> > I came upon an earlier thread where the author mentions about his
> > article, and I'm following it up there as well hoping to find a
> > solution:
> > 
> > http://www.backupcentral.com/phpBB2/two-way-mirrors-of-external-mailing-lists-3/bacula-25/oracle-database-backup-question-79798/#33
> > 
> 
> The hotbackup script doesn't use pl/sql to execute a host command.
> What is does is create a text file containing a list of commands,
> several of which are "host" statements. It then uses that generated
> script as input into an sqlplus session to do the actual backup
> commands.
> 
> Like I said earlier, if your commands and database files are stored
> in different directories to where the original authore placed them,
> you will need to modify the runhotbackup.sql script to put the
> correct locations, as well as any of the other files that you copied
> from that wiki entry at
> http://wiki.bacula.org/doku.php?id=application_specific_backups:oracle_rdbms
> 
> In detail, the hotbackup script does the following steps:
> 
> creates a file called
> /app/oracle/oradata/db1/scripts/hotbackupscript.sql, as defined in
> the "spool" statement. This path must exist and be writeable to the
> user. This script file will be written to incluse a number of
> sqlplus statements, which are later executed using the line
> beginning with " < at > " right at the bottom.
> 
> It then adds commands to do the following:
> 
> does an "rm" of /app/oracle/backup/*, so again this directory must
> exist and be writeable.
> 
> Create a list of "ALTER DATABASE" statements to enter and exit hot
> backup mode for the tablespace. For each tablespace, it also adds an
> "host rsync" command into the file to do the backup copy to
> /app/oracle/backup for each datafile in the current tablespace (a
> tablespace may have several datafiles).
> 
> Finally, once this loop for tablespaces has completed, it adds
> various other commands to backup controlfiles, handle archived
> redologs etc.
> 
> So you see, pl/sql ISN'T running a "host" statement at all, sqlplus is!
> 
> Maybe if you told us exactly what changes tou made to the locations
> from the original wiki, and what changes you made to the scripts we
> may be able to spot what is wrong!
> 
> Can you run the hotbackup script directly in sqlplus using " < at > 
> runhotbackup.sql" from within sqlplus? If so, then the problem is
> elsewhere, if not then error message sill help us diagnose the
> problem further.
> -- 
> Mike Holden
> 
> http://www.by-ang.com - the place to shop
> for all manner of hand crafted items,
> including Jewellery, Greetings Cards and Gifts
> 
> 
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Bacula-users mailing list
> Bacula-users < at > lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users



Thanks Mike, for clearing up a few things.Appreciate your patience !

I finally managed to identify the cause of the errors.The problem, as I see it, 
is with the way in which the hotbackupscript.sql is being created.
The host rsync command inside that file is being split into 2 lines instead of 
appearing in a single line.Just to be sure, I edited 
the file to make the first couple of commands appear in a single line and 
tested by running it manually from SQL prompt, and the script executes 
successfully!

This is how the commands appear in the hotbackupscript.sql file:

host rm -f /var/oracle/backup/*
ALTER TABLESPACE ATGINT BEGIN BACKUP;
host rsync -vcW /home/dbusr/app/dbusr/product/11.1.0/db_1/dbs/ATGINT.dbf
/var/oracle/backup/
ALTER TABLESPACE ATGINT END BACKUP;
ALTER TABLESPACE ATL_CONTENT_DATA BEGIN BACKUP;
host rsync -vcW /home/dbusr/app/dbusr/oradata/orcl/ATL_CONTENT_DATA
/var/oracle/backup/
ALTER TABLESPACE ATL_CONTENT_DATA END BACKUP;
ALTER TABLESPACE ATL_CONTROL_DATA BEGIN BACKUP;
host rsync -vcW /home/dbusr/app/dbusr/oradata/orcl/ATL_CONTROL_DATA
/var/oracle/backup/
ALTER TABLESPACE ATL_CO

[Bacula-users] Bconsole not properly installed

2010-06-30 Thread Albin Vega
Hello

First let me say that I havent been using FreeBSD and Bacula before, so its
all a bit new to me, and I might do some beginners mistakes.

 have installed Bacula server 5.0.0.1 on a FreeBsd 8 platform. Have followed
the instructions on http://www.freebsddiary.org/bacula.php and have run all
the scripts and have the bacula pids running. But now I have run into some
trouble. When i try to start the bconsole on the terminal window I get the
message "Command not found".

I then open Gnome and run the bconsole command in a treminal window. I get
the message "Bconsole not properly installed"

I have located bconsole file in to places:

1.
/usr/local/share/bacula/bconsole

This script looks like this:
bacupserver# more /usr/local/share/bacula/bconsole
#!/bin/sh
which dirname >/dev/null
# does dirname exit?
if [ $? = 0 ] ; then
  cwd=`dirname $0`
  if [ x$cwd = x. ]; then
 cwd=`pwd`
  fi
  if [ x$cwd = x/usr/local/sbin ] ; then
 echo "bconsole not properly installed."
 exit 1
  fi
fi
if [ x/usr/local/sbin = x/usr/local/etc ]; then
   echo "bconsole not properly installed."
   exit 1
fi
if [ $# = 1 ] ; then
   echo "doing bconsole $1.conf"
   /usr/local/sbin/bconsole -c $1.conf
else
   /usr/local/sbin/bconsole -c /usr/local/etc/bconsole.conf
fi
 Running this script returns message:
bconsole not properly installed.

2.
/usr/ports/sysutils/bacula-server/work/bacula-5.0.0/scripts/bconsole

This script looks like this:
bacupserver# more
/usr/ports/sysutils/bacula-server/work/bacula-5.0.0/scripts/bconsole
#!/bin/sh
which dirname >/dev/null
# does dirname exit?
if [ $? = 0 ] ; then
  cwd=`dirname $0`
  if [ x$cwd = x. ]; then
 cwd=`pwd`
  fi
  if [ x$cwd = x/sbin ] ; then
 echo "bconsole not properly installed."
 exit 1
  fi
fi
if [ x/sbin = x/etc/bacula ]; then
   echo "bconsole not properly installed."
   exit 1
fi
if [ $# = 1 ] ; then
   echo "doing bconsole $1.conf"
   /sbin/bconsole -c $1.conf
else
   /sbin/bconsole -c /etc/bacula/bconsole.conf
fi

 Runnig this script returns the message:
/usr/ports/sysutils/bacula-server/work/bacula-5.0.0/scripts/bconsole:
/sbin/bconsole: not found


I then located the bconsole.conf file:
/usr/ports/sysutils/bacula-server/work/bacula-5.0.0/src/console/bconsole.conf
Tryed to manually move til to /etc/bacula but there is no /etc/bacula
directory...

I am running out of ideas on what to do here. Enybody have any ideas on what
to do? Would be very greatful I someone would point me in the right
direction

Best regards
Albin
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula writing to NAS permission issue

2010-06-30 Thread Timo Neuvonen
myEMAILsignatureNot purely a Bacula issue, but I've tried other sources without 
success. I'm setting up Bacula 5.0.2 on a Centos 5 server with the hope of 
Bacula writing to volumes on a Seagate Black Armor NAS device. Bacula is 
running fine if I write to a local disk, but I keep getting a "permission 
denied" error when Bacula tries to create or write to a volume on the NAS. Here 
is the line from my fstab:

  //10.10.10.99/Bacula /mnt/blackbird cifs 
username=bacula,password=bacula,_netdev,uid=bacula,gid=disk 0 0

  And here is the result of a "mount" command:

  //10.10.10.99/Bacula on /mnt/blackbird type cifs (rw,mand)

  The only user who can write to the NAS from the Centos server is root. All 
other users can only read. All users tested, including bacula, have accounts 
set up on the NAS for sharing, (I'm pretty sure the NAS OS is linux with samba, 
it also offers NFS as a sharing option). Any user from any Windows box can read 
and write to the NAS. 

  Any suggestions are greatly appreciated! Thanks!

  -- 
  Thomas E. Plancon

I had a similar problem with another NAS box some time ago. I think the reason 
was that numeric UIDs had to match between NAS box and the client.

--
TiN
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Fwd: Bacula

2010-06-30 Thread Sebastián Moreno
Thanks a lot my friend!!

I changed the storage daemon IP on dir.conf and work great!!

Bacula it's awesome!!


Great soft and community




--
Sebastián Moreno

Montevideo - Uruguay
+59895356960

Correo enviado desde el servicio BlackBerry de Movistar

-Original Message-
From: Bruno Friedmann 
Date: Wed, 30 Jun 2010 07:31:03 
To: 
Subject: Re: [Bacula-users] Fwd: Bacula

As badly setup by deb maintainers, your network backup solution is only 
listening on lo (127.0.0.1)
making it unusable on network.

Double check all your config files and replace the 127.0.0.1/localhost by your 
real ip or hostname.

fill a bug about the package, asking to set it up network ready.



On 06/30/2010 05:59 AM, Sebastian Moreno wrote:
> Hi Folks:
> 
> 
> Good evening to all, I'm a guy from Uruguay..So.. sorry my bad English hehe
> 
> 
> I'm having a problem with a Bacula fresh install, my version is 5.0.1 and
> it's running on a Ubuntu Server 10.04 box (Also a tried to install on a
> CentOS Box and I had the same problem)
> 
> I can make local backups but not with remote clients (My clients are on the
> same lan network)
> 
> When I run a job the director status say :  "is waiting for Client laptop-fd
> to connect to Storage HDD"
> 
> I don't have any IPtables or firewall or something like that..So the
> connection outbound/inbound it's open..
> 
> 
> What can be??
> 
> If you need more information I can give for you without any problems...
> 
> 
> Thanks a lot!
> 
> 
> PD: I tried with linux and windows clients and it's the same problem
> 
> 
> 
> 
> 
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> 
> 
> 
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


-- 

 Bruno Friedmann

Ioda-Net Sàrl
  2830 Vellerat - Switzerland

  Tél : ++41 32 435 7171
  Fax : ++41 32 435 7172
  gsm : ++41 78 802 6760
  www.ioda-net.ch

 Centre de Formation et de Coaching En Ligne
 www.cfcel.com

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Checksum warnings during backup?

2010-06-30 Thread Martin Simmons
> On Tue, 29 Jun 2010 18:06:41 +0200, Andreas Koch said:
> 
> Can no one help with this? I'm somewhat worried that the many lines of
> 
>   Warning: Can't verify checksum for (filename...)
> 
> during backup indicate a configuration problem and I fear for the consistency 
> of our data.

The warning means that the checksum wasn't sent to the File Daemon, so it
couldn't check it.

Does it happen for every file?  Can you repeat it with a small test using only
a few files?

__Martin




> 
> Any hints would be appreciated,
>Andreas Koch
> 
> 
> On 06/21/2010 01:41 PM, Andreas Koch wrote:
> > Hi all,
> >
> > after switching to Bacula 5.0.2, I have been receiving that message during 
> > our
> > first differential backup for hundreds of files. What does it mean? Do I 
> > have
> > a problem?
> >
> > I haven't been able to find anything useful in the documentation or on the
> > mailing list and would be grateful for any hints.
> >
> > For reference, I am using Accurate = yes with
> >
> > FileSet {
> > Name = "FullSet"
> > Include {
> >   Options {
> > signature = SHA1;
> > verify=pins1;
> > accurate=pins1;
> >   }
> > ...
> >
> > Many thanks,
> > Andreas Koch
> >
> > --
> > ThinkGeek and WIRED's GeekDad team up for the Ultimate
> > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> > lucky parental unit.  See the prize list and enter to win:
> > http://p.sf.net/sfu/thinkgeek-promo
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> --
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Storage Daemon crash backtrace

2010-06-30 Thread Kern Sibbald
On Tuesday 29 June 2010 05:05:59 Robert LeBlanc wrote:
> On Thu, Jun 24, 2010 at 2:23 AM, Kern Sibbald  wrote:
> > Hello,
> >
> > Either the "handle SIGUSR2 nostop noprint pass" confused gdb (note it is
> > not
> > necessary when you use -s) or you have something broken on your
> > build/os/machine.  gdb with -s should ignore SIGPIPE and Bacula always
> > ignores SIGPIPE, so the backtrace below is useless and doesn't correspond
> > to
> > any real problem.
> >
> > When you get a valid dump, please open a bug report, in the mean time,
> > use the
> > bacula-users list and the manual to help you get a valid dump.
> >
> > Best regards,
> >
> > Kern
>
> Ok, I finally got a segfault and I got a backtrace, I've put in a bug
> #1599. Please let me know if there is more information you need. I'd really
> like to get a resolution to this.
>

This seems to a support issue.  The dump that you posted shows no indication 
of a crash, which means that your understanding of a crash an mine are 
different.

This is possibly a deadlock, but I won't spend any more time on it until the 
problem is a bit clearer.

Best regards,

Kern

By the way, if this is a production system, you should be running on Lenny, 
which is known to be stable, and we support it.

--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users