Re: [Bacula-users] change FileSet name, where's the new filesetid?

2007-06-13 Thread Ralf Gross
Ralf Gross schrieb:
 [resent, because of sf problems with the mailing lists]
 [...hey, the list is finally working again ;) ] 
 
 just for confirmation: if I change the name of a FileSet (not the file
 list), the next job will be a full backup? 

The backup was upgraded to full, that's what I expected.
 
 Where can I see the current FileSet ID? With 'llist jobs' I get the filesetids
 of completed jobs, but where can I check the current filesetid?
 
 I tried to get it from the db.
 
 bacula= select * from fileset;
  filesetid |fileset|  md5   | createtime
 ---+---++-
  1 | SMTCZB0003| K98Oq//ZH2plCHkth6UKkC | 2007-02-20 22:25:00
  2 | VU0EM003 Full | yB/6TU1SCB+HyTpYeFwiGD | 2007-02-20 22:25:01
  3 | Catalog   | z4/v/7/uQ+xwMkF9v//4VD | 2007-02-25 00:10:00
  5 | VU0EM003 Full | I3oXN/QmSUZEs2/H7i+C4C | 2007-02-25 16:22:49
  7 | Test-Set  | 4H+m384yU9+n7//wR6/KjA | 2007-03-01 08:43:47
 (5 Zeilen)
 
 I changed the 'VU0EM003 Full' FileSet to 'VU0EM003' and issued reload in
 bconsole before. But I can't find the modified FileSet name or id in the db.
 Show fileset returns the correct modified name.

Looking at the psql output after the next backup happend, now there is a new
fileset in the list. VU0EM003, which is the one I changed before. The
createtime is the time the backup started. 

bacula= select * from fileset;
 filesetid |fileset|  md5   | createtime
---+---++-
 1 | SMTCZB0003| K98Oq//ZH2plCHkth6UKkC | 2007-02-20 22:25:00
 2 | VU0EM003 Full | yB/6TU1SCB+HyTpYeFwiGD | 2007-02-20 22:25:01
 3 | Catalog   | z4/v/7/uQ+xwMkF9v//4VD | 2007-02-25 00:10:00
 5 | VU0EM003 Full | I3oXN/QmSUZEs2/H7i+C4C | 2007-02-25 16:22:49
 7 | Test-Set  | 4H+m384yU9+n7//wR6/KjA | 2007-03-01 08:43:47
 9 | VU0EM003  | I3oXN/QmSUZEs2/H7i+C4C | 2007-06-12 00:05:01
(6 Zeilen)


I'm still a bit confused why the new fileset wasn't created at the time I
changed the config and reloaded the daemon.

Ralf

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Falk Sauer
Hi Maria,

On Wednesday 13 June 2007 writes Maria McKinley:
 I recently updated to version 1.38.11-8, and I am having a hard time
 getting my autochanger to work. I changed my bacula-sd.conf file so that
 there is now an Autochanger:

 Autochanger {
Name = Exabyte
Device = Drive-1
Changer Command = /etc/bacula/scripts/mtx-changer %c %o %S %a %d
Changer Device = /dev/sg0
 }

 Device {
Name = Drive-1
Drive Index = 0
Media Type = VXA-2
Archive Device = /dev/st0
LabelMedia = yes;  # lets Bacula label unlabeled media
Random Access = Yes;
AutomaticMount = yes;  # when device opened, read it
RemovableMedia = yes;
AlwaysOpen = yes;
Autochanger = yes;
Alert Command = sh -c 'tapeinfo -f %c |grep TapeAlert|cat'
 }

 This seems to work fine with btape auto command, but if I try to label
 from bconsole, I get the following:

 *label barcodes
 Automatically selected Storage: Exabyte
 Connecting to Storage daemon Exabyte at dinah:9103 ...
 3306 Issuing autochanger slots command.
 Device Exabyte has 0 slots.
 No slots in changer to scan.

 Any idea why I'm getting this?

please make shure that your changer device has the correct permissions eg.:

 crw-rw root disk /dev/sg0

and for the potentially next problem ...
by your tapedrive device i'm unshure, i think this should /dev/nst0, i don't 
know how its correct on exabyte tapes.

Normally the /dev/st* device makes a automatic rewind after write, 
the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
device. You dosn't write wich OS you use, here are little differences between 
the OSes.

regards
   Falk


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] store data on two storages at one time

2007-06-13 Thread Rich
On 2007.06.08. 11:15, Maik Derstappen wrote:
...
   
 hello Ryan,
 
 thank for your answer.
 I the 2 Storages are 2 Servers which stores the data on harddisks.
 Just i need an solution to store the same data on more than one storage.
 And i don't want run 2 job for this. Because the filedaemon then read 
 the data twice for the same Backup.

if i understood you correctly, you have two servers with hdd storage and 
would like to replicate backups on both without running them twice.

which is also what i have :)

this would be ideally handled by a clustered bacula servers (a feature 
request i made recently) - but that probably won't appear anytime soon.

until then, your best bet probably would be to rsync changes between the 
servers.

 Any Idears for an nice solution?
 
 regards Maik
...
-- 
  Rich

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Maria McKinley
Falk Sauer wrote:
 Hi Maria,
 

 
 please make shure that your changer device has the correct permissions eg.:
 
  crw-rw root disk /dev/sg0
 
 and for the potentially next problem ...
 by your tapedrive device i'm unshure, i think this should /dev/nst0, i don't 
 know how its correct on exabyte tapes.
 
 Normally the /dev/st* device makes a automatic rewind after write, 
 the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
 device. You dosn't write wich OS you use, here are little differences between 
 the OSes.
 
 regards
Falk
 

Thanks Falk,

My permissions are:

crw--- 1 root root 21,   0 2005-02-25 22:38 sg0

so, maybe that is my problem. Can I just change this, like any file, 
with chown (assuming that the disk part is important) and chmod?

As far as the /dev/nst0, I had this working with the old version of 
bacula (1.36), and I found then that only nst0 worked, I would get 
errors if I tried to change it to st0.

I am using Debian.

cheers,
maria

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Archive FileStorage is not open or does not exist

2007-06-13 Thread pieter claassen
For some reason, my backups suddenly failed after I set up two storage
sections pointing at the same storage client (the idea was that one was
for clients to back up using the VPN and the order for clients to use
directly). I might have made some other changes as well.

My backup directory is an SMB mount owned by bacula and is writable. I
can create files in it by hand, even bacula can create a file when I run
label in the console.

My questions:
1. Below is the debug info. How do I determine why the device is not
visible to bacula? What could be going on here?
2. How do I re-initiase my bacula database (without wiping my backups).
I am on an ubuntu feisty system.

Thanks,
Pieter


debug in bacula console increased for file storage:
==

Device status:
Archive FileStorage is not open or does not exist.
Configured device capabilities:
EOF BSR BSF FSR FSF EOM REM RACCESS AUTOMOUNT LABEL !ANONVOLS !
ALWAYSOPEN 
Device status:
!OPENED !TAPE !LABEL MALLOC !APPEND !READ !EOT !WEOT !EOF !NEXTVOL !
SHORT !MOUNTED 
Device parameters:
Archive name: /backup Device name: FileStorage
File=0 block=0
Min block=0 Max block=0


/etc/bacula-sd.conf
===
#
# Default Bacula Storage Daemon Configuration file
#
#  For Bacula release 1.36.3 (22 April 2005) -- debian testing/unstable
#
# You may need to change the name of your tape drive
#   on the Archive Device directive in the Device
#   resource.  If you change the Name and/or the 
#   Media Type in the Device resource, please ensure
#   that dird.conf has corresponding changes.
#

Storage { # definition of myself
  Name = raid1-sd
  SDPort = 9103  # Director's port  
  WorkingDirectory = /var/lib/bacula
  Pid Directory = /var/run/bacula
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = raid1-dir
  Password = 
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = raid1-mon
  Password = 
  Monitor = yes
}


Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /backup
  LabelMedia = yes;   # lets Bacula label unlabeled
media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = yes;
  AlwaysOpen = no;
}

# 
# Send all messages to the Director, 
# mount messages also are sent to the email address
#
Messages {
  Name = Standard
  director = raid1-dir = all
}


/etc/bacula/bacula-dir.conf
===
# Default Bacula Director Configuration file
#
#  The only thing that MUST be changed is to add one or more
#   file or directory names in the Include directive of the
#   FileSet resource.
#
#  For Bacula release 1.36.3 (22 April 2005) -- debian testing/unstable
#
#  You might also want to change the default email address
#   from root to your address.  See the mail and operator
#   directives in the Messages resource.
#

Director {# define myself
  Name = raid1-dir
  DIRport = 9101# where we listen for UA connections
  QueryFile = /etc/bacula/scripts/query.sql
  WorkingDirectory = /var/lib/bacula
  PidDirectory = /var/run/bacula
  Maximum Concurrent Jobs = 1
  Password =  # Console password
  Messages = Daemon
}

JobDefs {
  Name = DefaultJob
  Type = Backup
  Level = Incremental
  Client = raid1-fd 
#  FileSet = Full Set
  Schedule = WeeklyCycle
  Storage = File
  Messages = Standard
  Pool = Default
  Priority = 10
}


#
# Define the main nightly save backup job
#   By default, this job will back up to disk in /tmp
Job {
  Name = raid1
  Client=raid1-fd
  JobDefs = DefaultJob
  FileSet = raid1
  Write Bootstrap = /var/lib/bacula/raid1.bsr
}

Job {
  Name = mac
  FileSet = McFiles
  Client = mac-fd 
  JobDefs = DefaultJob
  Write Bootstrap = /var/lib/bacula/mac.bsr
}
#Job {
#  Name = mail
#  FileSet = mail
#  Client = mail-fd 
#  JobDefs = DefaultJob
#  Write Bootstrap = /var/lib/bacula/mail.bsr
  #Storage = File-vpn
#  Storage = File
#}

# Backup the catalog database (after the nightly save)
Job {
  Name = BackupCatalog
  JobDefs = DefaultJob
  Level = Full
  FileSet=Catalog
  Schedule = WeeklyCycleAfterBackup
  # This creates an ASCII copy of the catalog
  RunBeforeJob = /etc/bacula/scripts/make_catalog_backup -u bacula
-ppostcode
  # This deletes the copy of the catalog
  RunAfterJob  = /etc/bacula/scripts/delete_catalog_backup
  Write Bootstrap = /var/lib/bacula/BackupCatalog.bsr
  Priority = 11   # run after main backup
}

