[Bacula-users] Bacula version 2.2.x for Solaris, FreeBSD, and Windows

2007-04-15 Thread Kern Sibbald
Hello,

As I have previously emailed several times over the last 6 months or so, I  no 
longer build Bacula on Solaris and FreeBSD, and other than testing the Win32 
client, I am running no regression tests on Win32, Solaris and FreeBSD.  

The Bacula community must step forward and organize systematically running 
regression testing, but so far this has not happened (this is quite 
disappointing).

I have just completed significant modifications to the Volume reservation code 
in the Storage daemon (now in the SVN).  There will undoubtedly be some fine 
tuning before it ships.  However, I suspect that the code now makes recursive 
mutex calls, which work perfectly well on Linux, but they cause a failure on 
FreeBSD (this is permitted by the standard), which means that it is quite 
possible that the current SVN code will fail on FreeBSD.  For Solaris, I am 
unsure.

This email is a *BIG* urgent warning that unless the Bacula Solaris and 
FreeBSD users pull together and organize regression testing, you may find 
that version 2.2.x will not work on your platform, and it may be difficult to 
correct problems after production release in a timely fashion since once 
released, it is not possible to make any significant changes to mutex usage 
without destabilizing the code.

Now is the time to test and bring any problems to my attention.  I am ready to 
help you get the regression tests working and to fix mutex usage so that it 
works on your platform during the current development cycle.


Best regards,

Kern

PS: I will be out of town from this afternoon until late Tuesday.

-
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] bacula-fd on Linux giving intermittent errors

2007-04-15 Thread Davide Bolcioni
On Wednesday 11 April 2007 17:57:45 Michael Proto wrote:

 Any more ideas on getting the -fd to actually spit-out debug information
 is very welcome, and thanks again for all the help!

Are you running SELinux ? On recent RH platforms, you might want to 
search /var/log/audit/audit.log and/or /var/log/messages for clues regarding 
your problem.

Davide Bolcioni
-- 
There is no place like /home.


-
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] relabel command not working with Offline On Unmount = Yes set

2007-04-15 Thread Marc Schiffbauer
Hi all,

I am trying a second approach to understand how relabeling a tape
using the relable command from the console is supposed to work.

 * I have a single tape drive setup, no autochanger.
 * I am using bacula 2.0.3
 * labeling tapes works fine
 * backups work fine
 * restores work fine

But I do not manage it to relable a tape using the relabel command.
At this point I still believe it might be a bacula bug.

Maybe I am using an untested combination of settings in the Device
configuration of the SD?

It would be great if someone yould tell me what I am doing wrong
here:

My SD's Device Resource:

Device {
  Name = DLT8000
  Media Type = DLT-IV
  Archive Device = /dev/nst0
  AutomaticMount = yes
  AlwaysOpen = yes
  RemovableMedia = yes
  RandomAccess = no
  Offline On Unmount = Yes
  Spool Directory = /home/bacula-spool
  Maximum Spool Size = 10 g
  Maximum Job Spool Size = 2 g
}


Now I am in the console. I just inserted a known Tape into the tape
drive called Tape_20. I purged this tape using the purge command.


*status sd
[...]
Device status:
Device DLT8000 (/dev/nst0) is not open.
[...]
*


The tape drive needs some time to load the tape... I wait for it to
finish this.

 * tape is inserted
 * that volume is pruned
 * tape is *not* mounted

Now I should be able to use the relabel command, right?

I would expect that I send the relabled command, bacula woul read
the current label, then rewind, that write the new label.

Now what happens is that:


*relabel oldvolume=Tape_20 volume=Tape_Test
Automatically selected Storage: lisa-sd
Automatically selected Pool: Default
Connecting to Storage daemon lisa-sd at lisa:9103 ...
Sending relabel command from Tape_20 to Tape_Test ...

-- here the tape begins to do something. 
The tape is being ejected!!

Then, after the drive has finished ejecting the tape:

3912 Failed to label Volume: ERR=dev.c:425 Unable to open device
DLT8000 (/dev/nst0): ERR=Input/output error

Label command failed for Volume Tape_Test.
Do not forget to mount the drive!!!
* 


So why does bacula eject the tape here? Can somebody explain to why
this should not be a bug?

Could it be that bacula does an unmount here although the tape is
not mounted and this unmount command does the mt offline because
of the Offline On Unmount = Yes setting?

Ok I will set Offline On Unmount = No and try again to test this:

(restarting SD, inserting tape, waiting for tape to finish)


*relabel oldvolume=Tape_20 volume=Tape_Test
Automatically selected Storage: lisa-sd
Automatically selected Pool: Default
Connecting to Storage daemon lisa-sd at lisa:9103 ...
Sending relabel command from Tape_20 to Tape_Test ...
3000 OK label. VolBytes=64701 DVD=0 Volume=Tape_Test Device=DLT8000 
(/dev/nst0)
Catalog record for Volume Tape_Test, Slot 0  successfully created.
Old volume Tape_20 deleted from catalog.
Requesting to mount DLT8000 ...
3001 Mounted Volume: Tape_Test
3001 Device DLT8000 (/dev/nst0) is already mounted with Volume Tape_Test
* 