# Standard Restore template, to be changed by Console program
Job {
  Name = RestoreFiles
  Type = Restore
  Client=raid1-fd 
  FileSet=raid1  
  Storage = File  
  Pool = Default
  Messages = Standard
  Where = /tmp/bacula-restores
}
FileSet {
  Name = mail
  Include {
  Options {
   

Re: [Bacula-users] Compile Error building Bacula with MySQL andPostgreSql

2007-06-13 Thread Berner Martin
Hello
I solved the compilation problem my self. I triad to compile bacula with 
support for MySql AND PostgreSql which is not possible. You can have only one 
Database backend. My solution was to compile bacula twice with different 
prefixes, so that I can install bacula twice not compromise each other. I don't 
run both at the same time bat can switch between the to version easily.

best regards

Berner Martin
 
 
 Hello
 I use Bacula 1.38.9 on Sun Solaris in a productive 
 environment. Cataloc-Backend is PostgreSql currently. But I 
 think the bottleneck in Performance is Postgre. So I like to 
 give MySql a try.
 Now I try to compile Bacula with Support for both Backend 
 MySql and PostgrSql.
 I make a configure like this:
 ./configure --with-postgresql=/usr/local/pgsql 
 --with-mysql=/usr/local/mysql
 and a simple make afterwards. But I always get a compilation 
 error by sql.c
 
 make[1]: Leaving directory 
 `/export/home/install/download/bacula-1.38.9/src/console'
 ==Entering directory 
 /export/home/install/download/bacula-1.38.9/src/cats
 make[1]: Entering directory 
 `/export/home/install/download/bacula-1.38.9/src/cats'
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  mysql.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_create.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_get.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_update.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_delete.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_find.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  bdb_list.c
 /usr/local/bin/g++   -c  -I/usr/local/include -I. -I.. 
 -I/usr/local/mysql/include/mysql  -g -O2 -Wall  sql.c
 sql.c: In function `void db_start_transaction(JCR*, B_DB*)':
 sql.c:296: error: 'struct B_DB' has no member named 
 'allow_transactions'
 sql.c:301: error: 'struct B_DB' has no member named 'transaction'
 sql.c:304: error: 'struct B_DB' has no member named 'transaction'
 sql.c:307: error: 'struct B_DB' has no member named 'transaction'
 sql.c: In function `void db_end_transaction(JCR*, B_DB*)':
 sql.c:346: error: 'struct B_DB' has no member named 
 'allow_transactions'
 sql.c:350: error: 'struct B_DB' has no member named 'transaction'
 sql.c:352: error: 'struct B_DB' has no member named 'transaction'
 make[1]: *** [sql.o] Error 1
 make[1]: Leaving directory 
 `/export/home/install/download/bacula-1.38.9/src/cats'
 
 
   == Error in 
 /export/home/install/download/bacula-1.38.9/src/cats ==
 
 
 I tried with different version of Bacula and tried with 
 precompiled MySql from MySql-Site and self compiled version 
 of MySQL. I tried with MySql 4.1.22 and 5.0.41 but non of 
 them solve my compilation problems.
 If I configure only with --with-postgresql=/usr/local/pgsql 
 and do a make, all works fine.
 
 What dos I miss?
 
 mit freundlichen Grüssen
 
 Berner Martin
 _
 
 Martin Berner, EDV Tel.: ++41-(0)41-729 33 46
 Schweizer BraunviehzuchtverbandFax : ++41-(0)41-729 33 77
 Chamerstrasse 56  http://www.braunvieh.ch
 6300 ZugEmail: [EMAIL PROTECTED]
 _
  
 
 
 --
 ---
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Ralf Gross
Maria McKinley schrieb:
 Falk Sauer wrote:
  please make shure that your changer device has the correct permissions eg.:
  
   crw-rw root disk /dev/sg0
  
  and for the potentially next problem ...
  by your tapedrive device i'm unshure, i think this should /dev/nst0, i 
  don't 
  know how its correct on exabyte tapes.
  
  Normally the /dev/st* device makes a automatic rewind after write, 
  the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
  device. You dosn't write wich OS you use, here are little differences 
  between 
  the OSes.
 
 My permissions are:
 
 crw--- 1 root root 21,   0 2005-02-25 22:38 sg0
 
 so, maybe that is my problem. Can I just change this, like any file, 
 with chown (assuming that the disk part is important) and chmod?

udev might override the permissions again. I would create an udev rule
to set the right permissions (check if your system uses udev).

You could try something like that:

/etc/udev/rules.d/010-local.rules 

KERNEL==st*,  GROUP=tape, MODE=0660
KERNEL==nst*, GROUP=tape, MODE=0660

/etc/init.d/udev restart (or reload...)

The bacula user has to be member of group tape.

Ralf

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] ClientRunBeforeJob Performance Query

2007-06-13 Thread Stephan Heine - [Genetic Interactive]
Hi all,

I am performing 2 Jobs that use the ClientRunBefore feature at a 
specific client.

The first Job is a State Backup (Win32) of about 8GB.
The Second is a Exchange Backup of about 32GB.
The State and Exchange Backups are performed using 
NTBackup on local an Bacula then grabs the completed BKF file.

Both of these Jobs execute without a problem, but
takes an incredibly log time to complete. (Reports Below)

What I have noticed is that on a Backup Job where 
ClientRunBefore is not used the job would start and run 
at about 6MB/sec and keep the same performance all the 
way through.

But with the jobs that use the ClientRunBefore feature
the job starts at a few Kb/s and then gradually 
(an increase in speed of about 30KB/sec)  builds 
speed until about 6MB/sec.

I am just curious to know if anyone else have experienced a 
simmilar isssue or and if so, if there is a way around it?


Yours sincerely

Stephan Heine
Support Engineer
Genetic Interactive
Tel: +27 861 99 88 99
Fax: +27 861 99 77 99
Cell: +27 82 467 1164
EMail: [EMAIL PROTECTED]  


12-Jun 20:22 -dir: Bacula 1.38.11 (28Jun06): 12-Jun-2007 20:22:36
  JobId:  1240
  Job:StateTuesday.2007-06-12_19.00.00
  Backup Level:   Full
  Client: -fd Windows Server 2003,MVS,NT 5.2.3790
  FileSet:StateSet 2006-09-13 19:00:02
  Pool:   TuesdayState
  Storage:FileStateTuesdayStorage
  Scheduled time: 12-Jun-2007 19:00:00
  Start time: 12-Jun-2007 19:51:09
  End time:   12-Jun-2007 20:22:36
  Elapsed time:   31 mins 27 secs
  Priority:   10
  FD Files Written:   2
  SD Files Written:   2
  FD Bytes Written:   7,730,344,766 (7.730 GB)
  SD Bytes Written:   7,730,345,032 (7.730 GB)
  Rate:   4096.6 KB/s
  Software Compression:   42.5 %
  Volume name(s): StateTuesday
  Volume Session Id:  8
  Volume Session Time:1181551527
  Last Volume Bytes:  7,739,588,003 (7.739 GB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK

13-Jun 01:01 02-dir: Bacula 1.38.11 (28Jun06): 13-Jun-2007 01:01:16
  JobId:  1245
  Job:MailTuesday.2007-06-12_19.00.05
  Backup Level:   Full
  Client: -fd Windows Server 2003,MVS,NT 5.2.3790
  FileSet:MailSet 2006-09-13 19:00:49
  Pool:   TuesdayMail
  Storage:FileMailTuesdayStorage
  Scheduled time: 12-Jun-2007 19:00:04
  Start time: 12-Jun-2007 23:12:09
  End time:   13-Jun-2007 01:01:16
  Elapsed time:   1 hour 49 mins 7 secs
  Priority:   10
  FD Files Written:   2
  SD Files Written:   2
  FD Bytes Written:   32,960,720,384 (32.96 GB)
  SD Bytes Written:   32,960,720,661 (32.96 GB)
  Rate:   5034.5 KB/s
  Software Compression:   26.2 %
  Volume name(s): MailTuesday
  Volume Session Id:  13
  Volume Session Time:1181551527
  Last Volume Bytes:  32,995,490,984 (32.99 GB)
  Non-fatal FD errors:0
  SD Errors:  0
  FD termination status:  OK
  SD termination status:  OK
  Termination:Backup OK



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread tomasz
Maria McKinley wrote:
 Falk Sauer wrote:
 Hi Maria,

 
 please make shure that your changer device has the correct permissions eg.:

  crw-rw root disk /dev/sg0

 and for the potentially next problem ...
 by your tapedrive device i'm unshure, i think this should /dev/nst0, i don't 
 know how its correct on exabyte tapes.

 Normally the /dev/st* device makes a automatic rewind after write, 
 the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
 device. You dosn't write wich OS you use, here are little differences 
 between 
 the OSes.

 regards
Falk

 
 Thanks Falk,
 
 My permissions are:
 
 crw--- 1 root root 21,   0 2005-02-25 22:38 sg0
 
 so, maybe that is my problem. Can I just change this, like any file, 
 with chown (assuming that the disk part is important) and chmod?
 
 As far as the /dev/nst0, I had this working with the old version of 
 bacula (1.36), and I found then that only nst0 worked, I would get 
 errors if I tried to change it to st0.
 
 I am using Debian.
 
 cheers,
 maria

hi there,

have u tried to use mtx itself from shell?
and see what results will give simple
mtx -f /dev/sg0 status
or whatever your autochanger device node is

i dont know debian but i guess
/dev/nst0 is tape drive itself not autochanger device so to move; load;
unload tapes u have to use for example sg0 (if it works)
like for example
mtx -f /dev/sg0 load 3 /dev/nst0 0
should load tape from slot 3 to tape drive

of course u can load tape from bconsole as well

permissions are one thing and next thing is if mtx-changer is doing a
job and u have proper device in SD conf

good luck
-- 
bEsT rEgArDs|   Confidence is what you have before you
tomasz dereszynski  |   understand the problem. -- Woody Allen
TD840-RIPE  |

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] migrate catalog from PostgreSQL to MySQL

2007-06-13 Thread Berner Martin
Hello
Dos someone have already do a migration of the Catalogue from a PostgreSQL to y 
MySQL? Or know how it has to work?
I tried to dump Postgres so that he dump only the Data and use INSERT in stead 
of COPY. Then I grep only the lines with Inserts.
I create the bacula-tables with the script (make_mysql_tables) and try to 
insert the Data dumped from Postgres. But the Tables in MySQL seams to have 
different Names then in PostgreSQL at lest different upper/lower case.

thanks for any help

Berner Martin


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Adam Cécile
An autochanger node should be /dev/sgX

tomasz a écrit :
 Maria McKinley wrote:
   
 Falk Sauer wrote:
 
 Hi Maria,

   
 please make shure that your changer device has the correct permissions eg.:

  crw-rw root disk /dev/sg0

 and for the potentially next problem ...
 by your tapedrive device i'm unshure, i think this should /dev/nst0, i 
 don't 
 know how its correct on exabyte tapes.

 Normally the /dev/st* device makes a automatic rewind after write, 
 the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
 device. You dosn't write wich OS you use, here are little differences 
 between 
 the OSes.

 regards
Falk

   
 Thanks Falk,

 My permissions are:

 crw--- 1 root root 21,   0 2005-02-25 22:38 sg0

 so, maybe that is my problem. Can I just change this, like any file, 
 with chown (assuming that the disk part is important) and chmod?

 As far as the /dev/nst0, I had this working with the old version of 
 bacula (1.36), and I found then that only nst0 worked, I would get 
 errors if I tried to change it to st0.

 I am using Debian.

 cheers,
 maria
 

 hi there,

 have u tried to use mtx itself from shell?
 and see what results will give simple
 mtx -f /dev/sg0 status
 or whatever your autochanger device node is

 i dont know debian but i guess
 /dev/nst0 is tape drive itself not autochanger device so to move; load;
 unload tapes u have to use for example sg0 (if it works)
 like for example
 mtx -f /dev/sg0 load 3 /dev/nst0 0
 should load tape from slot 3 to tape drive

 of course u can load tape from bconsole as well

 permissions are one thing and next thing is if mtx-changer is doing a
 job and u have proper device in SD conf

 good luck
   


-- 
Adam CECILELinbox / FreeALter Soft
152 rue de Grigy   tél: +33 3 87 50 87 95
Technopôle Metz 2000   fax: +33 3 87 75 19 26   
57070 METZ - Francehttp://www.linbox.com


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Includes in .conf files

2007-06-13 Thread Frank Sweetser
Kyle Marsh wrote:
 Thanks all for your responses!  Dave, I'm writing a python script that
 parses a text file containing information about the bacula install
 (working directory, install directory, director name, etc.) and
 another containing information about all the clients that I need to
 back up.  It then creates a file with all the client and job
 definitions that get included in the bacula-dir.conf file.  It also
 spits out a bacula-fd.conf for each client as well as creates and
 signs the certificates required for TLS.
 
 At the moment it's a very inflexible script -- I assume my own
 convention for the locations of the files and such.  When I get it
 working, I'll see about parsing some command line arguments to tell it
 where to look for files and where to put things, and possibly make it
 a well behaved unix program (take input from stdin/send input to
 stdout if nothing is specified, etc) but so far it reads from and
 writes to specific files.
 
 If you'd like I'll send you (or the list, if others are interested) an
 e-mail when it's done.  Should be this week or the next.

If you do get it working to the point where others might find it useful, it
would fit right in in the add on page of the wiki.

http://wiki.bacula.org/doku.php?id=3rd_party_addons

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Network Engineer  |  is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] How to point bkp to a volume disk in another server

2007-06-13 Thread Martin Simmons
 On Tue, 12 Jun 2007 16:11:08 -0300, Sandro Mendes said:
 
 Hello people, 
 I need to save bkps in disk on another server. How I configure the Archive 
 device in bacula-sd. conf?
 I tried using Archive Device = server\\g$\\Users\\Bkps by 
 Bacula\\dgrosado but it's not working. 
 OBS: I'm using bacula on Windows. 

What user is running the bacula-sd?  Does \\server give permission to access
the share for that user?

__Martin

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] store data on two storages at one time

2007-06-13 Thread Jeff Dickens



Robert LeBlanc wrote:

I would be interested in something like this for off-site back-up. Each
month, do a full back-up to tapes that will stay in the library and a
set that will be taken off-site for DR.

Robert LeBlanc

  
That is also my primary reason.  Copy Pools, and cross-SD migration 
would do the trick :-)




-Original Message-
From: [EMAIL PROTECTED] [mailto:bacula-users-
[EMAIL PROTECTED] On Behalf Of Ryan Novosielski
Sent: Thursday, June 07, 2007 7:25 PM
To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] store data on two storages at one time

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

For what reason? Load balancing? What are these two storages, tape


drives?
  

I don't know how to answer this question with the small amount of
information you have provided.

Maik Derstappen wrote:


hello,

is there an solution to storage the data which we will backup on
  

more
  

then one storage?


for example:


when the job is running:

  ==   storage A
bacula-fd  ==
  ==   storage B



thans for any answer  :-)

regards Maik
  

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer


III
  

 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922


(2-0922)
  

 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg -


C630
  

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGaK/rmb+gadEcsb4RAlNWAKDel7JSrIWM6iSq+F39sacwBF9v/QCgl/c7
Z2KaFgPGISVzAle4xg1o/lU=
=rhsm
-END PGP SIGNATURE-





-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


  
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] missing part on a DVD... why? what to do?

2007-06-13 Thread Wes Hardaker

I've just recently been playing with bacula (2.0.3 in self-compiled
rpms on fedora)...

I have it working with DVDs and the situation in question as I can
tell went like this:
  - it was backing up the main system.
  - I believe it tried to store the information in: BaculaDVD0009.8.
  - However, the disc doesn't actually contain that part, but the log
shows success:

12-Jun 23:05 machine-sd: Ready to append to end of Volume BaculaDVD0009 
part=8 size=3040970041
12-Jun 23:05 machine-sd: Job write elapsed time = 00:00:04, Transfer rate = 
57.92 K bytes/second
12-Jun 23:05 machine-sd: Part 8 (233000 bytes) written to DVD.

So the questions I have that I can't seem to answer via manuals nor
via bconsoles interface is:

1) what happened...  I doubt anyone can answer this.
   the disc is not full yet and mounting it shows about 3G in use:
  /dev/hda   2972194   2972194 0 100% /mnt/cdrom
   and the missing part was very small:
  FD Bytes Written:   228,657 (228.6 KB)
  SD Bytes Written:   231,716 (231.7 KB)


2) what to do about it?  Choices are, I think:
2a) invalidate the whole volume
2b) somehow tell bacula that just that part is missing and to rewrite
just that part...  I can't find anywhere that the part number is
actually stored though.  I did a quick search of even the DB
tables and came up blank.  I don't believe this is user-editable
data (which is fine).

3) how do I prevent this in the future?  Doubt anyone can answer this
   either, since it would require answering (1) above.

(I turned on tracing on the sd to figure out this problem and it
finally pointed out that the next backup was failing because it tried
to mount the disc and couldn't find BaculaDVD0009.8...  I didn't have
tracing on during the failure time though unfortunately)
-- 
In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find.  -- Terry Pratchett

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread Mike Vasquez

I have compiled bacula-fd on an HP-UX machine.  When I went to run the
director located on a Debian machine I get messages like /home is a
different filesystem. Will not descend from / into /home
I also get this message on /opt, /usr, /var, /stand. 

It was able to descend into /sbin, /etc.

Any ideas as to why?

Mike
-- 
View this message in context: 
http://www.nabble.com/Get-Message-About-Different-Filesystem-tf3915281.html#a11101478
Sent from the Bacula - Users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread Frank Sweetser
Mike Vasquez wrote:
 I have compiled bacula-fd on an HP-UX machine.  When I went to run the
 director located on a Debian machine I get messages like /home is a
 different filesystem. Will not descend from / into /home
 I also get this message on /opt, /usr, /var, /stand. 
 
 It was able to descend into /sbin, /etc.
 
 Any ideas as to why?
 
 Mike

Check out the onefs option in the manual:

http://bacula.org/rel-manual/FileSet_Resource.html

It explains what's going on, and how to change the behavior if you want.

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Senior Network Engineer   |  is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread [EMAIL PROTECTED]
El mié, 13-06-2007 a las 08:04 -0700, Mike Vasquez escribió:
 I have compiled bacula-fd on an HP-UX machine.  When I went to run the
 director located on a Debian machine I get messages like /home is a
 different filesystem. Will not descend from / into /home
 I also get this message on /opt, /usr, /var, /stand. 
 
 It was able to descend into /sbin, /etc.
 
 Any ideas as to why?
 
 Mike


'Cause yours /home, /opt, /usr, /var, /stand... are mounted filesystems

Include them on the  FileSet / Include directive


Best regards

D.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread Derek Ragona

At 10:04 AM 6/13/2007, Mike Vasquez wrote:


I have compiled bacula-fd on an HP-UX machine.  When I went to run the
director located on a Debian machine I get messages like /home is a
different filesystem. Will not descend from / into /home
I also get this message on /opt, /usr, /var, /stand.

It was able to descend into /sbin, /etc.

Any ideas as to why?


Sounds like a permissions issue.  Check what user you are running it as, 
and the perms on the file systems.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread Brian A. Seklecki
On Wed, 2007-06-13 at 10:11 -0500, Derek Ragona wrote:
 At 10:04 AM 6/13/2007, Mike Vasquez wrote:
 
  I have compiled bacula-fd on an HP-UX machine.  When I went to run
  the
  director located on a Debian machine I get messages like /home is a
  different filesystem. Will not descend from / into /home
  I also get this message on /opt, /usr, /var, /stand. 
  
  It was able to descend into /sbin, /etc.
  
  Any ideas as to why?
 
 Sounds like a permissions issue.  Check what user you are running it

It's Options OneFS.  ~BAS

  as, and the perms on the file systems.
 
 -Derek
 
 -- 
 This message has been scanned for viruses and 
 dangerous content by MailScanner, and is 
 believed to be clean. 
 MailScanner thanks transtec Computers for their support. 
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Bacula-users mailing list 
 Bacula-users@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Archive FileStorage is not open or does not exist

2007-06-13 Thread Brian A. Seklecki
On Wed, 2007-06-13 at 09:04 +0200, pieter claassen wrote:
 
 My questions:
 1. Below is the debug info. How do I determine why the device is not
 visible to bacula? What could be going on here?

What does status dir show?  Status storage?

Run:

 $ sudo bacula-sd -f -d 21 | tee /var/tmp/bacula-sd-debug.log 

~BAS


 2. How do I re-initiase my bacula database (without wiping my
 backups).

Without your database, your old jobs are useless

 I am on an ubuntu feisty system.
 
-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread Jeff Kalchik
 I have compiled bacula-fd on an HP-UX machine.  When I went to run the
 director located on a Debian machine I get messages like /home is a
 different filesystem. Will not descend from / into /home
 I also get this message on /opt, /usr, /var, /stand.

 It was able to descend into /sbin, /etc.

 Any ideas as to why?

Wait a second, gang.  While I do see some replies that may (or may not)
apply, I think there's something here that is more fundamental.

Mike, most U**x systems are split up into a number of different volumes. 
This is done for a variety of reasons, both performance and security
related.  One of the biggest reasons is that root is the *ONLY* user who
should have general write access to the top level volume.  Yes, there may
be minor exceptions such as /etc/tnsnames.ora.  One major reason for this
is that if the root filesystem fills up, unix systems tend to get very
unhappy and start screaming at the system administrators.  To avoid these
problems, directories such as /var, /usr, /opt, etc. get their own
dedicated disk space.  If /opt fills up, yes, it's a problem, but it won't
crash the box.

Now, back to the original question.  Backup systems tend to really pay
attention to volume boundaries.  This is exactly what Bacula is doing. 
It's letting you know that /usr, /var, /stand, etc. are on different
volumes.  /sbin and /etc are always part of the root volume, because
they're required for single user mode operation, where none of the other
volumes may be mounted or available.  This really isn't an error, but it
is letting you know that you do need to address the situation by either
including these other mountpoints in include directives, or by using onefs
(as a couple of other folks have kindly pointed out.)

Jeff Kalchik

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Instructions for Bacula on Solaris

2007-06-13 Thread Flak Magnet
Awesome!  Very nice how-to.  I'll keep it bookmarked for next time.

The real gem was finding out about Blastwave.  

Much cooler than sunfreeware.com.

On Sunday 10 June 2007 4:25:48 am Niclas Sodergard wrote:
 http://aspiringsysadmin.com/blog/2007/06/10/getting-bacula-to-work-on-solar
is-in-10-minutes/
-- 
-- Flak Magnet (Tim)
www.flakmagnet.com

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Unable to connect to MySQL server

2007-06-13 Thread Brian A. Seklecki
Can you connect as the Bacula user from localhost using the CLI and the
credentials listed below?

~BAS

On Tue, 2007-06-12 at 17:57 +0200, Marc-Henri Fernandez wrote:
 Hi,
 I have set up bacula v. 1.38 with mysql and whan I want to start the
 director deamon, I have an error :  Unable to connect to MySQL server
 Database=bacula User=bacula
 It is probably not running or your password is incorrect.
 12-jun 17:50 bacula-dir ERROR TERMINATION
 
 Now this is my bacula-dir.conf
 Job {
   Name = BackupCatalog
   JobDefs = DefaultJob
   Level = Full
   FileSet=Catalog
   Schedule = WeeklyCycleAfterBackup
   # This creates an ASCII copy of the catalog
  # RunBeforeJob = /etc/bacula/scripts/make_catalog_backup dbname
 user password
   RunBeforeJob = /etc/abcula/scripts/make_catalog_backup bacula
 bacula doume
 # This deletes the copy of the catalog
   RunAfterJob  = /etc/bacula/scripts/delete_catalog_backup
   Write Bootstrap = /var/lib/bacula/BackupCatalog.bsr
   Priority = 11   # run after main backup
 }
 
 # Generic catalog service
 Catalog {
   Name = MyCatalog
   dbname = bacula; DB Address = localhost ; user = bacula; password =
 doume
 }
 
 
 What is wrong with me ?
 
 Thanks a lot
 
 
 ___ 
 
 Marc Henri Fernandez
 Service Informatique
 
 Tourisport company
 
 [EMAIL PROTECTED]
 ligne directe : 04 88 66 48 68 ? Portable : 06 09 54 77 90 
 BP 109 ? 13321 Marseille Cedex 16
 
 Voyagez avec des spécialistes
 www.clubaventure.fr randonneés  voyages
 www.sport-away.com destination passion
 www.femmes-du-monde.com l'aventure au féminin
 www.66nord.com le spécialiste des terres polaires
 
 
 
 
 
 
 
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___ Bacula-users mailing list 
 Bacula-users@lists.sourceforge.net 
 https://lists.sourceforge.net/lists/listinfo/bacula-users
-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Zlib data error failure on only one file in restore

2007-06-13 Thread Jeff Dickens
I don't know where to turn on this one.  I seem to have proven I can't 
depend on being able to do a restore.



Jeff Dickens wrote:
I ran a test restore, verifying (apparently) that my now-retired 
Windows SD system really was handling the end-of-tape condition 
correctly, and found to my surprise that I got a Zlib data error 
failure on one file.  The rest of the restore seems perfect.  One 
probably important point is that the file in question is large: over 
750MB. 

The FD that did the backup several weeks ago was liz1-fd Version: 
2.0.3 (06 March 2007)  VSS Linux Cross-compile Win32.  The FD that 
did the restore was kestrel-fd Version: 2.0.4 (02 May 2007)  VSS 
Linux Cross-compile Win32.  The SD that did the restore was 
squirrel-sd Version: 2.0.3 (06 March 2007) i686-redhat-linux-gnu 
redhat.  The SD that did the backup was the 2.0.4 version on Windows.



Is this a bug, or a known problem?

11-Jun 09:41 packrat-dir: Start Restore Job RestoreFiles.2007-06-11_09.41.47
11-Jun 08:44 squirrel-sd: Please mount Volume tape-pool1-0001 on Storage Device 
VS160 (/dev/nst0) for Job RestoreFiles.2007-06-11_09.41.47
11-Jun 08:48 squirrel-sd: Ready to read from volume tape-pool1-0001 on device 
VS160 (/dev/nst0).
11-Jun 08:48 squirrel-sd: Forward spacing Volume tape-pool1-0001 to 
file:block 132:0.
11-Jun 09:00 squirrel-sd: End of Volume at file 137 on device VS160 (/dev/nst0), Volume 
tape-pool1-0001
11-Jun 09:00 squirrel-sd: RestoreFiles.2007-06-11_09.41.47 Warning: acquire.c:237 Wrong 
Volume mounted on device VS160 (/dev/nst0): Wanted tape-pool1-0002 have 
tape-pool1-0001
11-Jun 09:00 squirrel-sd: Please mount Volume tape-pool1-0002 on Storage Device 
VS160 (/dev/nst0) for Job RestoreFiles.2007-06-11_09.41.47
11-Jun 09:07 squirrel-sd: Ready to read from volume tape-pool1-0002 on device 
VS160 (/dev/nst0).
11-Jun 09:07 squirrel-sd: Forward spacing Volume tape-pool1-0002 to 
file:block 0:1.
11-Jun 10:05 kestrel-fd: RestoreFiles.2007-06-11_09.41.47 Error: Uncompression 
error on file /brestore/C/Documents and Settings/liz/Application 
Data/Thunderbird/Profiles/79l2clkj.default/Mail/lightning.he.net/Inbox. 
ERR=Zlib data error
11-Jun 09:25 squirrel-sd: End of Volume at file 8 on device VS160 (/dev/nst0), Volume 
tape-pool1-0002
11-Jun 09:25 squirrel-sd: End of all volumes.
11-Jun 10:24 packrat-dir: RestoreFiles.2007-06-11_09.41.47 Error: Bacula 2.0.3 
(06Mar07): 11-Jun-2007 10:24:40
  JobId:  6821
  Job:RestoreFiles.2007-06-11_09.41.47
  Client: kestrel-fd
  Start time: 11-Jun-2007 09:41:49
  End time:   11-Jun-2007 10:24:40
  Files Expected: 7,743
  Files Restored: 7,744
  Bytes Restored: 20,270,174,205
  Rate:   7884.2 KB/s
  FD Errors:  1
  FD termination status:  Error
  SD termination status:  OK
  Termination:*** Restore Error ***

11-Jun 10:24 packrat-dir: Begin pruning Jobs.
11-Jun 10:24 packrat-dir: No Jobs found to prune.
11-Jun 10:24 packrat-dir: Begin pruning Files.
11-Jun 10:24 packrat-dir: No Files found to prune.
11-Jun 10:24 packrat-dir: End auto prune.



  




-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/


___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
  
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Spooling data on Cloned jobs.

2007-06-13 Thread Deric Abel
Hello, I have had Bacula spooling to disk so I could run multiple
backups at the same time with out interleaving on to a single tape.  I
just recently enabled the job copy/clone feature so I could write the
same job to two different backups.  However the cloned job do not spool
to disk, so they sit and wait for the storage device to be finish before
starting, so this pushes back all of our backups. So my question is, How
do I set the cloned jobs to spool to disk first?

There is nothing in the bacula manual that is specifically for data
spooling and cloned jobs.  But what I infer is that if I move the
SpoolData=yes from my schedule def. to either the main job entry or
JobDefs, that would solve my problem, is that true, or is there another
way?


Here are my relevant config section of bacula-dir.conf

Schedule {
  Name = Main_Offsite
  Run = SpoolData=yes Pool=Main_Offsite_W1 Level=Full w01 w03 w05 w07
w09 w11 w13 w15 w17 w19 w21 w23 w25 w27 w29 w31 w33 w35 w37 w39 w41 w
43 w45 w47 w49 w51 w53 tue at 20:30
  Run = SpoolData=yes Pool=Main_Offsite_W2 Level=Full w02 w04 w06 w08
w10 w12 w14 w16 w18 w20 w22 w24 w26 w28 w30 w32 w34 w36 w38 w40 w42 w
44 w46 w48 w50 w52 tue at 20:30
  Run = SpoolData=yes Pool=Main_Offsite_MTh Level=Incremental mon thu at
20:30
  Run = SpoolData=yes Pool=Main_Offsite_WF  Level=Incremental wed fri
sat sun at 20:30
}


JobDefs {
  Name = Offsite
  Type = Backup
  Schedule = Main_Offsite
  Level = Full
  Storage = Autochanger
  Messages = Standard
  Pool = Main_Offsite_W1
  Priority = 10
  Maximum Concurrent Jobs = 2
}


Client {
  Name = hera-fd
  Address = hera
  FDPort = 9102
  Catalog = MyCatalog
  Password = Dpws5ysgf0cVkmDA7suxipspJaUL4d/Y1RyMYtUhfwIp
  File Retention = 30 days
  Job Retention = 3 months
  AutoPrune = yes
  TLS Enable = yes
  TLS Require = no
  TLS CA Certificate File = /etc/bacula/certs/ca-cert.pem
  TLS Certificate = /etc/bacula/certs/ganymede.cert
  TLS Key = /etc/bacula/certs/ganymede.key
}

FileSet {
  Name = Hera Set
  Include {
Options {
  signature = MD5
}
File = D:\\home\\Fraud
File = D:\\home\\Accounting
  }
}

Job {
  Name = HeraBackup
  Client = hera-fd
  FileSet = Hera Set
  Run = HeraBackup level=%l since=\%s\ storage=Autochanger
pool=Onsite
  JobDefs = Offsite
}



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] migrate catalog from PostgreSQL to MySQL

2007-06-13 Thread Marc Cousin
On Wednesday 13 June 2007 10:18:44 Berner Martin wrote:
 Hello
 Dos someone have already do a migration of the Catalogue from a PostgreSQL
 to y MySQL? Or know how it has to work? I tried to dump Postgres so that he
 dump only the Data and use INSERT in stead of COPY. Then I grep only the
 lines with Inserts. I create the bacula-tables with the script
 (make_mysql_tables) and try to insert the Data dumped from Postgres. But
 the Tables in MySQL seams to have different Names then in PostgreSQL at
 lest different upper/lower case.

 thanks for any help

 Berner Martin

I don't see any way to get past the case sensitivity problem, except by 
replacing all table names with their mysql versions in the dump (a simple 
perl or sed script will do the trick)

But I feel I should ask : maybe you don't really need to leave postgresql ?
What I really mean is that if it's for performance reasons, things will 
definitely get better with the next bacula release (on par or even better 
than mysql), with the batch insert code.

If it's because you're more at ease with mysql or some other good reason of 
this kind, forget what I've just said. Both database have their advantages...

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] migrate catalog from PostgreSQL to MySQL

2007-06-13 Thread Frank Sweetser
Marc Cousin wrote:
 On Wednesday 13 June 2007 10:18:44 Berner Martin wrote:
 Hello
 Dos someone have already do a migration of the Catalogue from a PostgreSQL
 to y MySQL? Or know how it has to work? I tried to dump Postgres so that he
 dump only the Data and use INSERT in stead of COPY. Then I grep only the
 lines with Inserts. I create the bacula-tables with the script
 (make_mysql_tables) and try to insert the Data dumped from Postgres. But
 the Tables in MySQL seams to have different Names then in PostgreSQL at
 lest different upper/lower case.

 thanks for any help

 Berner Martin
 
 I don't see any way to get past the case sensitivity problem, except by 
 replacing all table names with their mysql versions in the dump (a simple 
 perl or sed script will do the trick)

You can actually tell MySQL to be case insensitive on table names with the
lower_case_table_names variable.

http://www.mysql.org/doc/refman/5.0/en/identifier-case-sensitivity.html

-- 
Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution that
WPI Senior Network Engineer   |  is simple, elegant, and wrong. - HL Mencken
GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] ClientRunBeforeJob Performance Query

2007-06-13 Thread Kern Sibbald
Hello,

It has nothing to do with Bacula having a problem, but is just math.

Having a PhD in math would help, but it really doesn't require that much 
schooling.  It is simple math of averages.  If you are driving 1000 miles and 
after 1 minute you stop for 10 minutes, your average speed drops to almost 
nothing, then gently climbs up to almost the average speed that you would 
have if you did not stop.



 Date: Wed, 13 Jun 2007 09:23:18 +0200
 From: Stephan Heine - [Genetic Interactive] [EMAIL PROTECTED]
 Subject: [Bacula-users] ClientRunBeforeJob Performance Query
 To: Bacula-users@lists.sourceforge.net
 Message-ID: [EMAIL PROTECTED]
 Content-Type: text/plain;   charset=us-ascii

 Hi all,

 I am performing 2 Jobs that use the ClientRunBefore feature at a 
 specific client.

 The first Job is a State Backup (Win32) of about 8GB.
 The Second is a Exchange Backup of about 32GB.
 The State and Exchange Backups are performed using 
 NTBackup on local an Bacula then grabs the completed BKF file.

 Both of these Jobs execute without a problem, but
 takes an incredibly log time to complete. (Reports Below)

 What I have noticed is that on a Backup Job where 
 ClientRunBefore is not used the job would start and run 
 at about 6MB/sec and keep the same performance all the 
 way through.

 But with the jobs that use the ClientRunBefore feature
 the job starts at a few Kb/s and then gradually 
 (an increase in speed of about 30KB/sec)  builds 
 speed until about 6MB/sec.

 I am just curious to know if anyone else have experienced a 
 simmilar isssue or and if so, if there is a way around it?


 Yours sincerely

 Stephan Heine
 Support Engineer
 Genetic Interactive
 Tel: +27 861 99 88 99
 Fax: +27 861 99 77 99
 Cell: +27 82 467 1164
 EMail: [EMAIL PROTECTED]  


 12-Jun 20:22 -dir: Bacula 1.38.11 (28Jun06): 12-Jun-2007 20:22:36
   JobId:  1240
   Job:StateTuesday.2007-06-12_19.00.00
   Backup Level:   Full
   Client: -fd Windows Server 2003,MVS,NT 5.2.3790
   FileSet:StateSet 2006-09-13 19:00:02
   Pool:   TuesdayState
   Storage:FileStateTuesdayStorage
   Scheduled time: 12-Jun-2007 19:00:00
   Start time: 12-Jun-2007 19:51:09
   End time:   12-Jun-2007 20:22:36
   Elapsed time:   31 mins 27 secs
   Priority:   10
   FD Files Written:   2
   SD Files Written:   2
   FD Bytes Written:   7,730,344,766 (7.730 GB)
   SD Bytes Written:   7,730,345,032 (7.730 GB)
   Rate:   4096.6 KB/s
   Software Compression:   42.5 %
   Volume name(s): StateTuesday
   Volume Session Id:  8
   Volume Session Time:1181551527
   Last Volume Bytes:  7,739,588,003 (7.739 GB)
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:  OK
   SD termination status:  OK
   Termination:Backup OK

 13-Jun 01:01 02-dir: Bacula 1.38.11 (28Jun06): 13-Jun-2007 01:01:16
   JobId:  1245
   Job:MailTuesday.2007-06-12_19.00.05
   Backup Level:   Full
   Client: -fd Windows Server 2003,MVS,NT 5.2.3790
   FileSet:MailSet 2006-09-13 19:00:49
   Pool:   TuesdayMail
   Storage:FileMailTuesdayStorage
   Scheduled time: 12-Jun-2007 19:00:04
   Start time: 12-Jun-2007 23:12:09
   End time:   13-Jun-2007 01:01:16
   Elapsed time:   1 hour 49 mins 7 secs
   Priority:   10
   FD Files Written:   2
   SD Files Written:   2
   FD Bytes Written:   32,960,720,384 (32.96 GB)
   SD Bytes Written:   32,960,720,661 (32.96 GB)
   Rate:   5034.5 KB/s
   Software Compression:   26.2 %
   Volume name(s): MailTuesday
   Volume Session Id:  13
   Volume Session Time:1181551527
   Last Volume Bytes:  32,995,490,984 (32.99 GB)
   Non-fatal FD errors:0
   SD Errors:  0
   FD termination status:  OK
   SD termination status:  OK
   Termination:Backup OK

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula and Solaris 10_x86

2007-06-13 Thread Shon Stephens
I have no previous experience with Bacula. I am in the process of evaluating 
Bacula for use in our environment. I'd like to know  
 
Does Bacula and its supporting programs compile/run on Solaris 10_x86? 
Does Bacula/MTX work on Solaris 10_x86? Has anyone used it with an Exabyte 
Magnum 224 LTO Library? Mine only has the 1 LTO-3 drive. 
 
Thanks, 
Shon 


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread Mike Vasquez

That was it.  I had to have a file= statement for all mounts mounts.  Even
though it still gives you warning, if you have the mount pointed listed, you
are ok.

Mike


Frank Sweetser-2 wrote:
 
 Mike Vasquez wrote:
 I have compiled bacula-fd on an HP-UX machine.  When I went to run the
 director located on a Debian machine I get messages like /home is a
 different filesystem. Will not descend from / into /home
 I also get this message on /opt, /usr, /var, /stand. 
 
 It was able to descend into /sbin, /etc.
 
 Any ideas as to why?
 
 Mike
 
 Check out the onefs option in the manual:
 
 http://bacula.org/rel-manual/FileSet_Resource.html
 
 It explains what's going on, and how to change the behavior if you want.
 
 -- 
 Frank Sweetser fs at wpi.edu  |  For every problem, there is a solution
 that
 WPI Senior Network Engineer   |  is simple, elegant, and wrong. - HL
 Mencken
 GPG fingerprint = 6174 1257 129E 0D21 D8D4  E8A3 8E39 29E3 E2E8 8CEC
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 

-- 
View this message in context: 
http://www.nabble.com/Get-Message-About-Different-Filesystem-tf3915281.html#a11104559
Sent from the Bacula - Users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Solaris 10_x86

2007-06-13 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Not a problem at all, from what I've seen. I think there are even
packages available, but I'm not 100% sure on that one. Check Blastwave
to see if they have SPARC and x86. In fact, the ability to work on
Solaris x86 is why I chose this software over sticking with our
enterprise software.

Shon Stephens wrote:
 I have no previous experience with Bacula. I am in the process of evaluating 
 Bacula for use in our environment. I'd like to know  
  
 Does Bacula and its supporting programs compile/run on Solaris 10_x86? 
 Does Bacula/MTX work on Solaris 10_x86? Has anyone used it with an Exabyte 
 Magnum 224 LTO Library? Mine only has the 1 LTO-3 drive. 
  
 Thanks, 
 Shon 

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGcCn5mb+gadEcsb4RAi2KAJ9ET1eVXOtL+Gh66npaSc2Aqw5fpgCfdhX2
9zC29l6PcewakJqLhtuSv1k=
=K0YU
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Get Message About Different Filesystem

2007-06-13 Thread Mike Vasquez



Jeff Kalchik wrote:
 
 I have compiled bacula-fd on an HP-UX machine.  When I went to run the
 director located on a Debian machine I get messages like /home is a
 different filesystem. Will not descend from / into /home
 I also get this message on /opt, /usr, /var, /stand.

 It was able to descend into /sbin, /etc.

 Any ideas as to why?
 
 Wait a second, gang.  While I do see some replies that may (or may not)
 apply, I think there's something here that is more fundamental.
 
 Mike, most U**x systems are split up into a number of different volumes. 
 This is done for a variety of reasons, both performance and security
 related.  One of the biggest reasons is that root is the *ONLY* user who
 should have general write access to the top level volume.  Yes, there may
 be minor exceptions such as /etc/tnsnames.ora.  One major reason for this
 is that if the root filesystem fills up, unix systems tend to get very
 unhappy and start screaming at the system administrators.  To avoid these
 problems, directories such as /var, /usr, /opt, etc. get their own
 dedicated disk space.  If /opt fills up, yes, it's a problem, but it won't
 crash the box.
 
 Now, back to the original question.  Backup systems tend to really pay
 attention to volume boundaries.  This is exactly what Bacula is doing. 
 It's letting you know that /usr, /var, /stand, etc. are on different
 volumes.  /sbin and /etc are always part of the root volume, because
 they're required for single user mode operation, where none of the other
 volumes may be mounted or available.  This really isn't an error, but it
 is letting you know that you do need to address the situation by either
 including these other mountpoints in include directives, or by using onefs
 (as a couple of other folks have kindly pointed out.)
 
 Jeff Kalchik
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 
 

Jeff, you are correct, you must indicate all mounts points not just /
unless you specify onefs=yes.  If you list all the mounts points you will
still get the message error, which is annoying, because you still list /. 
At least I do know that it is working now.

Thanks,

Mike
-- 
View this message in context: 
http://www.nabble.com/Get-Message-About-Different-Filesystem-tf3915281.html#a11104703
Sent from the Bacula - Users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Client build on AIX -- Help!

2007-06-13 Thread Brian A. Seklecki
Show us your config.log in the src root dir and the Makefile from this
subdirectory?

Thanks,
~BAS

On Wed, 2007-06-06 at 11:51 -0500, Reuben A. Popp wrote:
 stdc++
-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] FTP Sync

2007-06-13 Thread Brian A. Seklecki
You can use the bacula-fd on the windows client and setup the bufallo
external storage as an NFS mount on your bacula-DIR/bacuala-SD system.

You cannot bacula-sd directly to the Buffalo NAS, unless you hack it,
which may not be a bad idea if its running Linux.

Best to just tear the drive out of it and mount it locally.

Or have a direct cross-over between the SD machine and the Terrastation

~BAS

On Fri, 2007-06-01 at 14:14 -0400, ashok shah wrote:
 I have tried other FTP sync softwares.. and Pulling Data from the
 server runs at 11.6MB/sec (via gigabit LAN on the same SWITCH), the
 connection times out frequently, but it works..
-- 
Brian A. Seklecki [EMAIL PROTECTED]
Collaborative Fusion, Inc.




IMPORTANT: This message contains confidential information and is intended only 
for the individual named. If the reader of this message is not an intended 
recipient (or the individual responsible for the delivery of this message to an 
intended recipient), please be advised that any re-use, dissemination, 
distribution or copying of this message is prohibited.  Please notify the 
sender immediately by e-mail if you have received this e-mail by mistake and 
delete this e-mail from your system.



-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Messages Directive (Create File job is completed)

2007-06-13 Thread Mike Vasquez

I have read the documentation and it specifies that I can create a file when
the files are saved normally by doing the following in the file daemon on
the machine being backed up but no file is created.

Messages {
  Name = Standard
  director = nmc-sdca-mon1-dir = all, !skipped, !restored
  file = /opt/bacula/working/status_bu = saved
}

What I want to be is to have the file daemon, if possible, create a file in
the working director when the backup has been completed.

Any ideas?

Mike


-- 
View this message in context: 
http://www.nabble.com/Messages-Directive-%28Create-File-job-is-completed%29-tf3916397.html#a11104799
Sent from the Bacula - Users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula Cook Book

2007-06-13 Thread Alexandre Bunn
Hi

I pretend test the Bacula Software and I would like a tip of Cook Book 
to configure bacula for a backup using a Hard Disk.

Regards,

-- 
Alexandre Bunn


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] missing part on a DVD... why? what to do?

2007-06-13 Thread Arno Lehmann
Hi,

On 6/13/2007 4:38 PM, Wes Hardaker wrote:
 I've just recently been playing with bacula (2.0.3 in self-compiled
 rpms on fedora)...
 
 I have it working with DVDs and the situation in question as I can
 tell went like this:
   - it was backing up the main system.
   - I believe it tried to store the information in: BaculaDVD0009.8.
   - However, the disc doesn't actually contain that part, but the log
 shows success:
 
 12-Jun 23:05 machine-sd: Ready to append to end of Volume BaculaDVD0009 
 part=8 size=3040970041
 12-Jun 23:05 machine-sd: Job write elapsed time = 00:00:04, Transfer rate = 
 57.92 K bytes/second
 12-Jun 23:05 machine-sd: Part 8 (233000 bytes) written to DVD.

It might be that the part file in question still is in your temporary 
storage directory. Do you have Write Part After Job set in the job 
definition?

 So the questions I have that I can't seem to answer via manuals nor
 via bconsoles interface is:
 
 1) what happened...  I doubt anyone can answer this.

At least no easily...

the disc is not full yet and mounting it shows about 3G in use:
   /dev/hda   2972194   2972194 0 100% /mnt/cdrom
and the missing part was very small:
   FD Bytes Written:   228,657 (228.6 KB)
   SD Bytes Written:   231,716 (231.7 KB)

I did experience problems with small part files myself and think that, 
for (some) DVD writers, a session has to have certain minimum size. No 
hard facts, though, that's just what I observed quite a while ago.

My workaround (or rather the one I implemented for my customer) was to 
set Write Part after Job to No for all jobs except the BackupCatalog 
one. Like this, All normal jobs would have a good chance to get written 
correctly, and only the Catalog backup was in danger of ending up corrupted.

 2) what to do about it?  Choices are, I think:
 2a) invalidate the whole volume
 2b) somehow tell bacula that just that part is missing and to rewrite
 just that part...

Yes, look for the part file in the spooling directory you set up for the 
DVD storage device.

  I can't find anywhere that the part number is
 actually stored though.  I did a quick search of even the DB
 tables and came up blank.  I don't believe this is user-editable
 data (which is fine).

Well, user-editable is a term that can be stretched a bit :-)

But you are right, the part file informatio is not stored anywhere in 
the catalog.

 3) how do I prevent this in the future?  Doubt anyone can answer this
either, since it would require answering (1) above.

Well, Write Part After Job is my only suggestion here... and, of 
course, closely observing things, running SD and DIR with debug logging, 
and eventually, if this repeats, filing a bug report.

 (I turned on tracing on the sd to figure out this problem and it
 finally pointed out that the next backup was failing because it tried
 to mount the disc and couldn't find BaculaDVD0009.8...  I didn't have
 tracing on during the failure time though unfortunately)

Arno

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] missing part on a DVD... why? what to do?

2007-06-13 Thread Wes Hardaker
 AL == Arno Lehmann [EMAIL PROTECTED] writes:

AL It might be that the part file in question still is in your temporary 
AL storage directory.

I should have mentioned that I looked there, and it's not there.

AL Do you have Write Part After Job set in the job 
AL definition?

Yep.  (though it's in the JobDefs referral)

 the disc is not full yet and mounting it shows about 3G in use:
 /dev/hda   2972194   2972194 0 100% /mnt/cdrom
 and the missing part was very small:
 FD Bytes Written:   228,657 (228.6 KB)
 SD Bytes Written:   231,716 (231.7 KB)

AL I did experience problems with small part files myself and think that, 
AL for (some) DVD writers, a session has to have certain minimum size. No 
AL hard facts, though, that's just what I observed quite a while ago.

huh.  that'd be odd.  It should be easy to test too, cause 2
back-to-back incrementals should hit it.

AL My workaround (or rather the one I implemented for my customer) was to 
AL set Write Part after Job to No for all jobs except the BackupCatalog 
AL one. Like this, All normal jobs would have a good chance to get written 
AL correctly, and only the Catalog backup was in danger of ending up corrupted.

Interesting.  I'll certainly think on that one.

 2) what to do about it?  Choices are, I think:
 2a) invalidate the whole volume
 2b) somehow tell bacula that just that part is missing and to rewrite
 just that part...

AL Yes, look for the part file in the spooling directory you set up for the 
AL DVD storage device.

Unfortunately, no go there...

Thanks for the help.  I'll see if I can duplicate the issue...
-- 
In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find.  -- Terry Pratchett

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Automated eject and automated mount of tapes

2007-06-13 Thread Martin Schmid
Unfortumately I cannot access the mail archive and censequently I cannot 
find out whether the answer has already been given.

I have a DDS-3 DAT and it should eject as soon as a new tape is 
requested and the new tape should be mounted automatically.

I have a configuration that does all this except that it does not read 
the fresh tape correctly. The tape is correctly ejected and the drive is 
then polled at intervals. The new tape is then actually detected but 
then the storage daemon falls into a status 'Device DDS-2 (/dev/nst0) 
open but no Bacula volume is currently mounted.'. But it actually _is_ a 
bacula volume and a simple mount in bconsole makes the job continue.

What is the correct combination of configurations to accomplish this - 
if possible at all? I found some mails addressing versions 1.31 or 1.38 
but I am using 2.0.3...

Best Regards,

Martin




This is my config:

  Automatic Mount = yes;   # when device opened, read it
  Label Media = yes;   # lets Bacula label unlabeled media
  Always Open = no;
  Volume Poll Interval = 5m
  Close on Poll= Yes;
  Removable Media = yes;
  Random Access = no;
  Maximum Open Wait = 3d  # 3 days in seconds
  Offline On Unmount = Yes;  # keep this too


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Maria McKinley
Ralf Gross wrote:
 Maria McKinley schrieb:
 Falk Sauer wrote:
 please make shure that your changer device has the correct permissions eg.:

  crw-rw root disk /dev/sg0

 and for the potentially next problem ...
 by your tapedrive device i'm unshure, i think this should /dev/nst0, i 
 don't 
 know how its correct on exabyte tapes.

 Normally the /dev/st* device makes a automatic rewind after write, 
 the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
 device. You dosn't write wich OS you use, here are little differences 
 between 
 the OSes.
 My permissions are:

 crw--- 1 root root 21,   0 2005-02-25 22:38 sg0

 so, maybe that is my problem. Can I just change this, like any file, 
 with chown (assuming that the disk part is important) and chmod?
 
 udev might override the permissions again. I would create an udev rule
 to set the right permissions (check if your system uses udev).
 
 You could try something like that:
 
 /etc/udev/rules.d/010-local.rules 
 
 KERNEL==st*,  GROUP=tape, MODE=0660
 KERNEL==nst*, GROUP=tape, MODE=0660
 
 /etc/init.d/udev restart (or reload...)
 
 The bacula user has to be member of group tape.
 
 Ralf
 

Hmm, udev does not seem to be installed, although curiously, the config 
files are there. On the machine I had working previously with this tape 
drive and an earlier version of bacula (1.36), udev was also not 
installed, but again the config files were there, so it seems some other 
package is using and installing these config files.

Weirder still, the permissions on the old machine are:

crw-rw 1 bacula bacula 9, 128 Nov  4  2001 /dev/nst0
crw--- 1 bacula bacula 21,  0 Nov  4  2001 /dev/sg0

But there is no script in /etc/udev to set this, so I'm not sure how it 
got set, but it does tell me that permissions are almost certainly the 
problem. Additionally, mtx and and mt-st work from the command line, and 
btape has no problem with the auto test, so I almost certainly Falk is 
right, and it is a bacula permission problem.

I'm still not entirely sure what to do about it. Since udev isn't 
actually installed, I'm not sure what to restart to read my script.
Seems like something should be reading the udev config files, since I 
didn't put the default ones there, so some package must have. I'd rather 
not reboot this machine, but I will if no one knows, and then I can see 
if the permissions were updated. But how on earth did this get set in my 
previous installation without a script in udev?

thanks for everyone's help!

cheers,
maria

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] missing part on a DVD... why? what to do?

2007-06-13 Thread Arno Lehmann
Hi,

On 6/13/2007 8:48 PM, Wes Hardaker wrote:
 AL == Arno Lehmann [EMAIL PROTECTED] writes:
 
 AL It might be that the part file in question still is in your temporary 
 AL storage directory.
 
 I should have mentioned that I looked there, and it's not there.

That doesn't look good...

 AL Do you have Write Part After Job set in the job 
 AL definition?
 
 Yep.  (though it's in the JobDefs referral)

Ok.

 the disc is not full yet and mounting it shows about 3G in use:
 /dev/hda   2972194   2972194 0 100% /mnt/cdrom
 and the missing part was very small:
 FD Bytes Written:   228,657 (228.6 KB)
 SD Bytes Written:   231,716 (231.7 KB)
 
 AL I did experience problems with small part files myself and think that, 
 AL for (some) DVD writers, a session has to have certain minimum size. No 
 AL hard facts, though, that's just what I observed quite a while ago.
 
 huh.  that'd be odd.  It should be easy to test too, cause 2
 back-to-back incrementals should hit it.

Right, easily verified problem... Actually, to make this more clear, I'm 
more or less sure that the problems I encountered then were not a 
deficiency in DVD standards, but probably hardware- or software-related. 
For example, the notes I took then indicate that, using DVD writing 
software under windows, I could write smaller sessions, but I could not 
completely understand the data that was put into all these DVD data 
records. At least there were some differences to what growisofs produced.

 AL My workaround (or rather the one I implemented for my customer) was to 
 AL set Write Part after Job to No for all jobs except the BackupCatalog 
 AL one. Like this, All normal jobs would have a good chance to get written 
 AL correctly, and only the Catalog backup was in danger of ending up 
 corrupted.
 
 Interesting.  I'll certainly think on that one.
 
 2) what to do about it?  Choices are, I think:
 2a) invalidate the whole volume
 2b) somehow tell bacula that just that part is missing and to rewrite
 just that part...
 
 AL Yes, look for the part file in the spooling directory you set up for the 
 AL DVD storage device.
 
 Unfortunately, no go there...
 
 Thanks for the help.  I'll see if I can duplicate the issue...

Looks like that plus extensive debug logging is the only thing you can 
do now.

Arno

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula and Solaris 10_x86

2007-06-13 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just checked -- all software on Blastwave must be available for x86
and SPARC before it is made public. The most current version is
currently available.

Shon Stephens wrote:
 Thats good to know. I have not heard of Blastwave until reading this mailing 
 list. Will definitely check that out.  
  
 Thank you 
  
 === 
 Shon Stephens 
 Senior Systems Administrator 
 Mentora Group, Inc 
  
  
  
 - Original Message - 
 From: Ryan Novosielski [EMAIL PROTECTED] 
 Sent: Wed, 6/13/2007 13:31 
 To: bacula-users@lists.sourceforge.net 
 Subject: Re: [Bacula-users] Bacula and Solaris 10_x86 
  
 Not a problem at all, from what I've seen. I think there are even 
 packages available, but I'm not 100% sure on that one. Check Blastwave 
 to see if they have SPARC and x86. In fact, the ability to work on 
 Solaris x86 is why I chose this software over sticking with our 
 enterprise software. 
  
 Shon Stephens wrote: 
 I have no previous experience with Bacula. I am in the process of evaluating 
 Bacula for use in our environment. I'd like to know   
 
 Does Bacula and its supporting programs compile/run on Solaris 10_x86?  
 Does Bacula/MTX work on Solaris 10_x86? Has anyone used it with an Exabyte 
 Magnum 224 LTO Library? Mine only has the 1 LTO-3 drive.  
 
 Thanks,  
 Shon  
  
- -
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___

Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

- --
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Systems Programmer III
 |$| |__| |  | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGcEDGmb+gadEcsb4RArs+AKChbROlkf1opYBsNSsJVYk4M1VDVgCgrOoR
eA2w/r1bhB1FyTDOeiJY45E=
=SpgV
-END PGP SIGNATURE-
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Zlib data error failure on only one file in restore

2007-06-13 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I'd be interested in seeing some more tests on this kind of thing. See
if you can reliably duplicate the problem. I know this is digging a
little deeper, but it would probably be good to know what version of
Zlib you are using on your system. I'm not too sure about the
compression process, however. I know the -fd does the initial
compression, but the decompression I'm not so sure about. The
destination -fd? The -sd?

Perhaps this will get the ball rolling. I'd also suggest running the
daemons involved with a higher debug level. An example is probably in
the manual.

Jeff Dickens wrote:
 I don't know where to turn on this one.  I seem to have proven I can't
 depend on being able to do a restore.
 
 
 Jeff Dickens wrote:
 I ran a test restore, verifying (apparently) that my now-retired
 Windows SD system really was handling the end-of-tape condition
 correctly, and found to my surprise that I got a Zlib data error
 failure on one file.  The rest of the restore seems perfect.  One
 probably important point is that the file in question is large: over
 750MB. 

 The FD that did the backup several weeks ago was liz1-fd Version:
 2.0.3 (06 March 2007)  VSS Linux Cross-compile Win32.  The FD that
 did the restore was kestrel-fd Version: 2.0.4 (02 May 2007)  VSS
 Linux Cross-compile Win32.  The SD that did the restore was
 squirrel-sd Version: 2.0.3 (06 March 2007) i686-redhat-linux-gnu
 redhat.  The SD that did the backup was the 2.0.4 version on Windows.


 Is this a bug, or a known problem?

 11-Jun 09:41 packrat-dir: Start Restore Job RestoreFiles.2007-06-11_09.41.47
 11-Jun 08:44 squirrel-sd: Please mount Volume tape-pool1-0001 on Storage 
 Device VS160 (/dev/nst0) for Job RestoreFiles.2007-06-11_09.41.47
 11-Jun 08:48 squirrel-sd: Ready to read from volume tape-pool1-0001 on 
 device VS160 (/dev/nst0).
 11-Jun 08:48 squirrel-sd: Forward spacing Volume tape-pool1-0001 to 
 file:block 132:0.
 11-Jun 09:00 squirrel-sd: End of Volume at file 137 on device VS160 
 (/dev/nst0), Volume tape-pool1-0001
 11-Jun 09:00 squirrel-sd: RestoreFiles.2007-06-11_09.41.47 Warning: 
 acquire.c:237 Wrong Volume mounted on device VS160 (/dev/nst0): Wanted 
 tape-pool1-0002 have tape-pool1-0001
 11-Jun 09:00 squirrel-sd: Please mount Volume tape-pool1-0002 on Storage 
 Device VS160 (/dev/nst0) for Job RestoreFiles.2007-06-11_09.41.47
 11-Jun 09:07 squirrel-sd: Ready to read from volume tape-pool1-0002 on 
 device VS160 (/dev/nst0).
 11-Jun 09:07 squirrel-sd: Forward spacing Volume tape-pool1-0002 to 
 file:block 0:1.
 11-Jun 10:05 kestrel-fd: RestoreFiles.2007-06-11_09.41.47 Error: 
 Uncompression error on file /brestore/C/Documents and 
 Settings/liz/Application 
 Data/Thunderbird/Profiles/79l2clkj.default/Mail/lightning.he.net/Inbox. 
 ERR=Zlib data error
 11-Jun 09:25 squirrel-sd: End of Volume at file 8 on device VS160 
 (/dev/nst0), Volume tape-pool1-0002
 11-Jun 09:25 squirrel-sd: End of all volumes.
 11-Jun 10:24 packrat-dir: RestoreFiles.2007-06-11_09.41.47 Error: Bacula 
 2.0.3 (06Mar07): 11-Jun-2007 10:24:40
   JobId:  6821
   Job:RestoreFiles.2007-06-11_09.41.47
   Client: kestrel-fd
   Start time: 11-Jun-2007 09:41:49
   End time:   11-Jun-2007 10:24:40
   Files Expected: 7,743
   Files Restored: 7,744
   Bytes Restored: 20,270,174,205
   Rate:   7884.2 KB/s
   FD Errors:  1
   FD termination status:  Error
   SD termination status:  OK
   Termination:*** Restore Error ***

 11-Jun 10:24 packrat-dir: Begin pruning Jobs.
 11-Jun 10:24 packrat-dir: No Jobs found to prune.
 11-Jun 10:24 packrat-dir: Begin pruning Files.
 11-Jun 10:24 packrat-dir: No Files found to prune.
 11-Jun 10:24 packrat-dir: End auto prune.



   

 

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 

 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   
 
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 
 
 
 
 ___
 Bacula-users mailing 

[Bacula-users] OperatorCommand Question

2007-06-13 Thread Mike Vasquez

Besides bsmtp, can I use the OperatorCommand to issue UNIX style commands?

In the document there is %e = Job Exit code (OK, Error, ...)
I want to be able to echo this out to a file on the file daemon machine.

Is this possible?  I am not sure of the syntax.  Would the whole command
have to be in quotes?

For example, OperatorCommand = echo %e  /opt/bacula/working/status_bu

Mike
-- 
View this message in context: 
http://www.nabble.com/OperatorCommand-Question-tf3917182.html#a11106940
Sent from the Bacula - Users mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Arno Lehmann
Hi,

On 6/13/2007 8:58 PM, Maria McKinley wrote:
 Ralf Gross wrote:
 Maria McKinley schrieb:
 Falk Sauer wrote:
 please make shure that your changer device has the correct permissions eg.:

  crw-rw root disk /dev/sg0

 and for the potentially next problem ...
 by your tapedrive device i'm unshure, i think this should /dev/nst0, i 
 don't 
 know how its correct on exabyte tapes.

 Normally the /dev/st* device makes a automatic rewind after write, 
 the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
 device. You dosn't write wich OS you use, here are little differences 
 between 
 the OSes.
 My permissions are:

 crw--- 1 root root 21,   0 2005-02-25 22:38 sg0

 so, maybe that is my problem. Can I just change this, like any file, 
 with chown (assuming that the disk part is important) and chmod?
 udev might override the permissions again. I would create an udev rule
 to set the right permissions (check if your system uses udev).

 You could try something like that:

 /etc/udev/rules.d/010-local.rules 

 KERNEL==st*,  GROUP=tape, MODE=0660
 KERNEL==nst*, GROUP=tape, MODE=0660

 /etc/init.d/udev restart (or reload...)

 The bacula user has to be member of group tape.

 Ralf

 
 Hmm, udev does not seem to be installed, although curiously, the config 
 files are there. On the machine I had working previously with this tape 
 drive and an earlier version of bacula (1.36), udev was also not 
 installed, but again the config files were there, so it seems some other 
 package is using and installing these config files.
...
 I'm still not entirely sure what to do about it. Since udev isn't 
 actually installed, I'm not sure what to restart to read my script.
 Seems like something should be reading the udev config files, since I 
 didn't put the default ones there, so some package must have. I'd rather 
 not reboot this machine, but I will if no one knows, and then I can see 
 if the permissions were updated. But how on earth did this get set in my 
 previous installation without a script in udev?

Which OS do you use?

Usually, there a commands available to tell you which package a file 
belongs to. For example, running an rpm-based distribution:
elf:~ # rpm -qf /etc/udev/udev.conf
udev-030-9.2

Starting with that information, or knowing which OS you run, someone 
might have an idea...


Oh, and of course you could always add a simple line like 'chown 
bacula.tape /dev/sg0' into the Bacula start script.

Arno

-- 
IT-Service Lehmann[EMAIL PROTECTED]
Arno Lehmann  http://www.its-lehmann.de

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] [Bacula-devel] Project for strong incremental backup assurance

2007-06-13 Thread Martin Simmons
 On Mon, 11 Jun 2007 14:45:38 +0200, Kern Sibbald said:
 
 Hello,
 
 Thanks for your comments.  Please see my notes below ...
 
 On Monday 11 June 2007 10:24, Andre Noll wrote:
  On 15:35, Andre Noll wrote:
  
- Reviewing my hash table code (particularly the hash function)  
src/lib/htable.h src/lib/htable.c
   
   Will do.
  
  First some general remarks:
  
  - check the return value of malloc()
 
 Not necessary, malloc() is #defined to be bmalloc(), which aborts if it is 
 out 
 of memory.
 
  - keys are restricted to strings. it would be easy to extend this
to arbitrary data by adding a size field.
 
 Yes, good idea, though I don't immediately see a need to handle anything 
 other 
 than strings within Bacula.
 
  - IMHO %p is prefered for printing pointer variables.
 
 Yes, but it was not portable.  We now have our own Bacula printf code which 
 is 
 portable and supports %p, so I've been converting the old stuff when I am in 
 the file.  Clearly this is a good file to attack.
 
  
  --- htable.h
  
  
   struct hlink {
  void *next;/* next hash item */
  
  why not struct hlink *next?
 
 Good question -- I think you are right.  I'll try it and see if anything 
 complains ...
 
  
  char *key; /* key this item */
  uint32_t hash; /* hash for this key */
   };
   
   class htable : public SMARTALLOC {
  hlink **table; /* hash table */
  int loffset;   /* link offset in item */
  
  see below.
  
  uint32_t num_items;/* current number of items */
  uint32_t max_items;/* maximum items before growing */
  
  see below.
  
  uint32_t buckets;  /* size of hash table */
  uint32_t hash; /* temp storage */
  uint32_t index;/* temp storage */
  uint32_t mask; /* remainder mask */
  uint32_t rshift;   /* amount to shift down */
  hlink *walkptr;/* table walk pointer */
  
  This is only used in first() and next(). IMHO the code would be
  more readable if this were local to these two methods and
  mext() would take a pointer to the predecessor.
 
 I think what you are suggesting is possible, and I will take a look at it. 
 However, it leads to several problems:
 1. walkptr and walk_index are then no longer treated the same, and IMO that 
 will make it harder to read the code.  I.e. there are 2 pieces of information 
 that would have to be returned and then passed into next().
 2. There will be additional code necessary to adjust the pointer on entry, 
 which I currently avoid by keeping walkptr in the class.
 3. It complicates the user code in that it must pass the old pointer to the 
 next() routine and if it is symmetric also walk_index.
 
  
  uint32_t walk_index;   /* table walk index */
  
  same here.
 
 As with the above, that will complicate the problem by returning it to the 
 higher level program.  The user program really shouldn't need to know 
 anything about walkptr or walk_index as they are simply the means to traverse 
 a hash list in linear order without using recursion (I have never seen such 
 code anywhere), so IMO, returning them to the higher level routine breaks the 
 encapsulation of the code.
 
  
  void hash_index(char *key);/* produce hash key,index */
  void grow_table(); /* grow the table */
   public:
  htable(void *item, void *link, int tsize = 31);
  ~htable() { destroy(); }
  void init(void *item, void *link, int tsize = 31);
  bool  insert(char *key, void *item);
  void *lookup(char *key);
  void *first(); /* get first item in table */
  void *next();  /* get next item in table */
  void destroy();
  void stats();  /* print stats about the table */
  uint32_t size();   /* return size of table */
   };
  
  htable.c
  
  
   /*
* Create hash of key, stored in hash then
*  create and return the pseudo random bucket index
*/
   void htable::hash_index(char *key)
   {
  hash = 0;
  for (char *p=key; *p; p++) {
 hash += (hash  3) + (uint32_t)*p;
  }
  
  This ist just shifting and multiplication with the bytes in key. I
  would expect this hash to have quite some unneccessary collisions
  when used on strings, though I'm by no means an expert in this area.
 
 If I am not mistaken, this is a *very* common technique.  The most common 
 algorithm shifts by 5 rather than 3, but if I remember right my tests showed 
 that 3 was better -- at least with the filenames on my system.

I think I know why 3 is better -- it manages to encode the final 32/3 chars
instead of the final 32/5 :-)  Shifting is 

[Bacula-users] Double backup

2007-06-13 Thread Lucio Crusca
Hello all,

I have to configure a Bacula 2.0.3/Debian Etch so that it does two independent 
backup schedules: the first has disk files as storage, the second has a DVD 
unit. The backup policies should be:
* for disk files, full once, then incremental until there's space on disk
* for DVDs, full monthly, diff weekly, incremental daily.

The two backup methods should be independent of each other, so if a file 
foobar.txt was modified during the last day, a copy of it should end up both 
on disk files and on DVD next night. Moreover the incremental and 
differential relations between backups must take into account only previous 
backups on the same media type, so if foobar.txt was changed yesterday and 
backed up on files last night but not on DVD, it should be backed up on DVD 
next night even if no one touched it today (that is even if the most recent 
version is altready backed up on a different media type). Maybe there is a 
single word to say all those things toghether, only I don't know which is...

Now for the questions:
1. will I obtain that by simply defining schedules and jobs in bacula-dir.conf 
that point to different storage daemons?
2. how do I tell do incremental until there is space on disk?

Thanks in advance,
Lucio.

-- 
Virtual Bit di Lucio Crusca
via Isonzo, 5
10069 - Villar Perosa (TO)
http://virtualbit.sulweb.org

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Automated eject and automated mount of tapes

2007-06-13 Thread Steven Ellis
Martin Schmid wrote:
 I have a DDS-3 DAT and it should eject as soon as a new tape is 
 requested and the new tape should be mounted automatically.

 I have a configuration that does all this except that it does not read 
 the fresh tape correctly. The tape is correctly ejected and the drive is 
 then polled at intervals. The new tape is then actually detected but 
 then the storage daemon falls into a status 'Device DDS-2 (/dev/nst0) 
 open but no Bacula volume is currently mounted.'. But it actually _is_ a 
 bacula volume and a simple mount in bconsole makes the job continue.

 What is the correct combination of configurations to accomplish this - 
 if possible at all? I found some mails addressing versions 1.31 or 1.38 
 but I am using 2.0.3...

   
I have a similar config that works for me, with 1.38 I used it on a DDS4 
drive, but now I'm using it with an LTO2.
 This is my config:

   Automatic Mount = yes;   # when device opened, read it
   Label Media = yes;   # lets Bacula label unlabeled media
   Always Open = no;
   Volume Poll Interval = 5m
   Close on Poll= Yes;
   Removable Media = yes;
   Random Access = no;
   Maximum Open Wait = 3d  # 3 days in seconds
   Offline On Unmount = Yes;  # keep this too

   
The only obvious difference I see with my config is that I have Always 
Open = Yes--in case I've missed something, here is my device description:

Device {
  Name = LTO2
  Media Type = LTO2
  Archive Device = /dev/nst0
  Changer Device = /dev/sg0
  Automatic Mount = Yes
  Always Open = Yes
  Volume Poll Interval = 3 min
  Close On Poll = Yes
  Offline On Unmount = Yes
  Removable Media = Yes
  Random Access = No
  Maximum Job Spool Size = 21474836480
  Maximum Block Size = 262144
  Maximum Network Buffer Size = 262144
  Spool Directory = /backup/bacula/spool
  Alert Command = sh -c 'smartctl -H -l error %c'
  Label Media = Yes
}

The block size and network buffer size settings should be completely 
irrelevant--I did them to try to improve write performance (and at this 
point it is unclear if it helps).  I specify the changer device even 
though I don't have a changer just to make the Alert Command work--or so 
I recall--I don't actually have an LTO changer.

For me at least, this works as you suggest--if a tape is ejected either 
during a job due to a full, error or wrong tape condition, then when the 
correct tape is inserted it will just work.  On the other hand, if I 
explicitly unmount a tape, it will eject, but I'll have to explicitly 
mount the correct tape later.

Hope this helps,

-se

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Michael Nelson
Are you sure that /dev/sg0 is in fact the autochanger device and not the 
tape drive?

For instance on my server (from dmesg output):


(scsi3:A:4): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
  Vendor: CERTANCE  Model: ULTRIUM 3 Rev: 1856
  Type:   Sequential-Access  ANSI SCSI revision: 04
Attached scsi generic sg2 at scsi3, channel 0, id 4, lun 0,  type 1

st: Version 20040403, fixed bufsize 32768, s/g segs 256
Attached scsi tape st0 at scsi3, channel 0, id 4, lun 0
st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
134217727
  Vendor: QUANTUM   Model: UHDL  Rev: 0031
  Type:   Medium Changer ANSI SCSI revision: 02
Attached scsi generic sg3 at scsi3, channel 0, id 4, lun 1,  type 8

So the generic device for my tape drive is /dev/sg2 (but the tape drive 
is normally addressed as /dev/nst0) and the changer for it is /dev/sg3.

It would be interesting to see the output of cat /proc/scsi/scsi on 
your machine.

[EMAIL PROTECTED] ~]# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: LSILOGIC Model: 1030 IM  Rev: 1000
  Type:   Direct-AccessANSI SCSI revision: 02
Host: scsi0 Channel: 00 Id: 08 Lun: 00
  Vendor: IBM  Model: 25P3495a S320  1 Rev: 1
  Type:   ProcessorANSI SCSI revision: 02
Host: scsi3 Channel: 00 Id: 04 Lun: 00
  Vendor: CERTANCE Model: ULTRIUM 3Rev: 1856
  Type:   Sequential-AccessANSI SCSI revision: 04
Host: scsi3 Channel: 00 Id: 04 Lun: 01
  Vendor: QUANTUM  Model: UHDL Rev: 0031
  Type:   Medium Changer   ANSI SCSI revision: 02




-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Maria McKinley
Arno Lehmann wrote:
 Hi,
 
 On 6/13/2007 8:58 PM, Maria McKinley wrote:
 Ralf Gross wrote:
 Maria McKinley schrieb:
 Falk Sauer wrote:
 please make shure that your changer device has the correct permissions 
 eg.:

  crw-rw root disk /dev/sg0

 and for the potentially next problem ...
 by your tapedrive device i'm unshure, i think this should /dev/nst0, i 
 don't 
 know how its correct on exabyte tapes.

 Normally the /dev/st* device makes a automatic rewind after write, 
 the /dev/nst* make no auto rewind. Bacula needs imho a non auto rewinding 
 device. You dosn't write wich OS you use, here are little differences 
 between 
 the OSes.
 My permissions are:

 crw--- 1 root root 21,   0 2005-02-25 22:38 sg0

 so, maybe that is my problem. Can I just change this, like any file, 
 with chown (assuming that the disk part is important) and chmod?
 udev might override the permissions again. I would create an udev rule
 to set the right permissions (check if your system uses udev).

 You could try something like that:

 /etc/udev/rules.d/010-local.rules 

 KERNEL==st*,  GROUP=tape, MODE=0660
 KERNEL==nst*, GROUP=tape, MODE=0660

 /etc/init.d/udev restart (or reload...)

 The bacula user has to be member of group tape.

 Ralf

 Hmm, udev does not seem to be installed, although curiously, the config 
 files are there. On the machine I had working previously with this tape 
 drive and an earlier version of bacula (1.36), udev was also not 
 installed, but again the config files were there, so it seems some other 
 package is using and installing these config files.
 ...
 I'm still not entirely sure what to do about it. Since udev isn't 
 actually installed, I'm not sure what to restart to read my script.
 Seems like something should be reading the udev config files, since I 
 didn't put the default ones there, so some package must have. I'd rather 
 not reboot this machine, but I will if no one knows, and then I can see 
 if the permissions were updated. But how on earth did this get set in my 
 previous installation without a script in udev?
 
 Which OS do you use?
 
 Usually, there a commands available to tell you which package a file 
 belongs to. For example, running an rpm-based distribution:
 elf:~ # rpm -qf /etc/udev/udev.conf
 udev-030-9.2
 
 Starting with that information, or knowing which OS you run, someone 
 might have an idea...
 
 
 Oh, and of course you could always add a simple line like 'chown 
 bacula.tape /dev/sg0' into the Bacula start script.
 
 Arno
 

Ah, thanks for that jolt. Forgot about figuring out what package a file 
belongs to. Looks like both hdparm and mt-st have files in the 
/etc/udev, so I tried reloading hdparm, and that updated permissions in 
/dev. I am now trying to label the tapes, but it appears that bacula is 
hung trying, this is where I've been for over 10 minutes:

*label barcodes
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: Exabyte
Connecting to Storage daemon Exabyte at dinah:9103 ...


In answer to other questions, mtx and mt-st both work from the command 
line, and the tape changer is definitely /dev/sg0, and the tape drive is 
definitely /dev/st0

thanks again,
Maria

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Broderick Wood

I would also do a quick check to make sure you have LUN support enabled.



On Wed, 13 Jun 2007 14:24:09 -0700
Michael Nelson [EMAIL PROTECTED] wrote:

 Are you sure that /dev/sg0 is in fact the autochanger device and not the 
 tape drive?
 
 For instance on my server (from dmesg output):
 
 
 (scsi3:A:4): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
   Vendor: CERTANCE  Model: ULTRIUM 3 Rev: 1856
   Type:   Sequential-Access  ANSI SCSI revision: 04
 Attached scsi generic sg2 at scsi3, channel 0, id 4, lun 0,  type 1
 
 st: Version 20040403, fixed bufsize 32768, s/g segs 256
 Attached scsi tape st0 at scsi3, channel 0, id 4, lun 0
 st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
 134217727
   Vendor: QUANTUM   Model: UHDL  Rev: 0031
   Type:   Medium Changer ANSI SCSI revision: 02
 Attached scsi generic sg3 at scsi3, channel 0, id 4, lun 1,  type 8
 
 So the generic device for my tape drive is /dev/sg2 (but the tape drive 
 is normally addressed as /dev/nst0) and the changer for it is /dev/sg3.
 
 It would be interesting to see the output of cat /proc/scsi/scsi on 
 your machine.
 
 [EMAIL PROTECTED] ~]# cat /proc/scsi/scsi
 Attached devices:
 Host: scsi0 Channel: 00 Id: 00 Lun: 00
   Vendor: LSILOGIC Model: 1030 IM  Rev: 1000
   Type:   Direct-AccessANSI SCSI revision: 02
 Host: scsi0 Channel: 00 Id: 08 Lun: 00
   Vendor: IBM  Model: 25P3495a S320  1 Rev: 1
   Type:   ProcessorANSI SCSI revision: 02
 Host: scsi3 Channel: 00 Id: 04 Lun: 00
   Vendor: CERTANCE Model: ULTRIUM 3Rev: 1856
   Type:   Sequential-AccessANSI SCSI revision: 04
 Host: scsi3 Channel: 00 Id: 04 Lun: 01
   Vendor: QUANTUM  Model: UHDL Rev: 0031
   Type:   Medium Changer   ANSI SCSI revision: 02
 
 
 
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


-- 

--

Broderick Wood
Seconded to AICT for the Summer
General Services Building #144
University of Alberta

(780) 492-6875


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Maria McKinley


Broderick Wood wrote:
 I would also do a quick check to make sure you have LUN support enabled.
 
 

What is LUN support, and how do I check to make sure it is enabled?

~maria

 
 On Wed, 13 Jun 2007 14:24:09 -0700
 Michael Nelson [EMAIL PROTECTED] wrote:
 
 Are you sure that /dev/sg0 is in fact the autochanger device and not the 
 tape drive?

 For instance on my server (from dmesg output):


 (scsi3:A:4): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
   Vendor: CERTANCE  Model: ULTRIUM 3 Rev: 1856
   Type:   Sequential-Access  ANSI SCSI revision: 04
 Attached scsi generic sg2 at scsi3, channel 0, id 4, lun 0,  type 1

 st: Version 20040403, fixed bufsize 32768, s/g segs 256
 Attached scsi tape st0 at scsi3, channel 0, id 4, lun 0
 st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
 134217727
   Vendor: QUANTUM   Model: UHDL  Rev: 0031
   Type:   Medium Changer ANSI SCSI revision: 02
 Attached scsi generic sg3 at scsi3, channel 0, id 4, lun 1,  type 8

 So the generic device for my tape drive is /dev/sg2 (but the tape drive 
 is normally addressed as /dev/nst0) and the changer for it is /dev/sg3.

 It would be interesting to see the output of cat /proc/scsi/scsi on 
 your machine.

 [EMAIL PROTECTED] ~]# cat /proc/scsi/scsi
 Attached devices:
 Host: scsi0 Channel: 00 Id: 00 Lun: 00
   Vendor: LSILOGIC Model: 1030 IM  Rev: 1000
   Type:   Direct-AccessANSI SCSI revision: 02
 Host: scsi0 Channel: 00 Id: 08 Lun: 00
   Vendor: IBM  Model: 25P3495a S320  1 Rev: 1
   Type:   ProcessorANSI SCSI revision: 02
 Host: scsi3 Channel: 00 Id: 04 Lun: 00
   Vendor: CERTANCE Model: ULTRIUM 3Rev: 1856
   Type:   Sequential-AccessANSI SCSI revision: 04
 Host: scsi3 Channel: 00 Id: 04 Lun: 01
   Vendor: QUANTUM  Model: UHDL Rev: 0031
   Type:   Medium Changer   ANSI SCSI revision: 02




 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users

 
 

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula reads disk pages atomically? (bdb question)

2007-06-13 Thread Martin Simmons
 On Tue, 12 Jun 2007 14:14:56 -0700, Ross Boylan said:
 
 The Berkeley Database apparently requires that hot backups read disk
 pages atomically.  They note that most system cp commands do so; I've
 searched the manual, FAQ, and newsgroups, but can't find how bacula
 operates when reading a file.
 
 Does anyone know if I can count on the reads taking whole pages?

Generally, no.

Specifically, possibly, at least if the page size is a factor of 65536, you
don't set sparse=yes, the OS guarantees that a call to read(2) with a page
aligned size will do it and also the network allows it.  In these cases, it
looks like the current read size equals the network buffer size (see Maximum
Network Buffer Size).

You could try using strace to see what bacula-fd is doing in practice.

__Martin

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Broderick Wood

I see in another post you say that MTX is working properly from the command 
line.  This makes me believe that LUN support is enabled.

You should be getting communication problems with MTX if it wasn't.  :-)

BTW  What Operating System and version are you running?


On Wed, 13 Jun 2007 14:48:05 -0700
Maria McKinley [EMAIL PROTECTED] wrote:

 
 
 Broderick Wood wrote:
  I would also do a quick check to make sure you have LUN support enabled.
  
  
 
 What is LUN support, and how do I check to make sure it is enabled?
 
 ~maria
 
  
  On Wed, 13 Jun 2007 14:24:09 -0700
  Michael Nelson [EMAIL PROTECTED] wrote:
  
  Are you sure that /dev/sg0 is in fact the autochanger device and not the 
  tape drive?
 
  For instance on my server (from dmesg output):
 
 
  (scsi3:A:4): 160.000MB/s transfers (80.000MHz DT, offset 127, 16bit)
Vendor: CERTANCE  Model: ULTRIUM 3 Rev: 1856
Type:   Sequential-Access  ANSI SCSI revision: 04
  Attached scsi generic sg2 at scsi3, channel 0, id 4, lun 0,  type 1
 
  st: Version 20040403, fixed bufsize 32768, s/g segs 256
  Attached scsi tape st0 at scsi3, channel 0, id 4, lun 0
  st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 
  134217727
Vendor: QUANTUM   Model: UHDL  Rev: 0031
Type:   Medium Changer ANSI SCSI revision: 02
  Attached scsi generic sg3 at scsi3, channel 0, id 4, lun 1,  type 8
 
  So the generic device for my tape drive is /dev/sg2 (but the tape drive 
  is normally addressed as /dev/nst0) and the changer for it is /dev/sg3.
 
  It would be interesting to see the output of cat /proc/scsi/scsi on 
  your machine.
 
  [EMAIL PROTECTED] ~]# cat /proc/scsi/scsi
  Attached devices:
  Host: scsi0 Channel: 00 Id: 00 Lun: 00
Vendor: LSILOGIC Model: 1030 IM  Rev: 1000
Type:   Direct-AccessANSI SCSI revision: 02
  Host: scsi0 Channel: 00 Id: 08 Lun: 00
Vendor: IBM  Model: 25P3495a S320  1 Rev: 1
Type:   ProcessorANSI SCSI revision: 02
  Host: scsi3 Channel: 00 Id: 04 Lun: 00
Vendor: CERTANCE Model: ULTRIUM 3Rev: 1856
Type:   Sequential-AccessANSI SCSI revision: 04
  Host: scsi3 Channel: 00 Id: 04 Lun: 01
Vendor: QUANTUM  Model: UHDL Rev: 0031
Type:   Medium Changer   ANSI SCSI revision: 02
 
 
 
 
  -- 
  This message has been scanned for viruses and
  dangerous content by MailScanner, and is
  believed to be clean.
 
 
  -
  This SF.net email is sponsored by DB2 Express
  Download DB2 Express C - the FREE version of DB2 express and take
  control of your XML. No limits. Just data. Click to get it now.
  http://sourceforge.net/powerbar/db2/
  ___
  Bacula-users mailing list
  Bacula-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/bacula-users
 
  
  
 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
 


-- 

--

Broderick Wood
Seconded to AICT for the Summer
General Services Building #144
University of Alberta

(780) 492-6875


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread tomasz
Maria McKinley wrote:
 Arno Lehmann wrote:
 Hi,

 On 6/13/2007 8:58 PM, Maria McKinley wrote:
 Ralf Gross wrote:
 Maria McKinley schrieb:
 Falk Sauer wrote:
 please make shure that your changer device has the correct permissions 
 eg.:

  crw-rw root disk /dev/sg0

 and for the potentially next problem ...
 by your tapedrive device i'm unshure, i think this should /dev/nst0, i 
 don't 
 know how its correct on exabyte tapes.

 Normally the /dev/st* device makes a automatic rewind after write, 
 the /dev/nst* make no auto rewind. Bacula needs imho a non auto 
 rewinding 
 device. You dosn't write wich OS you use, here are little differences 
 between 
 the OSes.
 My permissions are:

 crw--- 1 root root 21,   0 2005-02-25 22:38 sg0

 so, maybe that is my problem. Can I just change this, like any file, 
 with chown (assuming that the disk part is important) and chmod?
 udev might override the permissions again. I would create an udev rule
 to set the right permissions (check if your system uses udev).

 You could try something like that:

 /etc/udev/rules.d/010-local.rules 

 KERNEL==st*,  GROUP=tape, MODE=0660
 KERNEL==nst*, GROUP=tape, MODE=0660

 /etc/init.d/udev restart (or reload...)

 The bacula user has to be member of group tape.

 Ralf

 Hmm, udev does not seem to be installed, although curiously, the config 
 files are there. On the machine I had working previously with this tape 
 drive and an earlier version of bacula (1.36), udev was also not 
 installed, but again the config files were there, so it seems some other 
 package is using and installing these config files.
 ...
 I'm still not entirely sure what to do about it. Since udev isn't 
 actually installed, I'm not sure what to restart to read my script.
 Seems like something should be reading the udev config files, since I 
 didn't put the default ones there, so some package must have. I'd rather 
 not reboot this machine, but I will if no one knows, and then I can see 
 if the permissions were updated. But how on earth did this get set in my 
 previous installation without a script in udev?
 Which OS do you use?

 Usually, there a commands available to tell you which package a file 
 belongs to. For example, running an rpm-based distribution:
 elf:~ # rpm -qf /etc/udev/udev.conf
 udev-030-9.2

 Starting with that information, or knowing which OS you run, someone 
 might have an idea...


 Oh, and of course you could always add a simple line like 'chown 
 bacula.tape /dev/sg0' into the Bacula start script.

 Arno

 
 Ah, thanks for that jolt. Forgot about figuring out what package a file 
 belongs to. Looks like both hdparm and mt-st have files in the 
 /etc/udev, so I tried reloading hdparm, and that updated permissions in 
 /dev. I am now trying to label the tapes, but it appears that bacula is 
 hung trying, this is where I've been for over 10 minutes:
 
 *label barcodes
 Using default Catalog name=MyCatalog DB=bacula
 Automatically selected Storage: Exabyte
 Connecting to Storage daemon Exabyte at dinah:9103 ...
 
 
 In answer to other questions, mtx and mt-st both work from the command 
 line, and the tape changer is definitely /dev/sg0, and the tape drive is 
 definitely /dev/st0
 
 thanks again,
 Maria
 

try use mtx-changer instead of mtx and see whats happened
i think u should enable debug mode in mtx-changer too and look into log
file.

are you sure bacula have right permissions to this devices?


-- 
bEsT rEgArDs|   Confidence is what you have before you
tomasz dereszynski  |   understand the problem. -- Woody Allen
TD840-RIPE  |

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Maria McKinley


Broderick Wood wrote:
 I see in another post you say that MTX is working properly from the command 
 line.  This makes me believe that LUN support is enabled.
 
 You should be getting communication problems with MTX if it wasn't.  :-)
 
 BTW  What Operating System and version are you running?
 
 

I am running Debian, Linux version 2.4.27-3-386.

In another post, I had explained how I got the permissions fixed (at 
least I think, they aren't the same as they use to be, but they are what 
someone else had reccommeded), but bacula was hanging. It did quit 
hanging, and turns out I had forgotten to restart the storage daemon. 
But there still seems to be a problem, as this is what I get now:

*update slots
Using default Catalog name=MyCatalog DB=bacula
Automatically selected Storage: Exabyte
Connecting to Storage daemon Exabyte at dinah:9103 ...
3306 Issuing autochanger slots command.
Device Exabyte has 0 slots.
No slots in changer to scan.

Could this still be a permission problem?  Here are my permissions now:

crw-rw 1 root tape 9,  0 2005-02-25 22:38 /dev/st0
crw--- 1 root root 21,  0 2005-02-25 22:38 /dev/sg0

I assumed /dev/sg0 should have the same permissions as /dev/st0, so I 
added this to my script:

KERNEL==sg*,  GROUP=tape, MODE=0660

but this didn't change the permissions for /dev/sg0. Is this likely to 
be the problem the changer didn't see any slots, and any idea why didn't 
changing the permissions work like it did for /dev/st0?

thanks again,
maria


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread tomasz
Maria McKinley wrote:
 
 Broderick Wood wrote:
 I see in another post you say that MTX is working properly from the command 
 line.  This makes me believe that LUN support is enabled.

 You should be getting communication problems with MTX if it wasn't.  :-)

 BTW  What Operating System and version are you running?


 
 I am running Debian, Linux version 2.4.27-3-386.
 
 In another post, I had explained how I got the permissions fixed (at 
 least I think, they aren't the same as they use to be, but they are what 
 someone else had reccommeded), but bacula was hanging. It did quit 
 hanging, and turns out I had forgotten to restart the storage daemon. 
 But there still seems to be a problem, as this is what I get now:
 
 *update slots
 Using default Catalog name=MyCatalog DB=bacula
 Automatically selected Storage: Exabyte
 Connecting to Storage daemon Exabyte at dinah:9103 ...
 3306 Issuing autochanger slots command.
 Device Exabyte has 0 slots.
 No slots in changer to scan.
 
 Could this still be a permission problem?  Here are my permissions now:
 
 crw-rw 1 root tape 9,  0 2005-02-25 22:38 /dev/st0
 crw--- 1 root root 21,  0 2005-02-25 22:38 /dev/sg0
 
 I assumed /dev/sg0 should have the same permissions as /dev/st0, so I 
 added this to my script:
 
 KERNEL==sg*,  GROUP=tape, MODE=0660
 
 but this didn't change the permissions for /dev/sg0. Is this likely to 
 be the problem the changer didn't see any slots, and any idea why didn't 
 changing the permissions work like it did for /dev/st0?
 
 thanks again,
 maria
 

have been bacula running earlier as root? and right now is running as
bacula user? check starting script

cos if so as simple test change devices owner to bacula like
chown bacula:bacula /dev/st0
chown bacula:bacula /dev/sg0
and check if it works from bconsole
cos as i pointed it earlier when u run mtx in console u are doing it as
root - dont u? not bacula
when u r doing it from bconsole u r doing it as bacula group bacula - i
guess thats how it is running.
correct me if i am wrong


-- 
bEsT rEgArDs|   Confidence is what you have before you
tomasz dereszynski  |   understand the problem. -- Woody Allen
TD840-RIPE  |

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] exabyte autochanger

2007-06-13 Thread Maria McKinley
tomasz wrote:
 Maria McKinley wrote:
 Broderick Wood wrote:
 I see in another post you say that MTX is working properly from the command 
 line.  This makes me believe that LUN support is enabled.

 You should be getting communication problems with MTX if it wasn't.  :-)

 BTW  What Operating System and version are you running?


 I am running Debian, Linux version 2.4.27-3-386.

 In another post, I had explained how I got the permissions fixed (at 
 least I think, they aren't the same as they use to be, but they are what 
 someone else had reccommeded), but bacula was hanging. It did quit 
 hanging, and turns out I had forgotten to restart the storage daemon. 
 But there still seems to be a problem, as this is what I get now:

 *update slots
 Using default Catalog name=MyCatalog DB=bacula
 Automatically selected Storage: Exabyte
 Connecting to Storage daemon Exabyte at dinah:9103 ...
 3306 Issuing autochanger slots command.
 Device Exabyte has 0 slots.
 No slots in changer to scan.

 Could this still be a permission problem?  Here are my permissions now:

 crw-rw 1 root tape 9,  0 2005-02-25 22:38 /dev/st0
 crw--- 1 root root 21,  0 2005-02-25 22:38 /dev/sg0

 I assumed /dev/sg0 should have the same permissions as /dev/st0, so I 
 added this to my script:

 KERNEL==sg*,  GROUP=tape, MODE=0660

 but this didn't change the permissions for /dev/sg0. Is this likely to 
 be the problem the changer didn't see any slots, and any idea why didn't 
 changing the permissions work like it did for /dev/st0?

 thanks again,
 maria

 
 have been bacula running earlier as root? and right now is running as
 bacula user? check starting script
 
 cos if so as simple test change devices owner to bacula like
 chown bacula:bacula /dev/st0
 chown bacula:bacula /dev/sg0
 and check if it works from bconsole
 cos as i pointed it earlier when u run mtx in console u are doing it as
 root - dont u? not bacula
 when u r doing it from bconsole u r doing it as bacula group bacula - i
 guess thats how it is running.
 correct me if i am wrong
 
 

Ok, that did it. Changing them both to be owned by bacula fixed it. Now 
I just have figure out how to make sure they stay that way. Thanks a bunch!

cheers,
maria

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Windows Server-Client wont use gzip

2007-06-13 Thread Chuckles
Hi all,

I've searched for a solution for this but haven't found anything
I have the windows version (2.0.3) of the server and client installed on 
seperate machines, my fileset option specifies that i want compression 
used but the backups refuse to use compression

I'm backing up to a file, below are the job and fileset configs

Job {
  Name = Slimchunks_Current
  Type = Backup
  Level = Incremental
  Client = slimchunks_win-fd
  FileSet = d_current
  Schedule = NightlyIncremental
  Storage = File
  Messages = Standard
  Pool = Default
}

FileSet {
  Name = d_current
  Enable VSS = no
  Include {
Options {
  Exclude = yes
  WildFile = *.RUN
}
Options {
  compression = gzip
  signature = MD5
  portable = yes
}
File = h:/data_D/current
  }

Apart from no compression the backup works fine.
The binary directories contains the zlib1.dll
Am i missing something? Is this a bug?

Regards

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Windows Server-Client wont use gzip

2007-06-13 Thread Chuckles
Hold that question, i just redid the job after a full purge and reload 
of servers with the below configuration and it worked fine

Originally i had the compression option set first

Does this mean its an Optio FIFO issue?

Chuckles wrote:
 Hi all,

 I've searched for a solution for this but haven't found anything
 I have the windows version (2.0.3) of the server and client installed on 
 seperate machines, my fileset option specifies that i want compression 
 used but the backups refuse to use compression

 I'm backing up to a file, below are the job and fileset configs

 Job {
   Name = Slimchunks_Current
   Type = Backup
   Level = Incremental
   Client = slimchunks_win-fd
   FileSet = d_current
   Schedule = NightlyIncremental
   Storage = File
   Messages = Standard
   Pool = Default
 }

 FileSet {
   Name = d_current
   Enable VSS = no
   Include {
 Options {
   Exclude = yes
   WildFile = *.RUN
 }
 Options {
   compression = gzip
   signature = MD5
   portable = yes
 }
 File = h:/data_D/current
   }

 Apart from no compression the backup works fine.
 The binary directories contains the zlib1.dll
 Am i missing something? Is this a bug?

 Regards

 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Bacula-users mailing list
 Bacula-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/bacula-users
   

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users