Voila!

But: I still would consider this a bug: It should be possible to
use the relabel command with a single tapedrive and the setting
Offline On Unmount = Yes, not?

Because I want bacula to eject the tape if it is requesting another
one...

Any comments? Or hints?

TIA
-Marc
-- 
+-O . . . o . . . O . . . o . . . O . . .  ___  . . . O . . . o .-+
| Ein Service von Links2Linux.de: /  o\   RPMs for SuSE   |
| -- PackMan! -- naeheres unter|   __|   and  others|
| http://packman.links2linux.de/ . . . O  \__\  . . . O . . . O . |

-
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula version 2.2.x for Solari s, FreeBSD, and Windows

2007-04-15 Thread Kern Sibbald
Hello,

For anyone interested in doing regression testing, here is the procedure that I 
recently sent to one interested FreeBSD user.  If you are planning to do 
regression testing, please let me and preferably the bacula-devel list know so 
that we don't get too much duplication of effort -- pretty unlikely the way 
things have been going :-)


There is not a whole lot of work to running the regression tests.  To set 
it up in the very beginning, it is a few hours, then to run it, it is just 
bringing the code up to date with two svn update commands and 
running a script.  If there are failures, then the time to resolve it is 
a bit longer.

Do you have a tape drive that could be used?  Preferrably an autochanger, 
but a tape drive with one blank tape is all that is really necessary.

If you would like to try running the regression scripts, please do the 
following:

- create a directory named bacula for example (any name will do)

- then in that directory, do the following things

- download the latest depkgs from Source Forge, unpack it into
   depkgs.  cd into depkgs, and do make.  This will build (hopefully)
   SQLite and SQLite3, which can be useful for regression testing.

- checkout the SVN for the main trunk/bacula
   svn checkout https://bacula.svn.sourceforge.net/svnroot/bacula/trunk/bacula 
bacula

- checkout the SVN for the main trunk/regress 
   svn checkout https://bacula.svn.sourceforge.net/svnroot/bacula/trunk/regress 
regress

- read the notes in the Developer's guide about regress (realizing they might 
be slightly out of date).
- read the README in the regress directory (realizing that it might be slightly 
out of date).

- Let me know what your normal database 
  SQL engine is.  You might setup your SQL engine so that it has a database 
named regress that
  can be accessed by user regress with no password.  We can use only SQLite, 
but it is better
  to run it against PostgreSQL if possible (and possibly MySQL).  

- In the regress directory, create a .conf file for yourself.  Start from 
prototype.conf and change
  it to suit your situation.

- If you are using FreeBSD, check the regress/scripts/freebsd_tape_options 
  file to ensure that it has the right options for your tape drive (if you have 
one).
  If you are running Solaris, the default script is fine.

- Then do:

   ./conf xxx.conf
   make setup

It should build Bacula without errors.

- if you wish to try it, you can run the disk based tests with

  ./do_file


The procedure is slightly different for Windows ...

Best regards,

Kern

-
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
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] basic bacula question on retention periods and disk backups

2007-04-15 Thread Dave
Hello,
I'm trying to set up disk backup jobs. I've included my config at the 
end of this msg, but i'm confused as to the difference between job 
retention, and volume retention in the client definition, and volume 
retention in the pool definition. I've read the bacula manual on these 
topics, and i understand the shortest one takes priority, but i'm not sure 
the values to set.
I've got a machine that has two jobs with it. The first backs up general 
files, and i want it to back up according to it's schedule, and have bacula 
automatically handle volume rotation. The second job is a monthly back up of 
/home, where i want it to do one full backup and the incrementals until the 
next full. And again automatic volume rotation, i.e. month 2's full volume 
overwrites the current one and the incrementals do the same.
The problem i'm having is i'm occationally getting the error no 
appendable volumes, which tells me i don't have my retention periods quite 
right for this setup. Any help appreciated.
Thanks.
Dave.

#
# Bacula zeus client configuration
#

Job {
  Name = backup_zeus
  Type = Backup
 Level = Incremental
  Schedule = ZeusCycle
  Messages = Standard
  Client = zeus-fd
  FileSet = fbsd_zeus
  Pool = Default
Full Backup Pool = Zeus_Full
Incremental Backup Pool = Zeus_Incremental
Storage = ZeusStorage
  Write Bootstrap = /var/db/bacula/zeus.bsr
  Priority = 10
}

Job {
  Name = backup_zeus_home
  Type = Backup
 Level = Incremental
  Schedule = ZeusCycleHome
  Messages = Standard
  Client = zeus-fd
  FileSet = fbsd_zeus_home
  Pool = Default
Full Backup Pool = Zeus_Full_Home
Incremental Backup Pool = Zeus_Incremental_Home
Storage = ZeusStorage
  Write Bootstrap = /var/db/bacula/zeus.bsr
  Priority = 10
}

FileSet {
  Name = fbsd_zeus
  Include {
options {
Compression=GZIP9
Signature=SHA1
aclsupport=yes
}
 File = /etc
File = /usr/local/etc
File = /usr/local/www
  }
  Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /usr/src
File = /usr/ports
File = /usr/doc
File = /usr/share/doc
File = /usr/obj
File = /tmp
File = /var/tmp
}
  }

FileSet {
  Name = fbsd_zeus_home
  Include {
options {
Compression=GZIP9
Signature=SHA1
aclsupport=yes
}
 File = /home
  }
  Exclude {
File = /proc
File = /tmp
File = /.journal
File = /.fsck
File = /usr/src
File = /usr/ports
File = /usr/doc
File = /usr/share/doc
File = /usr/obj
File = /tmp
File = /var/tmp
}
  }

Schedule {
  Name = ZeusCycle
  Run = Full 1st sun at 1:05AM
  Run = Incremental mon-sat at 1:05AM
}

Schedule {
  Name = ZeusCycleHome
  Run = Full 1st sun at 4:00AM
  Run = Incremental mon-sat at 4:00AM
}

Client {
  Name = zeus-fd
  Address = bacula.example.com
  FDPort = 9102
  Catalog = MyCatalog
  Password = xxx   # password for FileDaemon
  File Retention = 62 days
  Job Retention = 3 months
  AutoPrune = yes   # Prune expired Jobs/Files
}

Storage {
  Name = ZeusStorage
  Address = bacula.example.com
  SDPort = 9103
  Password = baculapassword1
  Device = ZeusStorage
  Media Type = File
}

pool {
 Name = Zeus_Full
 Pool Type = Backup
Maximum Volume Jobs = 1 # New file for each backup
 Recycle = yes # Bacula can automatically recycle volumes
 AutoPrune = yes # Prune expired volumes
  Volume Retention = 27 days
Maximum Volumes = 2 # Keep 2 fulls
LabelFormat = zeus-full
}

pool {
 Name = Zeus_Incremental
 Pool Type = Backup
Maximum Volume Jobs = 1 # New file for each backup
 Recycle = yes # Bacula can automatically recycle volumes
 AutoPrune = yes # Prune expired volumes
  Volume Retention = 312 hours
  Volume Use Duration = 6 days
Maximum Volumes = 10 # Keep 10 incrementals
LabelFormat = zeus-incremental
}

pool {
 Name = Zeus_Full_Home
 Pool Type = Backup
Maximum Volume Jobs = 1 # New file for each backup
 Recycle = yes # Bacula can automatically recycle volumes
 AutoPrune = yes # Prune expired volumes
  Volume Retention = 62 days
Maximum Volumes = 2 # Keep 2 fulls
LabelFormat = zeus-full-home
}

pool {
 Name = Zeus_Incremental_Home
 Pool Type = Backup
Maximum Volume Jobs = 1 # New file for each backup
 Recycle = yes # Bacula can automatically recycle volumes
 AutoPrune = yes # Prune expired volumes
  Volume Retention = 31 days
Maximum Volumes = 31 # Keep 10 incrementals
LabelFormat = zeus-incremental-home
}


-
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
[EMAIL PROTECTED]

[Bacula-users] appropriate data spool size for tape

2007-04-15 Thread Dave
Hello,
I'm getting my Quantum Dlt 4000 going with bacula. I've included my 
definitions below and the job that i'm running. I'm not getting very good 
performance with the spool, the drive starts and stops quite frequently, it 
is on an Adaptec Ultrawide 2940 scsi controller. I was wondering the optimal 
size of a tape data spool?
Thanks.
Dave.

# Definition of Quantum DLT4000 Tape Drive
Device {
  Name = Quantum DLT4000
Description = Quantum DLT4000 Tape Drive for FreeBSD
  Media Type = DLT
  Archive Device = /dev/sa0
LabelMedia = yes;   # lets Bacula label unlabeled Media
Random Access = Yes;
AutomaticMount = yes;   # when device opened, read it
RemovableMedia = no;
AlwaysOpen = no;
Offline On Unmount  = no
Hardware End of Medium  = no
BSF at EOM  = yes
Backward Space Record   = yes
Fast Forward Space File = no
TWO EOF = yes
# for data spooling
Maximum Spool Size = 1024
Maximum Job Spool Size = 1024
Spool Directory = /backup/bacula-spool
}

Job {
 Name = isos-Tape
  Type = Backup
  Client = zeus-fd
  FileSet = Iso Files
  Storage = Quantum DLT4000
  Messages = Standard
  Pool = Default
  Write Bootstrap = /var/db/bacula/tap.bsr
  Priority = 10
SpoolData = yes
}

Storage {
  Name = Quantum DLT4000
  Address = bacula.example.com # N.B. Use a fully qualified name 
here
  SDPort = 9103
  Password =    # password for Storage daemon
  Device = Quantum DLT4000 # must be same as in the storage daemon
  Media Type = DLT  # must be same as MediaType in 
Storage daemon
}

Pool {
  Name = Default
  Pool Type = Backup
  Recycle = yes   # Bacula can automatically recycle 
Volumes
  Recycle Oldest Volume = yes
  Maximum Volume Jobs = 1
  LabelFormat = TAPE-
  Volume Retention = 1 year
  Storage = Quantum DLT4000
}


-
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