[Bacula-users] Newbei - label command hangs because of full disk

2006-03-10 Thread Andreas Grabner
Hi,

one of my (test) jobs filled up one of my disks. Bacula told me to
"label" a media ...  I tried it but choosing the full Disk. Now i get
the following:

Device "/backup/disk1" is mounted with Volume "file10032006"
Device is blocked labeling a Volume.
Total Bytes=0 Blocks=0 Bytes/block=0
Positioned at File=0 Block=0

How can i cancel the label command? Will it time out?

Before you ask: No i hve not read all of the manual :-(

Thanks

Andreas Grabner





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Reuse of Diskspace

2006-03-10 Thread Achim Schmidt




Hi,

I've running a bacula setup that stores its backups to disk. basicly
i'm very satisfied with the system, but something looks a bit strange
for me.
I get the impresssion, that bacula uses as much diskspace as it can get
and is not reusing pruned diskspace.

sample:

one set stores about 12 GB every night in a dedicated container.
I defined a configuration, where I belive, the system stores 7 days
every night a full backup of the defined fileset.
In my opinion, in the night no 8, the system should prune teh first
backup and use the space insight the defines pool-file.
In night no 9 it should prune backup no 2 and user the free space ...

I think the time, that files has to been kept is the shortest "File
Retention" Setting in the relevand definition (client, job, pool, etc)

every nightly backup of this set is more or less exactly about 12 GB.

For me, that means:

7 * 12 GB = 84 GB

==> the pool file Database-0001 should grow the first 7 days about
12 GB / Night. That also was reality. But now, the file is still
growing, that geta me the impression, that there is something wrong
about the reuse of the pruned files. In its nighlt mails, bacula also
told me, that  files where pruned:

sample:

10-Mar 06:19 backup1-dir: Begin pruning Jobs.
10-Mar 06:19 backup1-dir: No Jobs found to prune.
10-Mar 06:19 backup1-dir: Begin pruning Files.
10-Mar 06:19 backup1-dir: Pruned Files from 2 Jobs for client database-fd from catalog.
10-Mar 06:19 backup1-dir: End auto prune.

Is there anything I'm doning wrong ?? Here is my config for this host /
Job / Pool / schedules, etc.:

Client {
  Name = database-fd
  Address = database.somewhere.com
  FDPort = 9102
  Catalog = MyCatalog
  Password = "1234567890" # password for FileDaemon
  File Retention = 7 days    # 30 days
  Job Retention = 15 days    # six months
  AutoPrune = yes # Prune expired Jobs/Files
}

Job {
  Name = "database"
  Client = database-fd
  Schedule = "NightlyDB"
  JobDefs = "NightlyJob"
  FileSet = "database_set"
  Write Bootstrap = "/var/bacula/database.bsr"
}

# database Set
FileSet {
  Name = "database_set"
  Include {
    Options {
  signature = MD5
  compression=GZIP
    }

 File = /backupdb

  }
}


Schedule {
  Name = "NightlyDB"
  Run = Level=Full Pool=Database mon-sun at 04:05
}

Pool {
  Name = Database
  Pool Type = Backup
  AutoPrune = yes
  Volume Retention = 14 days  
  Maximum Volumes = 4
  Recycle = yes
  Recycle Oldest Volume = yes
  Label Format = "Database-"
}

JobDefs {
  Name = "NightlyJob"
  Type = Backup
  Level = Incremental
  FileSet = "UnixMinSet"
  Client = backupserver-fd
  Storage = File
  Messages = Standard
  Pool = Default
  Priority = 10
}



thx & rgds

Achim







[Bacula-users] wrong date in firstwritten field (1970-01-01 01:00:00)

2006-03-10 Thread Ralf Gross
Hi,

I use a pool with 6 tapes for weekly full backup, each full backup needs 3
tapes. Retention worked fine for the last few weeks, the expected volumes
were used (volume retention 9 days, week 1 volume Bang1/2/3, week 2 volume
Bang3/4/5...). Today I got the notification about the upcoming jobs this
weekend:

Full   11-Mär-06  19:00  BangBang5-2006-02-08

Full   11-Mär-06  19:50  BackupCatalog   Bang5-2006-02-08

I was suprised that volume Bang5 should be used as first tape. I changed
the state of the other volumes (4/6) with bconsole to Recycle, but bacula
still wants volume Bang5 as first tape. This is the output from 'list
volumes' (removed some fields to better fit the page).

++-+--+-++---+
|volumename  |volstatus|volbytes  |files|recy|lastwritten|
++-+--+-++---+
|Bang1-2006-02-08|Full |66,393,748,936|  67 |  1 |2006-02-25 22:48:14|
|Bang2-2006-02-08|Purged   |66,509,741,779|  67 |  1 |2006-02-26 01:47:09|
|Bang3-2006-02-08|Purged   |60,504,889,661|  62 |  1 |2006-02-26 11:05:01|
|Bang4-2006-02-08|Recycle  |66,846,623,315|  67 |  1 |2006-02-18 22:47:03|
|Bang5-2006-02-08|Recycle  | 1|   0 |  1 |2006-02-19 01:41:36|
|Bang6-2006-02-08|Recycle  |66,418,086,144|  68 |  1 |2006-02-19 11:13:43|
++-+--+-++---+

I'm confused by this output, because Bang5 was the second tape of three
tapes that were used for the full backup three weeks ago. I don't know why
volbytes/files show these values.

Looking at the volume state with llist, reports 1970-01-01 01:00:00 as
firstwritten date.

  mediaid: 5
   volumename: Bang5-2006-02-08
 slot: 5
   poolid: 1
mediatype: AIT-2
 firstwritten: 1970-01-01 01:00:00
  lastwritten: 2006-02-19 01:41:36
labeldate: 2006-02-18 19:30:03
  voljobs: 0
 volfiles: 0
volblocks: 0
volmounts: 1
 volbytes: 1
volerrors: 0
volwrites: 1,031,691
 volcapacitybytes: 0
volstatus: Recycle
  recycle: 1
 volretention: 777,600
   voluseduration: 172,800
   maxvoljobs: 0
  maxvolfiles: 0
  maxvolbytes: 0
inchanger: 1
  endfile: 66
 endblock: 8,689
 volparts: 0
labeltype: 0
storageid: 2

There is one other tape used for a second client that reports this date
too. I checked the syslog entries, but couldn't find anything obvious. The
time entries between 2006-02-18 and 2006-02-19 are all ok.

Any ideas why bacula reports this wrong date?

Ralf




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


AW: [Bacula-users] File Daemon Script?

2006-03-10 Thread Michael Münch
Hi Robert,

I had the same problem here and the solution is quite easy with bacula:

1. I created a batch file on the client (i.e. c:\bacula\before_back.bat)

2. create a VBS Script with the following code:
Dim oOL 
Set oOL = CreateObject("Outlook.Application") 
oOL.Quit 

3. save it as c:\bacula\close_outlook.vbs

4. add the following to start the vbscript in your batch
Cscript "c:\bacula\close_outlook.vbs"

5. In the director configuration you have to add the following in your
job-definition
   Client RunBeforeJob= "c:/bacula/before_back.bat"


The above will start the batch on the client before the backup begins.
The VBS Script connects to Outlook and Closes it. I have some additional
functions in the batch (save registry and so on) which makes it
necessary to have an additional batch file.


Cheers,
Michael
 



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Robert
W Hartzell
Gesendet: Freitag, 10. März 2006 03:48
An: bacula-users@lists.sourceforge.net
Betreff: Re: [Bacula-users] File Daemon Script?


On Thu, 2006-03-09 at 18:09, mpapet wrote:
> Hi,
> 
> I'd like to run a script on a client. (bacula-fd.conf) In this case, 
> it's a windows client and I'm trying to close outlook before backing 
> up the pst.
> 
> FYI, bacula complains about the pst being locked by another process if

> Outlook is open.  That's expected behavior.
> 
> I didn't see anything in the docs and am wondering if anyone has some 
> kind of suggestion.
> 
> Michael

I can't answer your question but this may be of some help. It's a free
program from Microsoft that backs up your pst files. It works well I
used it for a couple of years before I dropped Windows for Solaris.

If the URL is broken search Microsoft for pftbackup.exe
http://tinyurl.com/oh4l

Robert



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language that extends applications into web and mobile media. Attend the
live webcast and join the prime developer group breaking into this new
coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread david robert
Hi,     I am using the following script for end of backup to run and my backup is working but my tape will not eject after end of backup.I am using debian 3.1 with bacula     #!/bin/sh  /usr/bin/bconsole -c /etc/bacula/bconsole.conf 

Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Gavin Conway

Hi,

I'm seeing the same problem using a very similar script. Also using 
Debian Sarge 3.1 with the latest version of Bacula. I think this is more 
to do with Bacula not having finished with the tape drive when the 
script runs.


If anyone knows how this goes let me know.

Thanks,
Gavin

--
UKS Ltd, Birmingham Road, Studley, Warwickshire, B80 7BG
Tel: 08700 681 333  -  Fax: 01527 851 301  -  AS: 20547
[EMAIL PROTECTED]  -  www.uksolutions.co.uk



david robert wrote:


Hi,
 
I am using the following script for end of backup to run and my backup 
is working but my tape will not eject after end of backup.I am using 
debian 3.1 with bacula
 
#!/bin/sh

/usr/bin/bconsole -c /etc/bacula/bconsole.conf < 
I am getting the following error
 
*10-Mar 02:32 bacula1-dir: RunAfter: mt: /dev/nst0: Permission denied

10-Mar 02:32 bacula-dir: RunAfter: mt: /dev/nst0: Permission denied*
 
nst0 permissions as follows
 
crw-rw  1 root tape 9, 128 2005-02-26 06:38 nst0
 
Can some one help me where i am doing wrong
 
thanks



Yahoo! Messenger 
 
NEW - crystal clear PC to PC calling worldwide with voicemail 
 







---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with volume permissions

2006-03-10 Thread Arno Lehmann

Hi,

On 3/10/2006 8:14 AM, Andrus Naulainen wrote:


I got Permission denied error when bacula tried to write into the 
volume. VolStatus of this volume (name is varund0070) is Recycle and 
it's size is 1 byte. I have one pool with 100 volumes (varund0001 .. 
varund0100) each 4GB and they are on HD with free space 48GB. I'm 
probably missing some important information which helps to solve 
this, ask then. And log is here:




The first thing is to determine exactly what permissions are wrong:

1) Look at the mode and ownership of the volume using
   ls -l /mnt/varund/varund0070
  


Login as a root gives

   varund:~# ls -l /mnt/varund/varund0070
   ls: /mnt/varund/varund0070: Permission denied


Not good.
This might be selinux or ACL issue, linux capabilities also comes to my 
mind. All this depends on the OS configuration, so, concerning these 
ideas, you should ask the one who set up that system or have a closer 
look into the documentation.


...

3) Is /mnt/varund mounted for writing?
  



   varund:~# mount -l
   ...
   /dev/mapper/vg-lv on /mnt/varund type reiserfs (rw)
   ...


ReiserFS tends to show such a behaviour in case of filesystem damage I'm 
told. To verify this, unmount the partition and do a file system check 
on it. Study the options for reiserfsck closely - IIRC, without special 
invitation it doesn't do a very thorough check. in case of a rebuild 
it's even possible you lose data, so usually I'd suggest to do a backup 
prior to a file system repair :-(


Anyway, this is one more reason against disk based backups, I'm afraid...




4) Did anything change since you first wrote these volumes?
  



   I'm not sure. I have to deal with system which is set up by someone
   else and I have written anything yet. Bacula suppose to do backup
   jobs every night, but haven't done anything since I came to the
   house (that was two weeks ago). But in first days I didn't touch
   anything.


In that case, I'd suggest to set up the system from scratch again. 
Trying to understand how it all works without a documentation might take 
longer than doing everything again - and writing down details of your 
setup, too.




   Andrus


Arno

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problems with Volumes on FileStorage

2006-03-10 Thread Arno Lehmann

Hello,

this reached my mail address only, and I suppose it was meant for the 
list...


Arno

On 3/10/2006 1:13 AM, Christopher Mills wrote:
I see this as a fundemental issue with file storage. With tape, you have 
a selection of separate media that various "versions" of backed-up files 
end up residing on. With file storage you have to make the concious 
decision to design backups that reside on physically different media. 
Its easy to end up just backing everything up to one physical disk. I am 
designing a system of "mirrored" backups with Bacula where each host 
being backed up is backed up using identical jobs except for using two 
independent file storage devices on two independent storage daemons. I 
believe in a backup rule of threes. Important data should always be 
copied in at least three places: normally the original and two 
independent backups. As an example, if you are going to rebuild the 
machine the original data is on, then make a third copy before your 
reformat the hard drive. It is only in unexpected crisis that there 
should ever be less than three copies. I came to this rule after having 
seen backups fail in crisis a couple of times. Regular recovery tests 
from backups are also important.


This doesn't help you now, I know. Sorry about that (I am new to Bacula 
so I probably can't help you through this.). Don't mean to throw salt on 
the wound.


Arno Lehmann wrote:


Hello,

On 3/9/2006 10:59 AM, Joerg Staedele / Computer Plus GmbH wrote:


Dear list,

i'm getting grey hair from debugging a strange problem with bacula.




I do have lots of grey hair, but still I feel with you :-)

...


I ran a bscan on all Volumes ... Vol1 was OK, Vol2 was OK, Vol3 was OK,
Vol4 is broken ->

bscan: butil.c:266 Using device: "FileStorage" for reading.
09-Mär 10:42 bscan: Ready to read from volume "Harddisk4" on device
"FileStorage" (/home/bacula).
bscan: bscan.c:469 VOL_LABEL: OK for Volume: Harddisk4
bscan: bscan.c:563 Could not find SessId=59 SessTime=1140960629 for EOS
record.
bscan: bscan.c:477 70643 "errors" ignored before first Start of Session
record.
09-Mär 10:49 bscan: bscan Error: block.c:305 Volume data error at
4:1731764368!
Block checksum mismatch in block=62155 len=64512: calc=c9f38ba6 
blk=9607b9cb




That looks bad, I'd guess it's something serious. Might be a disk 
error, file system corruption, or something like that.


Have you had a look into the system log to see if the OS notices lower 
level errors than Bacula reports?


Apart from that, unfortunately I don't have advice how to restore from 
the broken files.


I'd suggest checking the disks with a tool like badblocks, 
smartmontools, or the manufacturers test program.



Records would have been added or updated in the catalog:
  1 Media
  1 Pool
 91 Job
 875106 File

Vol5 was OK again but Vol6 is broken too ->



...


I really dont know where this problems come from. All i want is a




As stated above, I'd assume hardware problem.


working backup for our servers :(




Well, we all do, I think :-)

Some more advice, though also no real help in recovering the files you 
need - copy all the volume files to another disk, and think about 
doing this on a regular basis if you want to use disks as storage media.



Hopefully someone can help me with that issue...




Not me, not really...

Arno


Regards,

 Joerg



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting 
language
that extends applications into web and mobile media. Attend the live 
webcast
and join the prime developer group breaking into this new coding 
territory!

http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users







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



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Reuse of Diskspace

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 9:30 AM, Achim Schmidt wrote:

   Hi,

I've running a bacula setup that stores its backups to disk. basicly i'm 
very satisfied with the system, but something looks a bit strange for me.
I get the impresssion, that bacula uses as much diskspace as it can get 
and is not reusing pruned diskspace.


sample:

...

Pool {
  Name = Database
  Pool Type = Backup
  AutoPrune = yes
  Volume Retention = 14 days 
  Maximum Volumes = 4

  Recycle = yes
  Recycle Oldest Volume = yes
  Label Format = "Database-"
}


You need to limit either the time a volume can be used, the size it can 
have, or the number of jobs to store in it.


After applying the necessary changes in the configuration and reloading 
or restarting the DIR, use the update command to modify the existing 
volumes accordingly.


Arno

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 10:29 AM, Gavin Conway wrote:

Hi,

I'm seeing the same problem using a very similar script. Also using 
Debian Sarge 3.1 with the latest version of Bacula. I think this is more 
to do with Bacula not having finished with the tape drive when the 
script runs.


If anyone knows how this goes let me know.


If you are right with your suspicion, you could wait for the tape to 
become available before executing the commands. In the mtx-changer 
script, there's a function wait_for_drive which you could use as a 
template. Basically, it checks if the drive is ready, and if it isn't it 
waits some time and loops.


Arno


Thanks,
Gavin



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread david robert
these are the two places i can see this function can we increse these time or     wait_for_drive() {  for i in $(seq 180); do   # Wait max 180 seconds    if mt -f $1 status | grep ONLINE  >/dev/null 2>&1; then  break    fi#   echo "Device $1 - not ready, retrying..."    sleep 1  done}       # wait_for_drive $device  sleep 15  exit $rtn  ;;  thanks for your help  Arno Lehmann <[EMAIL PROTECTED]> wrote:  Hello,On 3/10/2006 10:29 AM, Gavin Conway wrote:>
 Hi,> > I'm seeing the same problem using a very similar script. Also using > Debian Sarge 3.1 with the latest version of Bacula. I think this is more > to do with Bacula not having finished with the tape drive when the > script runs.> > If anyone knows how this goes let me know.If you are right with your suspicion, you could wait for the tape to become available before executing the commands. In the mtx-changer script, there's a function wait_for_drive which you could use as a template. Basically, it checks if the drive is ready, and if it isn't it waits some time and loops.Arno> Thanks,> Gavin> -- IT-Service Lehmann [EMAIL PROTECTED]Arno Lehmann http://www.its-lehmann.de---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web an
 d mobile
 media. Attend the live webcastand join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
		Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.

Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 11:00 AM, david robert wrote:
these are the two places i can see this function can we increse these 
time or


You'd use this snippet in your script.


wait_for_drive() {
  for i in $(seq 180); do   # Wait max 180 seconds
if mt -f $1 status | grep ONLINE  >/dev/null 2>&1; then


# and, before you implement this, make sure your tape drive status
# is actually ONLINE after unmount from Bacula.


  break
fi
#   echo "Device $1 - not ready, retrying..."
sleep 1
  done
}


Also, one thing I overlooked in my previous post: With a DLT drive, you 
can't usually eject the cartridge after rewinding, you have to offline 
the drive, too. The combined command 'mt rewoffline' might thus already 
solve your problem.


Arno





# wait_for_drive $device
  sleep 15
  exit $rtn
  ;;

thanks for your help

*/Arno Lehmann <[EMAIL PROTECTED]>/* wrote:

Hello,

On 3/10/2006 10:29 AM, Gavin Conway wrote:
 > Hi,
 >
 > I'm seeing the same problem using a very similar script. Also using
 > Debian Sarge 3.1 with the latest version of Bacula. I think this
is more
 > to do with Bacula not having finished with the tape drive when the
 > script runs.
 >
 > If anyone knows how this goes let me know.

If you are right with your suspicion, you could wait for the tape to
become available before executing the commands. In the mtx-changer
script, there's a function wait_for_drive which you could use as a
template. Basically, it checks if the drive is ready, and if it
isn't it
waits some time and loops.

Arno

 > Thanks,
 > Gavin
 >

-- 
IT-Service Lehmann [EMAIL PROTECTED]

Arno Lehmann http://www.its-lehmann.de


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web an d mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


*Yahoo! Photos* 
 
– NEW , now offering a quality print service 
 
from just 8p a photo.


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



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Reuse of Diskspace

2006-03-10 Thread Achim Schmidt




Hi Arno

thx for yr information. that means bacula starts reusing only if it
reachs some of those limits (time, count oder jobcount) ?
If I dont set those limits, it will take all space available ??


thx

achim



Arno Lehmann wrote:
Hello,
  
  
On 3/10/2006 9:30 AM, Achim Schmidt wrote:
  
     Hi,


I've running a bacula setup that stores its backups to disk. basicly
i'm very satisfied with the system, but something looks a bit strange
for me.

I get the impresssion, that bacula uses as much diskspace as it can get
and is not reusing pruned diskspace.


sample:

  
...
  
  Pool {

  Name = Database

  Pool Type = Backup

  AutoPrune = yes

  Volume Retention = 14 days   Maximum Volumes = 4

  Recycle = yes

  Recycle Oldest Volume = yes

  Label Format = "Database-"

}

  
  
You need to limit either the time a volume can be used, the size it can
have, or the number of jobs to store in it.
  
  
After applying the necessary changes in the configuration and reloading
or restarting the DIR, use the update command to modify the existing
volumes accordingly.
  
  
Arno
  
  






Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread david robert
thanks for your reply     so now my script would be like this     #!/bin/sh  /usr/bin/bconsole -c /etc/bacula/bconsole.conf  wrote:  Hello,On 3/10/2006 11:00 AM, david robert wrote:> these are the two places i can see this function can we increse these > time orYou'd use this snippet in your script.> wait_for_drive() {> for i in $(seq 180
 ); do #
 Wait max 180 seconds> if mt -f $1 status | grep ONLINE >/dev/null 2>&1; then# and, before you implement this, make sure your tape drive status# is actually ONLINE after unmount from Bacula.> break> fi> # echo "Device $1 - not ready, retrying..."> sleep 1> done> }Also, one thing I overlooked in my previous post: With a DLT drive, you can't usually eject the cartridge after rewinding, you have to offline the drive, too. The combined command 'mt rewoffline' might thus already solve your problem.Arno> > > # wait_for_drive $device> sleep 15> exit $rtn> ;;> > thanks for your help> > */Arno Lehmann <[EMAIL PROTECTED]>/* wrote:> > Hello,> > On 3/10/2006 10:29 AM, Gavin Conway wrote:> > Hi,> >> > I'm seeing the same problem using a very 
 similar
 script. Also using> > Debian Sarge 3.1 with the latest version of Bacula. I think this> is more> > to do with Bacula not having finished with the tape drive when the> > script runs.> >> > If anyone knows how this goes let me know.> > If you are right with your suspicion, you could wait for the tape to> become available before executing the commands. In the mtx-changer> script, there's a function wait_for_drive which you could use as a> template. Basically, it checks if the drive is ready, and if it> isn't it> waits some time and loops.> > Arno> > > Thanks,> > Gavin> >> > -- > IT-Service Lehmann [EMAIL PROTECTED]> Arno Lehmann http://www.its-lehmann.de> > > ---> This SF.Net email is sponsored by xPML, a groundbreaki
 ng
 scripting> language> that extends applications into web an d mobile media. Attend the> live webcast> and join the prime developer group breaking into this new coding> territory!> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642> ___> Bacula-users mailing list> Bacula-users@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/bacula-users> > > *Yahoo! Photos* > > – NEW , now offering a quality print service > > from just 8p a photo.-- IT-Service Lehmann [EMAIL PROTECTED]Arno Lehmann http://www.its-lehmann.de---This
  SF.Net
 email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642___Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
		Yahoo! Photos – NEW, now offering a quality print service from just 8p a photo.

Re: [Bacula-users] Reuse of Diskspace

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 11:15 AM, Achim Schmidt wrote:

  Hi Arno

thx for yr information. that means bacula starts reusing only if it 
reachs some of those limits (time, count oder jobcount) ?


Correct. More abstract, Bacula always appends to an available volumes, 
and availability is controlled by these configuration statements (and 
other things).



If I dont set those limits, it will take all space available ??


Yes. After that it will ask you for a new volume because it can't find 
or create another one itself.


Once you are there you are in trouble :-)

Arno



thx

achim



Arno Lehmann wrote:


Hello,

On 3/10/2006 9:30 AM, Achim Schmidt wrote:


   Hi,

I've running a bacula setup that stores its backups to disk. basicly 
i'm very satisfied with the system, but something looks a bit strange 
for me.
I get the impresssion, that bacula uses as much diskspace as it can 
get and is not reusing pruned diskspace.


sample:


...


Pool {
  Name = Database
  Pool Type = Backup
  AutoPrune = yes
  Volume Retention = 14 days   Maximum Volumes = 4
  Recycle = yes
  Recycle Oldest Volume = yes
  Label Format = "Database-"
}



You need to limit either the time a volume can be used, the size it 
can have, or the number of jobs to store in it.


After applying the necessary changes in the configuration and 
reloading or restarting the DIR, use the update command to modify the 
existing volumes accordingly.


Arno





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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Problem with volume permissions

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 10:36:36 +0100, Arno Lehmann <[EMAIL PROTECTED]> said:
> 
> Hi,
> 
> On 3/10/2006 8:14 AM, Andrus Naulainen wrote:
> > 
> >>> I got Permission denied error when bacula tried to write into the 
> >>> volume. VolStatus of this volume (name is varund0070) is Recycle and 
> >>> it's size is 1 byte. I have one pool with 100 volumes (varund0001 .. 
> >>> varund0100) each 4GB and they are on HD with free space 48GB. I'm 
> >>> probably missing some important information which helps to solve 
> >>> this, ask then. And log is here:
> >>> 
> >>
> >>
> >> The first thing is to determine exactly what permissions are wrong:
> >>
> >> 1) Look at the mode and ownership of the volume using
> >>ls -l /mnt/varund/varund0070
> >>   
> > 
> > Login as a root gives
> > 
> >varund:~# ls -l /mnt/varund/varund0070
> >ls: /mnt/varund/varund0070: Permission denied
> 
> Not good.
> This might be selinux or ACL issue, linux capabilities also comes to my 
> mind. All this depends on the OS configuration, so, concerning these 
> ideas, you should ask the one who set up that system or have a closer 
> look into the documentation.
> 
> ...
> >> 3) Is /mnt/varund mounted for writing?
> >>   
> > 
> > 
> >varund:~# mount -l
> >...
> >/dev/mapper/vg-lv on /mnt/varund type reiserfs (rw)
> >...
> 
> ReiserFS tends to show such a behaviour in case of filesystem damage I'm 
> told. To verify this, unmount the partition and do a file system check 
> on it. Study the options for reiserfsck closely - IIRC, without special 
> invitation it doesn't do a very thorough check. in case of a rebuild 
> it's even possible you lose data, so usually I'd suggest to do a backup 
> prior to a file system repair :-(

I've also seen Permission denied from other filesystems when the disk has a
bad block (I/O error would have been nicer).

The console output or syslog might record this.


> Anyway, this is one more reason against disk based backups, I'm afraid...

Oh yes, tapes are so much more robust :-)

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 11:12:50 +0100, Arno Lehmann <[EMAIL PROTECTED]> said:
>
> Also, one thing I overlooked in my previous post: With a DLT drive, you 
> can't usually eject the cartridge after rewinding, you have to offline 
> the drive, too. The combined command 'mt rewoffline' might thus already 
> solve your problem.

Which OS is that?  According to "man mt" on FC3, offline, rewoffl and eject
are the same command.

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread david robert
i am using debian 3.1Martin Simmons <[EMAIL PROTECTED]> wrote:  > On Fri, 10 Mar 2006 11:12:50 +0100, Arno Lehmann <[EMAIL PROTECTED]>said:>> Also, one thing I overlooked in my previous post: With a DLT drive, you > can't usually eject the cartridge after rewinding, you have to offline > the drive, too. The combined command 'mt rewoffline' might thus already > solve your problem.Which OS is that? According to "man mt" on FC3, offline, rewoffl and ejectare the same command.__Martin---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding
 territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
		Win a BlackBerry device from O2 with Yahoo!. Enter now.

[Bacula-users] including other configuration files

2006-03-10 Thread mpapet
Hi,

I'm attempting to break-up the bacula-dir.conf file so I can add backup
clients in a managable way.  The objective is to store individual client
configurations in /etc/bacula/client1/ and have a reverence to that path in
bacula-dir.conf.

In the docs under "Including other Configuration Files"
[EMAIL PROTECTED]

If you wish to break your configuration file into smaller pieces, you can do
so by including other files using the syntax @filename where filename is the
full path and filename of another file. The @filename specification can be
given anywhere a primitive token would appear.

If I attempt Client {/etc/bacula/client1/client1.conf} bacula won't restart
and generates an error.  Any other similar terms (storage, etc) will
generate the same error.

Please advise how I can break the .conf file up.

I'm on debian-sarge installed from your current packages.

Any

Michael Papet
Smart Card Integrators
213-743-9181 ext. 231 [EMAIL PROTECTED]
1380 W. Washington Blvd.
Los Angeles, CA 90007



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Client Run After Spool?

2006-03-10 Thread Jason Balicki
I've searched a bit, but I came up empty handed on this.

I'm going to simplify this scenario a bit because the
reality is more complex than this, but hopefully this
gets my point across:

I have a client trying to backup a MS SQL database.  We
use RunBefore and RunAfter commands to stop and start the
DB.  Usually this works fine, but if we run out of space
on a tape then Bacula can't get any farther until someone
mounts another tape.  However, because the application
is critical, someone usually will manually start the
services before the job can finish.  I can't fix this
behavior.

I figured that I could solve this problem by spooling,
and I can -- sort of.  The job gets spooled but the
services are still down until the job can be written
to tape.  This is causing a bit of frustration on the
client end because they're tired of having to manually
start services, and the client doesn't want to have
to check to see if the job has finished spooling.  They
barely understand the concept.

A solution to this problem would be a "Client Run After Spool"
command where I could restart the services after the
spool had finished.  Theoretically the FD is pretty much
done at that point, correct?  We have a dedicated HD
we use for spooling, so all jobs can fit there with
no problem and we should never have to despool during a
job.  Although, even if we did the Run After wouldn't
run until the job was completely done spooling but
before it was written to tape, letting the application
become usable way before the job is done.

Is there a way to make this happen?  Or is this an
uncommon scenario?  If so, does anyone have any
other suggestions on getting around this?

Thanks,

--J(K)

PS:  in case anyone cares:  some of the complexities
are that there are multiple MSDE SQL DB boxes, each
with different people responsible for them (and are
*not* trained admins) and each having their own silly
reasons to want to play power games with the completely
separate person responsible for the backups.  It's idiotic
office politics, but I don't work there so I can't do
anything about it. :(



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] osx 10.3

2006-03-10 Thread Landon Fuller


On Mar 6, 2006, at 12:28, Dean Waldow wrote:

I may be remembering incorrectly, but, I don't think you need a  
license. I believe it is part of the OSX license itself.  Can  
anyone else comment on this? I think this is especially the case  
for the server license because the server is often where the dev  
tools are needed.  Often the developer cd/dvds, were not installed  
by default and had to be installed later. We have an xServer now  
running 10.4 and I believe we had to install the dev tools separately.


You can download xcode 2.2 from apple's site but version 2.2  
(current version) only runs on 10.4+ not 10.3-. So, if you can find  
an earlier version of xcode for 10.3, you probably should be able  
to install it and then run software update and get it up to the  
last supported version. I presume you should be able to get an  
earlier version from apples web site. You may need to get a free  
account and logon.


Xcode 1.5 (the last version to run on 10.3) is still available from  
the ADC Member Site.
Select "Developer Tools" from the "Downloads" sidebar and scroll way,  
way down to "Xcode Tools v1.5"


-landonf


PGP.sig
Description: This is a digitally signed message part


[Bacula-users] 3999 Error

2006-03-10 Thread mpapet
Hi again:


I get a "3999 Device HDdriveStorage" not found error when attempting to
mount it.  status storage generates Archive "HDdriveStorage" is not open or
does not exist. It's a hard disk drive at /dev/hdb1 and mounted to /mnt via
fstab.

bacula-sd.conf has:
Device {
  Name = "HDdriveStorage99"# This is the name used in
bacula-dir.conf
  Media Type = File
  Archive Device = /dev/hdb1  # This is the logical name
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
}

Bacula-dir.conf has:
Storage {
  Name = "HDdriveStorage99"
# Do not use "localhost" here
  Address = FQDN.name.here.com # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "password"
  Device = "HDdriveStorage1"
  Media Type = File
}

Michael



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger does not (auto-)load tape

2006-03-10 Thread Thomas Sturm
Hallo Arno,
that is what I thought, but it seems to be OK. Result ist "Slot 8"

1000 OK: bacula-dir Version: 1.38.5 (18 January 2006)
list media pool=Mo-Do
Using default Catalog name=MyCatalog DB=bacula
1000 OK: bacula-dir Version: 1.38.5 (18 January 2006)
list media pool=Mo-Do
Using default Catalog name=MyCatalog DB=bacula
+-++---++--+--+-+--+---+---+-+
| mediaid | volumename | volstatus | volbytes   | volfiles | volretention | 
recycle | slot | inchanger | mediatype | lastwritten |
+-++---++--+--+-+--+---+---+-+
|   8 | Di_1-s8| Purged| 18,260,229,681 |   22 |  172,800 | 
  1 |8 | 0 | DLT8000   | 2006-03-01 00:47:17 |
|   9 | Mi_1-s8| Purged| 18,072,617,095 |   23 |  172,800 | 
  1 |8 | 0 | DLT8000   | 2006-03-02 00:40:05 |
|  10 | Mo_1-s8| Append| 15,415,456,059 |   17 |  172,800 | 
  1 |0 | 0 | DLT8000   | 2006-03-07 08:59:20 |
|  19 | Do_1-s8| Disabled  |  1 |0 |  172,800 | 
  1 |8 | 0 | DLT8000   | 2005-08-19 00:23:28 |
|  67 | Do_2-s8| Recycle   |  1 |0 |  172,800 | 
  1 |8 | 0 | DLT8000   | 2006-03-03 00:44:39 |
+-++---++--+--+-+--+---+---+-+

Gruß
Thomas

Am Dienstag März 7 2006 09:58 schrieb Arno Lehmann:
> Hi,
>
> On 3/7/2006 9:54 AM, Thomas Sturm wrote:
> > Thank you Dan for your reply.
> > Now I have this:
> > bacula-dir.conf:
> >
> > Storage {
> >   Name = Autoloader
> >   Address = backup.intra.melle.de
> >   SDPort = 9103
> >   Password = "secret"
> >   Device = VS160
> >   Media Type = DLT8000
> >   Maximum Concurrent Jobs = 20
> > }
> >
> > bacula-sd.conf:
> >
> > Autochanger {
> >   Name = "Autoloader"
> >   Device = VS160
> >   Changer Device = /dev/sg1
> >   Changer Command = "/var/lib/bacula/mtx-changer %c %o %S %a %d"
> > }
> >
> > Device {
> >   Name = VS160
> >   Media Type = DLT8000
> >   Archive Device = /dev/st0  # Normal archive device
> >   AutoChanger = yes
> >   Drive Index = 0
> >   AutomaticMount = yes;   # when device opened, read it
> >   RemovableMedia = yes;
> >   AlwaysOpen = yes;
> >   Maximum Spool Size = 3M
> >   Maximum Job Spool Size = 6000M
> >   Spool Directory = /var/spool/bacula
> >   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> > }
> >
> > but still the same result :-(
> >
> > 07-Mär 09:37 bacula-dir: Start Backup JobId 3335,
> > Job=TS160.2006-03-07_09.37.05 *
> > You have messages.
> > *m
> > 07-Mär 09:39 TS160: DIR and FD clocks differ by 171 seconds, FD
> > automatically adjusting. 07-Mär 09:37 bacula-sd: 3301 Issuing autochanger
> > "loaded drive 0" command. 07-Mär 09:37 bacula-sd: 3302 Autochanger
> > "loaded drive 0", result: nothing loaded. 07-Mär 09:37 bacula-sd: 3301
> > Issuing autochanger "loaded drive 0" command. 07-Mär 09:37 bacula-sd:
> > 3302 Autochanger "loaded drive 0", result: nothing loaded. 07-Mär 09:37
> > bacula-sd: Please mount Volume "Mo_1-s8" on Storage Device "VS160"
> > (/dev/st0) for Job TS160.2006-03-07_09.37.05
> >
> > As you can see, the sd is doing some Autochamger commands 'Issuing
> > Autochanger "loaded drive 0" command". The Autochanger worked perfectly
> > with version 1.36.2. What I am now missing is something like 'Issuing
> > autochanger "load slot 8 in drive 0" command'
>
> It is possible that the catalog doesn't have any information about
> volumes available in the autochanger. The easiest resolution in that
> case is diong an 'update slots [scan] storage=Autoloader' in a Bacula
> console.
>
> Hope this helps,
>
> Arno
>
> > Am Montag März 6 2006 15:52 schrieben Sie:
> >>Reposted with amendments.
> >>
> >>On 6 Mar 2006 at 15:29, Thomas Sturm wrote:
> >>>Hello,
> >>>I am using bacula 1.38.5 on Gentoo Linux.
> >>>My Problem ist, that the Autochanger don't "want" to load the needed
> >>>tape. Here is the output of bconsole:
> >>>
> >>>06-Mär 14:51 bacula-dir: Start Backup JobId 3329,
> >>>Job=TS160.2006-03-06_14.51.55 06-Mär 14:51 bacula-sd: 3301 Issuing
> >>>autochanger "loaded drive 0" command. 06-Mär 14:51 bacula-sd: 3302
> >>>Autochanger "loaded drive 0", result: nothing loaded. 06-Mär 14:51
> >>>bacula-sd: 3301 Issuing autochanger "loaded drive 0" command. 06-Mär
> >>>14:51 bacula-sd: 3302 Autochanger "loaded drive 0", result: nothing
> >>>loaded. 06-Mär 14:51 bacula-sd: Please mount Volume "Mo_1-s8" on Storage
> >>>Device "Autoloade r" (/dev/st0) for Job TS160.2006-03-06_14.51.55
> >>>
> >>>Why is 'Issuing autochanger "load drive 8 command"' missing?
> >>>
> >>>Running Jobs:
> >>> JobId Level   Name   Status
> 

[Bacula-users] Install Bacula

2006-03-10 Thread anhnv

Hi all, 
Now, I want to install Bacula in my network with a linux computer, a windows
computer. 
In linux computer, my backup system work ok. I can backup everything with
Bacula. 
In windows computer, i install bacula client for windows. The install is ok.
After that, i want to backup a directory in it (ex, c:/123). Last, I use run
and label command in console, but I have a error:
07-Mar 16:00 bacula-fd:  Could not stat c:/123: ERR=No such file or
directory

Can you help me to fix this error???

Thanks alot!
--
View this message in context: 
http://www.nabble.com/Install-Bacula-t1238668.html#a3277611
Sent from the Bacula - Users forum at Nabble.com.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger does not (auto-)load tape

2006-03-10 Thread Thomas Sturm
Hallo Arno,
the autochanger does not have the ability to scan. I created the Tape with the
label command. But I created them BEFORE the upgrade to 1.38.5.

Now I deleted the Tape and recreated it with the "label" command.
AND NOW IT WORKS!!!
I think there is a problem within the bacula-database (I use postrgres).

Does anyone know how to korrect this without recreating every volume?

Thanks
Thomas

Am Dienstag März 7 2006 09:58 schrieb Arno Lehmann:
> Hi,
>
> On 3/7/2006 9:54 AM, Thomas Sturm wrote:
> > Thank you Dan for your reply.
> > Now I have this:
> > bacula-dir.conf:
> >
> > Storage {
> >   Name = Autoloader
> >   Address = backup.intra.melle.de
> >   SDPort = 9103
> >   Password = "secret"
> >   Device = VS160
> >   Media Type = DLT8000
> >   Maximum Concurrent Jobs = 20
> > }
> >
> > bacula-sd.conf:
> >
> > Autochanger {
> >   Name = "Autoloader"
> >   Device = VS160
> >   Changer Device = /dev/sg1
> >   Changer Command = "/var/lib/bacula/mtx-changer %c %o %S %a %d"
> > }
> >
> > Device {
> >   Name = VS160
> >   Media Type = DLT8000
> >   Archive Device = /dev/st0  # Normal archive device
> >   AutoChanger = yes
> >   Drive Index = 0
> >   AutomaticMount = yes;   # when device opened, read it
> >   RemovableMedia = yes;
> >   AlwaysOpen = yes;
> >   Maximum Spool Size = 3M
> >   Maximum Job Spool Size = 6000M
> >   Spool Directory = /var/spool/bacula
> >   Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
> > }
> >
> > but still the same result :-(
> >
> > 07-Mär 09:37 bacula-dir: Start Backup JobId 3335,
> > Job=TS160.2006-03-07_09.37.05 *
> > You have messages.
> > *m
> > 07-Mär 09:39 TS160: DIR and FD clocks differ by 171 seconds, FD
> > automatically adjusting. 07-Mär 09:37 bacula-sd: 3301 Issuing autochanger
> > "loaded drive 0" command. 07-Mär 09:37 bacula-sd: 3302 Autochanger
> > "loaded drive 0", result: nothing loaded. 07-Mär 09:37 bacula-sd: 3301
> > Issuing autochanger "loaded drive 0" command. 07-Mär 09:37 bacula-sd:
> > 3302 Autochanger "loaded drive 0", result: nothing loaded. 07-Mär 09:37
> > bacula-sd: Please mount Volume "Mo_1-s8" on Storage Device "VS160"
> > (/dev/st0) for Job TS160.2006-03-07_09.37.05
> >
> > As you can see, the sd is doing some Autochamger commands 'Issuing
> > Autochanger "loaded drive 0" command". The Autochanger worked perfectly
> > with version 1.36.2. What I am now missing is something like 'Issuing
> > autochanger "load slot 8 in drive 0" command'
>
> It is possible that the catalog doesn't have any information about
> volumes available in the autochanger. The easiest resolution in that
> case is diong an 'update slots [scan] storage=Autoloader' in a Bacula
> console.
>
> Hope this helps,
>
> Arno
>
> > Am Montag März 6 2006 15:52 schrieben Sie:
> >>Reposted with amendments.
> >>
> >>On 6 Mar 2006 at 15:29, Thomas Sturm wrote:
> >>>Hello,
> >>>I am using bacula 1.38.5 on Gentoo Linux.
> >>>My Problem ist, that the Autochanger don't "want" to load the needed
> >>>tape. Here is the output of bconsole:
> >>>
> >>>06-Mär 14:51 bacula-dir: Start Backup JobId 3329,
> >>>Job=TS160.2006-03-06_14.51.55 06-Mär 14:51 bacula-sd: 3301 Issuing
> >>>autochanger "loaded drive 0" command. 06-Mär 14:51 bacula-sd: 3302
> >>>Autochanger "loaded drive 0", result: nothing loaded. 06-Mär 14:51
> >>>bacula-sd: 3301 Issuing autochanger "loaded drive 0" command. 06-Mär
> >>>14:51 bacula-sd: 3302 Autochanger "loaded drive 0", result: nothing
> >>>loaded. 06-Mär 14:51 bacula-sd: Please mount Volume "Mo_1-s8" on Storage
> >>>Device "Autoloade r" (/dev/st0) for Job TS160.2006-03-06_14.51.55
> >>>
> >>>Why is 'Issuing autochanger "load drive 8 command"' missing?
> >>>
> >>>Running Jobs:
> >>> JobId Level   Name   Status
> >>>==
> >>>  3329 FullTS160.2006-03-06_14.51.55 is waiting for a mount request
> >>>
> >>>
> >>>When I now load the tape manually (with mtx-autochanger), the job
> >>>finisched without error.
> >>>
> >>>Here are the parts of bacula-dir.conf and bacula-sd.conf:
> >>>bacula-dir.conf:
> >>>... snip ...
> >>>Storage {
> >>>  Name = Autoloader
> >>>  Autochanger = yes
> >>
> >>I don't think the above directive is required here.
> >>
> >>>  Address = backup.intra.melle.de
> >>>  SDPort = 9103
> >>>  Password = "secret"
> >>>  Device = Autoloader
> >>>  Media Type = DLT8000
> >>>  Maximum Concurrent Jobs = 20
> >>>}
> >>
> >>Here is what I have in bacula-dir.conf
> >>
> >>Storage {
> >>  Name   = TapeRobot1
> >>  Address= ngaio.example.org
> >>  SDPort = 9103
> >>  Password   = "things"
> >>  Device = DLT
> >>  Media Type = DLT
> >>}
> >>
> >>>... snip ...
> >>>
> >>>bacula-sd.conf:
> >>>... snip ...
> >>>Device {
> >>>  Name = Autoloader
> >>>  Media Type = DLT8000
> >>>  Archive Device = /dev/st0
> >>>  Changer Device = /dev/sg1
> >>>  Changer Command = "/var/lib/bacula/mtx-changer %c %o %S %a %d"
> >>>  AutoChanger = yes
> >>>  A

[Bacula-users] Quantum AutoLoader/ValueLoader SDLT320 supported ?

2006-03-10 Thread Jean-Francois Zech

Hi,

I'm looking to purchase a Quantum AutoLoader or ValueLoader with a tape 
drive SDLT320.

I use Debian.
Can someone confirm that this drive works correctly with Bacula ?

Is someone have an experience with other tape drive Quantum AutoLoader 
or ValueLoader ?


Many thanks!

JF


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] No compression for FIFOs neither Windows clients ?

2006-03-10 Thread Baptiste Malguy
Dan Langille a écrit :
> On 8 Mar 2006 at 10:25, Baptiste Malguy wrote:
> 
> 
>>Hello People,
>>
>>Does anyone know something about compression issue I meet ?
>>
>>Thanks.
>>
>>Baptiste Malguy a écrit :
>>
>>>Hello,
>>>
>>>I definitly want to use compression for backups on disk.
>>>
>>>It works pretty well, except for:
>>>- FIFOs
>>>- Windows clients.
>>>
>>>I haven't seen any information about this specific cases.
>>>
>>>Here comes a part of the configuration in the case you see anything wrong.
>>>
>>>The "full" FileSet has a good compression rate, while the "mysql-dump"
>>>FileSet report as the following:
>>>  Software Compression:   None
>>>
>>>bacula-dir.conf:
>>>[...]
>>>FileSet {
>>>  Name = full
>>>  Include {
>>>@/etc/bacula/bacula-dir-fileset-common-include-options.conf
>>>File = /
>>>  }
>>>  Exclude {
>>>@/etc/bacula/bacula-dir-fileset-linux-exclude-files.conf
>>>  }
>>>}
>>>
>>>FileSet {
>>>  Name = mysql-dump
>>>  Include {
>>>@/etc/bacula/bacula-dir-fileset-common-include-options.conf
>>>Options { readfifo = yes }
>>>File = /tmp/bacula-mysql-fifo
>>>  }
>>>}
> 
> 
> The above Include has two Options sections.  Perhaps that is the 
> issue. If you have only one, what happens?  Also, what happens if you 
> don't use @?

Thank you for your idea, it looks this is the path to follow.

To isolate more easily the problem, I made a simpliest test case. With
the following example, I have compression. You see it contains 2 Options
sections.

Now, if I exchange their order (so the compression attribute in in the
1st section), I don't have compression anymore.

FileSet {
  Name = server-test
  Include {
Options {
onefs = no
}
Options {
signature = MD5
compression = GZIP
}
File = "c:/Documents and Settings/All Users"
  }
  Exclude {
  }
}

My conclusion would be to say that only the last Options section is
taken into account. I made the test with "fstype = ext2". If it is in
the 1st Options section, the files are backed up. If it's in the second,
no files are backed up, which is right (server-test has an NTFS FS).

From http://www.bacula.org/dev-manual/Configuring_Director.html :

"The Include resource may also contain one or more Options resources
that specify options [...]"

Did I miss something ?

-- 
Baptiste MALGUY - IT Engineer   SOLSOFT
PGP Fingerprint: 2A90 B6D1 855F 1584 FE68  94AC CCD6 36D0 3DC7 DCB8
www.solsoft.com - phone: +33 1 47 15 04 00 - fax: +33 1 47 15 55 09
 How secure networks are managed.



signature.asc
Description: OpenPGP digital signature


Re: [Bacula-users] Strange info-message [Fwd: Bacula: *none* *none* of *none* *none*]

2006-03-10 Thread Bacula-users
Hej,

sorry for replying that late.

Arno Lehmann wrote:
> Hello,
> 
> On 2/13/2006 12:59 PM, Dirk große Osterhues wrote:
>> Hi,
>>
>> I experience one annoying thing in a backup-system maintained by me. I
>> can't get rid of the message quoted below with the forwarded strange
>> subject:
>>
>>
>>> 13-Feb 07:30 digo-dir: Pruned 1 Job on Volume "Daily-Tape_0001" from
>>> catalog.
>>> 13-Feb 07:30 digo-dir: Pruned 3 Jobs on Volume "Daily-Tape_0002" from
>>> catalog.
>>> 13-Feb 07:30 digo-dir: Recycled volume "Daily-Tape_0002"
>>
>>
>> I tried all message resources and it went out that this message is
>> generated by the "info"-resource. Is there a way to disable that
>> information message?
> 
> You might simply disable the info category in the message configuration.

Thanks for your advice, Arno, but doing that also the other
informational messages about succeeded backup jobs disappear. I would
just like to get rid of messages like the above, since automatically
pruning of jobs is not of my daily interest. And the nonsense subject of
"Bacula: *none* *none* of *none* *none*" makes it even worse. Sure I
could setup a mailfilter or search the source, but that's not what what
I'm looking for. I rather like to use a bacula-installation that comes
with a certain distro, since otherwise I have the same hussle with
patching the source on every upgrade. Does anyone have another idea on
this issue?

Thanks for any futher input,
Dirk

> I don't know if it's in the distribution or even the sample
> configuration by now, but some time ago he suggestion was made to use
> two messages resources in the directors configuration:
> 
> The one you still have for jobs, and another one as a standard message
> resource which doesn't include the fields that are not available for
> recycling messages. You might have to search the cvs or the list
> archives to find the examples someone came up with, or you can simply
> set them up yourself, of course.
> 
> The idea is to set up the job-related messages in a separate messages
> resource, and reference this in the jobs or jobdefs definition. The
> default is applied where nothing overrides it and thus could only use a
> subject line lieke "Bacula information" or something.
> 
> Arno


-- 
Dirk große Osterhues <[EMAIL PROTECTED]>
* Alsättersgatan 9 C.24, 58435 Linköping, Sweden
* Phone: ++49 6151 460 8583, http://www.grosseosterhues.com
* PGPKey-Fingerprint: E92F410DFF 8DABA78B68 04A75A426B A67F8FAC70



signature.asc
Description: OpenPGP digital signature


Re: [Bacula-users] Effects of attribute Ignore FileSet Changes (FileSet resource)

2006-03-10 Thread Baptiste Malguy
Karl Cunningham a écrit :
> Baptiste Malguy wrote:
> 
>> Hello,
>> My sequence:
>>
>> Step 1
>> - Ignore FileSet Changes = no
>> - File = /home/test/d1
>> - Requesting an incremental backup. It is actually incremental (the full
>> done previously with the same setting)
>>
>> Step 2
>> - Ignore FileSet Changes = yes
>> - File = /home/test/d1
>> - Requesting an incremental backup. Still observe an incremental.
>> - No new FileSet checksum
>>
>> Step 3
>> - Ignore FileSet Changes = yes
>> - File = /home/test/d2 (d1 and d2 have diffrent contents)
>> - Requesting an incremental backup. Still observe an incremental. (d2 is
>> backuped)
>> - No new FileSet checksum
>>
>> Step 4
>> - Ignore FileSet Changes = no
>> - File = /home/test/d2
>> - Requesting an incremental backup. Still observe an incremental. (d2 is
>> backuped _again_)
>> - New FileSet checksum
>>
>> I'm a little surprised by the results. I'm not sure this is the designed
>>  behavior by the developers.
> 
> 
> Baptiste --
> 
> Sorry, I forgot to copy the list in my first reply to this question.
> Here it is...
> 
> I won't address the question of whether a changing IgnoreFilesetChanges
> should itself be deemed a fileset change.
> 
> I don't know what the intent of the developers was, but I believe what
> you are describing comes down to the question of which fileset is used
> as a reference to detect changes.  Two possible methods come to mind:
> 
> 1. The most recent fileset used while IgnoreFilesetChanges was yes.
> 2. The most recent fileset used regardless of the setting of
> IgnoreFilesetChanges.
>
> Either method has its advantages and disadvantages.  I think you were
> expecting method 1 but what is implemented is method 2.  I believe what
> is implemented will satisfy most users' needs, but perhaps the method of
> checking for changes needs to be more thoroughly described in the manual.

Yes, I expected proposal 1, with this detail: the most recent fileset
_before_ IgnoreFileSetChanges was set.

My guess is it does not pay attention if the FileSet read in the conf
file has a matching entry in the database. However it indicates the most
recent FileSet in the report.

I don't think proposal 2 is what happened. If it was, it would not have
backed up changes in d2/ made after IgnoreFilesetChanges was set to yes
as there were not in the Files attribute of the last FileSet recorded in
the database.

> 
> If d2 is a file, with an incremental it would be backed up if the file
> changed since last time it was backed up.  If d2 is a directory, files
> in it would be backed up if they changed since last time they were
> backed up.  Each file is examined individually.

d2 was added to the FileSet after the Full dump. As a consequence,
Bacula had no reference to this directory (in my case it's a directory,
but nevermind) about its last backup.

The doc says a file is backed up if its change (attributes) or
modification (content) times are changed since the last Full/Diff/Incr job.

Based on this, the files/dir in d2/, older than the last backup are
_not_ saved.

To do so, it would be necessary to also check if each file/dir has been
previously backed up. Instead of this, by default, next backup is
upgraded to a Full backup.


PS: so you say "backed up" and not "backuped" ? I didn't know how to
write it :)


-- 
Baptiste MALGUY - IT Engineer   SOLSOFT
PGP Fingerprint: 2A90 B6D1 855F 1584 FE68  94AC CCD6 36D0 3DC7 DCB8
www.solsoft.com - phone: +33 1 47 15 04 00 - fax: +33 1 47 15 55 09
 How secure networks are managed.



signature.asc
Description: OpenPGP digital signature


[Bacula-users] /dev/nst0 disappeared

2006-03-10 Thread BrokenClock

Dear Bacula commuty,

I use Bacula with pleasure for quite a long time now. Very good soft.
Currently, I'm using Bacula 1.38.2 with a Fedora 4, with nightly 
automatic update activate.
I was surprised this morning to see that the backup failed due to 
missing //dev/nst0/. I've checked, and in fact it is all //dev/nst*/ 
that are missing now.
I'm not sure that is the right place to ask help for that, as it seems 
to be a SCSI related issue, but I do not know where I should have a 
better support than here, and do not have much time to found a solution 
by myself.
For information, here is an extract of my/ /var/log/yum.log/ for this 
mounth:

/>
Mar 03 04:48:47 Installed: kernel-devel.i686 2.6.15-1.1833_FC4
Mar 03 04:49:14 Installed: kernel.i686 2.6.15-1.1833_FC4
Mar 03 04:49:16 Updated: dhclient.i386 10:3.0.2-34.FC4
Mar 03 04:49:17 Updated: xterm.i386 208-2.FC4
Mar 07 06:05:40 Updated: shadow-utils.i386 2:4.0.12-7.FC4
Mar 08 05:31:01 Updated: ncurses.i386 5.4-19.fc4
Mar 08 05:31:07 Updated: ncurses-devel.i386 5.4-19.fc4
>eof /
Curiously, everything worked fine wednesday all the day long.
/cat /proc/scsi/scsi/ give me "/Attached devices/:" and nothing more.

Does anyone have a idear to help me to make this mess work?

Thanks and regards,

BrokenClock
--
Blog: http://brokenclock.free.fr


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install Bacula

2006-03-10 Thread Andreas Aronsson

Did you try with

c:\123

instead of

c:/123

..in your bacula-fd.conf ?

anhnv wrote:

Hi all, 
Now, I want to install Bacula in my network with a linux computer, a windows
computer. 
In linux computer, my backup system work ok. I can backup everything with
Bacula. 
In windows computer, i install bacula client for windows. The install is ok.

After that, i want to backup a directory in it (ex, c:/123). Last, I use run
and label command in console, but I have a error:
07-Mar 16:00 bacula-fd:  Could not stat c:/123: ERR=No such file or
directory

Can you help me to fix this error???

Thanks alot!
--
View this message in context: 
http://www.nabble.com/Install-Bacula-t1238668.html#a3277611
Sent from the Bacula - Users forum at Nabble.com.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
 



--
Andreas Aronsson
Mobil: +46 704 566 595
www.aron.nu

"I'd rather have friends who care than friends who agree with me."
- Arlo Guthrie



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 10:43:06 + (GMT), david robert <[EMAIL 
> PROTECTED]> said:
> 
> i am using debian 3.1

Well it will be interesting to see if "mt rewoffline" fixes the problem.

Another possible cause for the error: the uid/gid which runs the Director
doesn't have permission to access the tape device (since this is normally done
by the Storage daemon, which might be running as a different uid/gid).

__Martin


> 
> Martin Simmons <[EMAIL PROTECTED]> wrote:  > On Fri, 10 Mar 2006 1=
> 1:12:50 +0100, Arno Lehmann said:
> >
> > Also, one thing I overlooked in my previous post: With a DLT drive, you=
> =20
> > can't usually eject the cartridge after rewinding, you have to offline=20
> > the drive, too. The combined command 'mt rewoffline' might thus already=
> =20
> > solve your problem.
> 
> Which OS is that? According to "man mt" on FC3, offline, rewoffl and ejec=
> t
> are the same command.
> 
> __Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread david robert
i am sending here my bacula director,storage and tape drive permissions     bacula    1280 1  0 Mar08 ?    00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tapebacula    1281  1280  0 Mar08 ?    00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tapebacula    1283  1281  0 Mar08 ?    00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tapebacula    1412 1  0 Mar08 ?    00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g baculabacula    1413  1412  0 Mar08 ?    00:00:00 /usr/sbin/bacula-dir -c
 /etc/bacula/bacula-dir.conf -u bacula -g baculabacula    1414  1413  0 Mar08 ?    00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g baculabacula    1415  1413  0 Mar08 ?    00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula  nst0 permissions as follows crw-rw  1 root tape 9, 128 2005-02-26 06:38 nst0     thank youMartin Simmons <[EMAIL PROTECTED]> wrote:  > On Fri, 10 Mar 2006 10:43:06 + (GMT), david robert <[EMAIL PROTECTED]>said:> > i am using debian 3.1Well it will be interesting to see if "mt rewoffline" fixes the problem.Anot
 her
 possible cause for the error: the uid/gid which runs the Directordoesn't have permission to access the tape device (since this is normally doneby the Storage daemon, which might be running as a different uid/gid).__Martin> > Martin Simmons <[EMAIL PROTECTED]>wrote: > On Fri, 10 Mar 2006 1=> 1:12:50 +0100, Arno Lehmann said:> >> > Also, one thing I overlooked in my previous post: With a DLT drive, you=> =20> > can't usually eject the cartridge after rewinding, you have to offline=20> > the drive, too. The combined command 'mt rewoffline' might thus already=> =20> > solve your problem.> > Which OS is that? According to "man mt" on FC3, offline, rewoffl and ejec=> t> are the same command.> > __Martin---This SF.Net email is sponsored by xPML,
  a
 groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
		 
 
Yahoo! Cars 
NEW - sell your car and browse thousands of new and used cars online search now 
 
 
 

Re: [Bacula-users] including other configuration files

2006-03-10 Thread Martin Simmons
> On Mon, 6 Mar 2006 12:21:10 -0800, "mpapet" <[EMAIL PROTECTED]> said:
> 
> I'm attempting to break-up the bacula-dir.conf file so I can add backup
> clients in a managable way.  The objective is to store individual client
> configurations in /etc/bacula/client1/ and have a reverence to that path in
> bacula-dir.conf.
> 
> In the docs under "Including other Configuration Files"
> [EMAIL PROTECTED]
> 
> If you wish to break your configuration file into smaller pieces, you can do
> so by including other files using the syntax @filename where filename is the
> full path and filename of another file. The @filename specification can be
> given anywhere a primitive token would appear.
> 
> If I attempt Client {/etc/bacula/client1/client1.conf} bacula won't restart
> and generates an error.  Any other similar terms (storage, etc) will
> generate the same error.
> 
> Please advise how I can break the .conf file up.

Posting the error message here is always the best option...but did you mean to
put an @ in the example you gave?  I.e.

Client {
  @/etc/bacula/client1/client1.conf
}

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] /dev/nst0 disappeared

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 11:33 AM, BrokenClock wrote:

Dear Bacula commuty,

I use Bacula with pleasure for quite a long time now. Very good soft.
Currently, I'm using Bacula 1.38.2 with a Fedora 4, with nightly 
automatic update activate.
I was surprised this morning to see that the backup failed due to 
missing //dev/nst0/. I've checked, and in fact it is all //dev/nst*/ 
that are missing now.


Have you checked that the necessary modules are loaded (in case they 
aren't compiled into the kernel)?


You could also try unloading and reloading them manually.

Finally, you can "activate" the SCSI devices with a command like 'scsi 
add-single-device 0 0 0 4>/proc/scsi/scsi'. You should find that 
documented in the kernels Documentation directory somewhere.


I'm not sure that is the right place to ask help for that, as it seems 
to be a SCSI related issue, but I do not know where I should have a 
better support than here,


Nice compliment, but asking in a more focused Fedore / Red Hat forum or 
list might be even more helpful...


Arno

and do not have much time to found a solution 
by myself.
For information, here is an extract of my/ /var/log/yum.log/ for this 
mounth:

/>
Mar 03 04:48:47 Installed: kernel-devel.i686 2.6.15-1.1833_FC4
Mar 03 04:49:14 Installed: kernel.i686 2.6.15-1.1833_FC4
Mar 03 04:49:16 Updated: dhclient.i386 10:3.0.2-34.FC4
Mar 03 04:49:17 Updated: xterm.i386 208-2.FC4
Mar 07 06:05:40 Updated: shadow-utils.i386 2:4.0.12-7.FC4
Mar 08 05:31:01 Updated: ncurses.i386 5.4-19.fc4
Mar 08 05:31:07 Updated: ncurses-devel.i386 5.4-19.fc4
 >eof /
Curiously, everything worked fine wednesday all the day long.
/cat /proc/scsi/scsi/ give me "/Attached devices/:" and nothing more.

Does anyone have a idear to help me to make this mess work?

Thanks and regards,

BrokenClock


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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 11:41 AM, Martin Simmons wrote:

On Fri, 10 Mar 2006 11:12:50 +0100, Arno Lehmann <[EMAIL PROTECTED]> said:


Also, one thing I overlooked in my previous post: With a DLT drive, you 
can't usually eject the cartridge after rewinding, you have to offline 
the drive, too. The combined command 'mt rewoffline' might thus already 
solve your problem.



Which OS is that?  According to "man mt" on FC3, offline, rewoffl and eject
are the same command.


Erm... yes, at least partly. Sorry.

Here I use gnu mt 2.5 (SuSE 8.1) i386

offline and rewoff are indeed the same operation. Eject is not mentioned 
at all... I wonder where I got that from - might have mixed it up with 
mtx, I think.


Thanks for correcting this.

Arno


__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 12:16 PM, david robert wrote:

i am sending here my bacula director,storage and tape drive permissions
 
bacula1280 1  0 Mar08 ?00:00:00 /usr/sbin/bacula-sd -c 
/etc/bacula/bacula-sd.conf -u bacula -g tape
bacula1281  1280  0 Mar08 ?00:00:00 /usr/sbin/bacula-sd -c 
/etc/bacula/bacula-sd.conf -u bacula -g tape
bacula1283  1281  0 Mar08 ?00:00:00 /usr/sbin/bacula-sd -c 
/etc/bacula/bacula-sd.conf -u bacula -g tape
bacula1412 1  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
/etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula1413  1412  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
/etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula1414  1413  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
/etc/bacula/bacula-dir.conf -u bacula -g bacula
bacula1415  1413  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
/etc/bacula/bacula-dir.conf -u bacula -g bacula


nst0 permissions as follows
 
crw-rw  1 root tape 9, 128 2005-02-26 06:38 nst0


Ah. Depending on which user id your script is running under, it doesn't 
have permission to access the tape device.


You should either change the device owner or permissions (which I 
wouldn't recommend doing manually, but rather - but I don't know debian 
- by configuring udev to do so) or let your script run mt as another 
user. sudo is a good tool there.


You could also run the DIR as group tape, but that would be kind of 
break your systems security.


Arno


thank you

*/Martin Simmons <[EMAIL PROTECTED]>/* wrote:

 > On Fri, 10 Mar 2006 10:43:06 + (GMT), david robert said:
 >
 > i am using debian 3.1

Well it will be interesting to see if "mt rewoffline" fixes the problem.

Anot her possible cause for the error: the uid/gid which runs the
Director
doesn't have permission to access the tape device (since this is
normally done
by the Storage daemon, which might be running as a different uid/gid).

__Martin


 >
 > Martin Simmons wrote: > On Fri, 10 Mar 2006 1=
 > 1:12:50 +0100, Arno Lehmann said:
 > >
 > > Also, one thing I overlooked in my previous post: With a DLT
drive, you=
 > =20
 > > can't usually eject the cartridge after rewinding, you have to
offline=20
 > > the drive, too. The combined command 'mt rewoffline' might thus
already=
 > =20
 > > solve your problem.
 >
 > Which OS is that? According to "man mt" on FC3, offline, rewoffl
and ejec=
 > t
 > are the same command.
 >
 > __Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Yahoo! Cars 
 
NEW - sell your car and browse thousands of new and used cars online 
search now 
 



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 3999 Error

2006-03-10 Thread Arno Lehmann

Hello,

On 3/7/2006 4:23 AM, mpapet wrote:

Hi again:


I get a "3999 Device HDdriveStorage" not found error when attempting to
mount it.  status storage generates Archive "HDdriveStorage" is not open or
does not exist. It's a hard disk drive at /dev/hdb1 and mounted to /mnt via
fstab.

bacula-sd.conf has:
Device {
  Name = "HDdriveStorage99"# This is the name used in
bacula-dir.conf
  Media Type = File
  Archive Device = /dev/hdb1  # This is the logical name


Change this to /mnt and it should work. Disk drives are not accessed 
directly ba Bacula, they need to be mounted, and you give the irectory 
name here.


Arno


  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = yes;
}

Bacula-dir.conf has:
Storage {
  Name = "HDdriveStorage99"
# Do not use "localhost" here
  Address = FQDN.name.here.com # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "password"
  Device = "HDdriveStorage1"
  Media Type = File
}

Michael



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Install Bacula

2006-03-10 Thread Arno Lehmann

Hello,

On 3/7/2006 10:17 AM, anhnv wrote:
Hi all, 
Now, I want to install Bacula in my network with a linux computer, a windows
computer. 
In linux computer, my backup system work ok. I can backup everything with
Bacula. 
In windows computer, i install bacula client for windows. The install is ok.

After that, i want to backup a directory in it (ex, c:/123). Last, I use run
and label command in console, but I have a error:
07-Mar 16:00 bacula-fd:  Could not stat c:/123: ERR=No such file or
directory

Can you help me to fix this error???


Does this file or directory actually exist, and can it be accessed by 
the user account the FD runs as?


Arno


Thanks alot!
--
View this message in context: 
http://www.nabble.com/Install-Bacula-t1238668.html#a3277611
Sent from the Bacula - Users forum at Nabble.com.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Autochanger does not (auto-)load tape

2006-03-10 Thread Arno Lehmann

Hello,

On 3/7/2006 12:01 PM, Thomas Sturm wrote:

Hallo Arno,
the autochanger does not have the ability to scan. I created the Tape with the
label command. But I created them BEFORE the upgrade to 1.38.5.

Now I deleted the Tape and recreated it with the "label" command.
AND NOW IT WORKS!!!
I think there is a problem within the bacula-database (I use postrgres).

Does anyone know how to korrect this without recreating every volume?


Yes, you need to clean up the catalog data. The easiest way is to use 
the 'update slots scan storage=' command.


Your autoloader does not need a barcode reader for this to work if you 
use the 'scan' option. Admittedly, this is counterintuitive, but using 
'scan' tells Bacula to load every tape and read the label on it. Without 
'scan' it would rely on the barcodes (or the mtx output alone, rather).


Arno


Thanks
Thomas

Am Dienstag März 7 2006 09:58 schrieb Arno Lehmann:


Hi,

On 3/7/2006 9:54 AM, Thomas Sturm wrote:


Thank you Dan for your reply.
Now I have this:
bacula-dir.conf:

Storage {
 Name = Autoloader
 Address = backup.intra.melle.de
 SDPort = 9103
 Password = "secret"
 Device = VS160
 Media Type = DLT8000
 Maximum Concurrent Jobs = 20
}

bacula-sd.conf:

Autochanger {
 Name = "Autoloader"
 Device = VS160
 Changer Device = /dev/sg1
 Changer Command = "/var/lib/bacula/mtx-changer %c %o %S %a %d"
}

Device {
 Name = VS160
 Media Type = DLT8000
 Archive Device = /dev/st0  # Normal archive device
 AutoChanger = yes
 Drive Index = 0
 AutomaticMount = yes;   # when device opened, read it
 RemovableMedia = yes;
 AlwaysOpen = yes;
 Maximum Spool Size = 3M
 Maximum Job Spool Size = 6000M
 Spool Directory = /var/spool/bacula
 Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
}

but still the same result :-(

07-Mär 09:37 bacula-dir: Start Backup JobId 3335,
Job=TS160.2006-03-07_09.37.05 *
You have messages.
*m
07-Mär 09:39 TS160: DIR and FD clocks differ by 171 seconds, FD
automatically adjusting. 07-Mär 09:37 bacula-sd: 3301 Issuing autochanger
"loaded drive 0" command. 07-Mär 09:37 bacula-sd: 3302 Autochanger
"loaded drive 0", result: nothing loaded. 07-Mär 09:37 bacula-sd: 3301
Issuing autochanger "loaded drive 0" command. 07-Mär 09:37 bacula-sd:
3302 Autochanger "loaded drive 0", result: nothing loaded. 07-Mär 09:37
bacula-sd: Please mount Volume "Mo_1-s8" on Storage Device "VS160"
(/dev/st0) for Job TS160.2006-03-07_09.37.05

As you can see, the sd is doing some Autochamger commands 'Issuing
Autochanger "loaded drive 0" command". The Autochanger worked perfectly
with version 1.36.2. What I am now missing is something like 'Issuing
autochanger "load slot 8 in drive 0" command'


It is possible that the catalog doesn't have any information about
volumes available in the autochanger. The easiest resolution in that
case is diong an 'update slots [scan] storage=Autoloader' in a Bacula
console.

Hope this helps,

Arno



Am Montag März 6 2006 15:52 schrieben Sie:


Reposted with amendments.

On 6 Mar 2006 at 15:29, Thomas Sturm wrote:


Hello,
I am using bacula 1.38.5 on Gentoo Linux.
My Problem ist, that the Autochanger don't "want" to load the needed
tape. Here is the output of bconsole:

06-Mär 14:51 bacula-dir: Start Backup JobId 3329,
Job=TS160.2006-03-06_14.51.55 06-Mär 14:51 bacula-sd: 3301 Issuing
autochanger "loaded drive 0" command. 06-Mär 14:51 bacula-sd: 3302
Autochanger "loaded drive 0", result: nothing loaded. 06-Mär 14:51
bacula-sd: 3301 Issuing autochanger "loaded drive 0" command. 06-Mär
14:51 bacula-sd: 3302 Autochanger "loaded drive 0", result: nothing
loaded. 06-Mär 14:51 bacula-sd: Please mount Volume "Mo_1-s8" on Storage
Device "Autoloade r" (/dev/st0) for Job TS160.2006-03-06_14.51.55

Why is 'Issuing autochanger "load drive 8 command"' missing?

Running Jobs:
JobId Level   Name   Status
==
3329 FullTS160.2006-03-06_14.51.55 is waiting for a mount request


When I now load the tape manually (with mtx-autochanger), the job
finisched without error.

Here are the parts of bacula-dir.conf and bacula-sd.conf:
bacula-dir.conf:
... snip ...
Storage {
Name = Autoloader
Autochanger = yes


I don't think the above directive is required here.



Address = backup.intra.melle.de
SDPort = 9103
Password = "secret"
Device = Autoloader
Media Type = DLT8000
Maximum Concurrent Jobs = 20
}


Here is what I have in bacula-dir.conf

Storage {
Name   = TapeRobot1
Address= ngaio.example.org
SDPort = 9103
Password   = "things"
Device = DLT
Media Type = DLT
}



... snip ...

bacula-sd.conf:
... snip ...
Device {
Name = Autoloader
Media Type = DLT8000
Archive Device = /dev/st0
Changer Device = /dev/sg1
Changer Command = "/var/lib/bacula/mtx-changer %c %o %S %a %d"
AutoChanger = yes
AutomaticMount = yes;
Autoselect = yes
RemovableMedia = yes;
AlwaysOpen = yes;
RandomAccess = no;
Maximum Spool Size = 3M
Maximum Job Spool Size = 60

Re: [Bacula-users] No compression for FIFOs neither Windows clients ?

2006-03-10 Thread Arno Lehmann

Hello,

On 3/8/2006 2:52 PM, Baptiste Malguy wrote:
after some discussion with Dan
...

To isolate more easily the problem, I made a simpliest test case. With
the following example, I have compression. You see it contains 2 Options
sections.

Now, if I exchange their order (so the compression attribute in in the
1st section), I don't have compression anymore.

FileSet {
  Name = server-test
  Include {
Options {
onefs = no
}
Options {
signature = MD5
compression = GZIP
}
File = "c:/Documents and Settings/All Users"
  }
  Exclude {
  }
}

My conclusion would be to say that only the last Options section is
taken into account. I made the test with "fstype = ext2". If it is in
the 1st Options section, the files are backed up. If it's in the second,
no files are backed up, which is right (server-test has an NTFS FS).

From http://www.bacula.org/dev-manual/Configuring_Director.html :

"The Include resource may also contain one or more Options resources
that specify options [...]"

Did I miss something ?


Yup.

The next paragraphs. ;-)

For example this paragraph:

"However, one additional point is that in the case that no match was 
found, Bacula will use the options found in the last Options resource. 
As a consequence, if you want a particular set of "default" options, you 
should put them in an Options resource after any other Options."


Arno

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 13:08:58 +0100, Arno Lehmann <[EMAIL PROTECTED]> said:
> 
> Hello,
> 
> On 3/10/2006 11:41 AM, Martin Simmons wrote:
> >>On Fri, 10 Mar 2006 11:12:50 +0100, Arno Lehmann <[EMAIL PROTECTED]> 
> >>said:
> >>
> >>Also, one thing I overlooked in my previous post: With a DLT drive, you 
> >>can't usually eject the cartridge after rewinding, you have to offline 
> >>the drive, too. The combined command 'mt rewoffline' might thus already 
> >>solve your problem.
> > 
> > 
> > Which OS is that?  According to "man mt" on FC3, offline, rewoffl and eject
> > are the same command.
> 
> Erm... yes, at least partly. Sorry.
> 
> Here I use gnu mt 2.5 (SuSE 8.1) i386
> 
> offline and rewoff are indeed the same operation. Eject is not mentioned 
> at all... I wonder where I got that from - might have mixed it up with 
> mtx, I think.

It is confusing, because FC3 uses mt-st (looks like a Red Hat thing) and that
does have eject.  Possibly "offline" is the only portable name for this
command...

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Client Run After Spool?

2006-03-10 Thread Arno Lehmann

Hello,

On 3/6/2006 7:12 PM, Jason Balicki wrote:

I've searched a bit, but I came up empty handed on this.

I'm going to simplify this scenario a bit because the
reality is more complex than this, but hopefully this
gets my point across:

I have a client trying to backup a MS SQL database.  We
use RunBefore and RunAfter commands to stop and start the
DB.  Usually this works fine, but if we run out of space
on a tape then Bacula can't get any farther until someone
mounts another tape.  However, because the application
is critical, someone usually will manually start the
services before the job can finish.  I can't fix this
behavior.

I figured that I could solve this problem by spooling,
and I can -- sort of.  The job gets spooled but the
services are still down until the job can be written
to tape.  This is causing a bit of frustration on the
client end because they're tired of having to manually
start services, and the client doesn't want to have
to check to see if the job has finished spooling.  They
barely understand the concept.

A solution to this problem would be a "Client Run After Spool"
command where I could restart the services after the
spool had finished.  Theoretically the FD is pretty much
done at that point, correct?


Right, and the "Client Run after spool Job" sounds like an interesting idea.


 We have a dedicated HD
we use for spooling, so all jobs can fit there with
no problem and we should never have to despool during a
job.  Although, even if we did the Run After wouldn't
run until the job was completely done spooling but
before it was written to tape, letting the application
become usable way before the job is done.

Is there a way to make this happen?  Or is this an
uncommon scenario?  If so, does anyone have any
other suggestions on getting around this?


Difficult.

I see several approaches:
- Wait until job migration is working in a stable version of Bacula.
- Convince Kern or anybody else to implement the directive you miss.
- Work around the problem.

The latter could be done like this:
Create a run before job which spawns a background process that observes 
the job status and, once it finds the job is done with spooling, 
triggers the database start script on your atabase servers.


I see several difficulties there, but I'm also sure one could get this 
working...


Arno


Thanks,

--J(K)

PS:  in case anyone cares:  some of the complexities
are that there are multiple MSDE SQL DB boxes, each
with different people responsible for them (and are
*not* trained admins) and each having their own silly
reasons to want to play power games with the completely
separate person responsible for the backups.  It's idiotic
office politics, but I don't work there so I can't do
anything about it. :(



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] Some advise needed

2006-03-10 Thread Syadmin
Holy Snikeys!

That sounds link no fun at all.
First of all, doing a cp -v --preserve=all is not sufficient for backups, at
the minimum you need to use tar (you do not need to make a tar archive, you
can pipe with tar and just use it as a transport and archiving medium) or
cpio. Cp will break under certain conditions and if there is a problem with
any data on the disk it will simply fail, where as tar is designed to do
mass archives so it will not break no matter how large (there are limits)
the directory structure is and cpio will copy bad sectors happily.

Doing incremental and differentials is kind of a waste of time as the
differential will do all the same work as you're incremental's so you are
doing the work over again. Differentials do incremental backups based on
changes from the last full backup, where as incremental just save changes
from the last incremental backup.

How much data are you backing up from how many servers?
What kind of recovery ability do you want to have as that will dictate what
kind of backup methods you need to use, for example we do web hosting so I
need to be able to provide full backups of several weeks (we all know
hosting customers are notorious for updating sites with bad data and then
not knowing about it for a while...) as well as provide reasonable backup
and recovery times so the 1 full and 6 diff's fit our needs.
What are your backup and recovery needs?

Of course it is easier to automate the backup and restore processes with
scripts or bacula, but if all you want to do is archive the data with
minimal recovery, all you REALLY need to do is use rsync and mirror the data
from one disk to another then you can rotate those mirrors as often as you
wish.

-Grant

-Original Message-
From: Danie Theron [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 2:19 AM
To: Syadmin
Cc: 'Bacula-Users'
Subject: Re: [Bacula-users] Some advise needed

Hi ,

Yes I only run disk based backups. I run one full backup monthly , with 
differentials every second week and then incrementals weekly. My 
offsites I use a straight 'cp -v --preserve=all' to copy those over to 
an offsite disk of which I have 3 I rotate. The copying is quite a 
lengthy process (creating dirs etc) , was wondering if won't be easier 
to automate it with either a script or bacula.



Syadmin wrote:
> I take it you do not have a tape library or a drive, so you are doing
> backups to disk?
>
> What do you WANT to have happen? What is your offsite procedure?
>
> I have a 10 tape library and I run a full once a week and swap out those
> full tapes on a weekly basis so I always have 4 weeks of full backups in
the
> library and a 5 week off site. 
> Are you trying to accomplish something like the above?
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Danie
Theron
> Sent: Thursday, March 09, 2006 9:49 AM
> To: Bacula-Users
> Subject: [Bacula-users] Some advise needed
>
> Hi All ,
>
> I've been using bacula for a while now , and need to do a harddrive 
> (SATA) upgrade (or shall I say bluntly I'm running out of disk 
> space!).My problem is , I only have a 2U server (4 300GB SATA in RAID 5 
> array) , and 2 trays for my offsite disks.So , to briefly explain my 
> setup (and please tell me where I need to specify more):
>
> 2U Intel Server with SATA RAID controller
> OS - Fedora Core 3 , resides on the RAID 5 array , 4 300GB Seagates (not 
> sure if it's the safest bet)
> Bacula version - Version: 1.38.0 (28 October 2005)
>
> For the offsites (and once again probably not the best way , any 
> suggestions?) , I pop in the disk , mount it and then copy over the 
> previous nights volumes. This however I've seen is quite tedious , and 
> could possibly get confusing and difficult to manage. Would it be 
> possible to rather setup a USB/Firewire disk , with a mount point for 
> offsites and let bacula then backup the volumes?
>
> OK , so basically I need some advise on how to move forward with either 
> this setup , or rethink my strategy. Also I must add I'm not an expert 
> at this and it's basically been given to me to sort out.
>
> TIA
>
> Daniel
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
> that extends applications into web and mobile media. Attend the live
webcast
> and join the prime developer group breaking into this new coding
territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
> that extends applications into web and mobile media. Attend the live
webcast
> and join the prime developer group breaking into this new cod

Re: [Bacula-users] Client Run After Spool?

2006-03-10 Thread Frank Sweetser
On Mon, Mar 06, 2006 at 12:12:58PM -0600, Jason Balicki wrote:
> I have a client trying to backup a MS SQL database.  We
> use RunBefore and RunAfter commands to stop and start the
> DB.  Usually this works fine, but if we run out of space
> on a tape then Bacula can't get any farther until someone
> mounts another tape.  However, because the application
> is critical, someone usually will manually start the
> services before the job can finish.  I can't fix this
> behavior.

If you have enough space disk space on the clients being backed up, one
alternative is to have the RunBefore script stop the database, copy it to a
staging area, restart the database, and then let the staging area get backed
up.  The RunAfter script would then clean up the staging area.

-- 
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 11:16:34 + (GMT), david robert <[EMAIL 
> PROTECTED]> said:
>
> i am sending here my bacula director,storage and tape drive permissions
>  
> bacula1280 1  0 Mar08 ?00:00:00 /usr/sbin/bacula-sd -c 
> /etc/bacula/bacula-sd.conf -u bacula -g tape
> bacula1281  1280  0 Mar08 ?00:00:00 /usr/sbin/bacula-sd -c 
> /etc/bacula/bacula-sd.conf -u bacula -g tape
> bacula1283  1281  0 Mar08 ?00:00:00 /usr/sbin/bacula-sd -c 
> /etc/bacula/bacula-sd.conf -u bacula -g tape
> bacula1412 1  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
> /etc/bacula/bacula-dir.conf -u bacula -g bacula
> bacula1413  1412  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
> /etc/bacula/bacula-dir.conf -u bacula -g bacula
> bacula1414  1413  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
> /etc/bacula/bacula-dir.conf -u bacula -g bacula
> bacula1415  1413  0 Mar08 ?00:00:00 /usr/sbin/bacula-dir -c 
> /etc/bacula/bacula-dir.conf -u bacula -g bacula
>  
> nst0 permissions as follows
> 
> crw-rw  1 root tape 9, 128 2005-02-26 06:38 nst0

The bacula-dir (which runs the RunAfterJob script) is running as group
"bacula" but the tape can only be accessed by group "tape".  The bacula-sd is
running as group "tape" so that is OK.

You could try using the "Offline On Unmount" to make the bconsole's unmount
command eject the tape, which might remove the need for mt.

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Client only on cygwin

2006-03-10 Thread Andreas Aronsson

Hello!

I am trying to compile my own windowsversion of bacula-fd under cygwin 
as to be able to have --enable-ssl under windows..


To install, i run a script like this:

CFLAGS="-g -Wall" 
\ 

 ./configure 
\ 

   --sbindir=$HOME/bacula/bin 
\

   --sysconfdir=$HOME/bacula/bin 
\ 

   --enable-smartalloc 
\   

   --with-pid-dir=$HOME/bacula/bin/working 
\   

   --with-subsys-dir=$HOME/bacula/bin/working 
\

   --with-openssl 
\

   --with-readline-support 
\   

   --enable-tray-monitor 
\ 

   --enable-client-only 
\  

   --with-working-dir=$HOME/bacula/bin/working 
\   

   --with-dump-email=$USER 
\   

   --with-smtp-host=mail.aron.nu 
\ 


   --with-baseport=9101
exit 0

Then 'make' and 'make install' of course.

Problem is, the installer only creates a bconsole.exe, no other *.exe.
No bacula-fd or bacula-sd...

Is this expected behaviour or may it have something to do with my 
windows root isn't c:\ ( actually f:\ in this case )?


--
Andreas Aronsson
Mobil: +46 704 566 595
www.aron.nu

"I'd rather have friends who care than friends who agree with me."
- Arlo Guthrie



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread david robert
my script is like below now     #!/bin/sh  /usr/bin/bconsole -c /etc/bacula/bconsole.conf  wrote:  > On Fri, 10 Mar 2006 11:16:34 + (GMT), david robert <[EMAIL PROTECTED]>said:>> i am sending here my bacula director,storage and tape drive permissions<
 BR>>
 > bacula 1280 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape> bacula 1281 1280 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape> bacula 1283 1281 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape> bacula 1412 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula> bacula 1413 1412 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula> bacula 1414 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula> bacula 1415 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula> > nst0 permissions as follows> > crw-rw 1 root tape 9, 128 2005-02-26 06:38 nst0The bacula-dir (which runs the RunAfterJob script) is running as
 group"bacula" but the tape can only be accessed by group "tape". The bacula-sd isrunning as group "tape" so that is OK.You could try using the "Offline On Unmount" to make the bconsole's unmountcommand eject the tape, which might remove the need for mt.__Martin---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
		Win a BlackBerry device from O2 with Yahoo!. Enter now.

[Bacula-users] MTEOM error

2006-03-10 Thread Gabriele Bulfon


I have a Sun v20z AMD running Bacula on Solaris 10, using a Certance Ultrium LTO 2 scsi tape device.Sometimes I receive the following error during the nightly backup, after the first machine-job is correctly finished and bacula is trying to run the second machine-job.Then, I tried to reuse the tape during the day, to check if the error would repeat.So I purged the volume and restarted the jobs by hands through bconsole: everything goes fine.Anyone have ideas about what may be the problem?Here's the error on bacula logs:09-Mar 23:48 iserver-sd: Enterprise_Backup_SMARTLINK.2006-03-09_21.40.00 Error: Unable to position to end of data on device "/dev/rst20". ERR=dev.c:494 ioctl MTEOM error on /dev/rst20. ERR=I/O error.and here's the error on /var/adm/messagesMar  9 23:47:00 iserver scsi: [ID 107833 kern.warning] WARNING: /[EMAIL PROTECTED],0/pci1022,[EMAIL PROTECTED]/pci1000,[EMAIL PROTECTED]/[EMAIL PROTECTED],0 (st4):Mar  9 23:47:00 iserver Error for Command: space   Error Level: FatalMar  9 23:47:00 iserver scsi: [ID 107833 kern.notice]   Requested Block: 0 Error Block: 0Mar  9 23:47:00 iserver scsi: [ID 107833 kern.notice]   Vendor: CERTANCE   Serial Number: 0353-200Mar  9 23:47:00 iserver scsi: [ID 107833 kern.notice]   Sense Key: Media ErrorMar  9 23:47:00 iserver scsi: [ID 107833 kern.notice]   ASC: 0x3b (sequential positioning error), ASCQ: 0x0, FRU: 0x0Thanx for any help.Gabriele.


 



 

Gabriele Bulfon - Sonicle S.r.l.
Tel +39 028246016 Int. 30 - Fax +39 028243880
Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
http://www.sonicle.com

 





Re: [Bacula-users] wrong date in firstwritten field (1970-01-01 01:00:00)

2006-03-10 Thread Erich Prinz
I've noticed the date/time stamp reporting wrong too, though in  
restoring the files, it never poses any problems.


The other thing to note about volumes (and for us control freak  
types, this is a bit awkward) per the Bacula documentation it's best  
to let Bacula decide what volumes to use. Just label the media so  
it's easy to identify.


In using other systems, I've always tied the media name to a specific  
day of the week - it works - especially with clients who don't need  
to become sys admins to figure the thing out.


Hope that helps,

Erich

On Mar 10, 2006, at 2:58 AM, Ralf Gross wrote:


Hi,

I use a pool with 6 tapes for weekly full backup, each full backup  
needs 3
tapes. Retention worked fine for the last few weeks, the expected  
volumes
were used (volume retention 9 days, week 1 volume Bang1/2/3, week 2  
volume
Bang3/4/5...). Today I got the notification about the upcoming jobs  
this

weekend:

Full   11-Mär-06  19:00  BangBang5-2006-02-08

Full   11-Mär-06  19:50  BackupCatalog   Bang5-2006-02-08

I was suprised that volume Bang5 should be used as first tape. I  
changed
the state of the other volumes (4/6) with bconsole to Recycle, but  
bacula

still wants volume Bang5 as first tape. This is the output from 'list
volumes' (removed some fields to better fit the page).

++-+--+-+ 
+---+
|volumename  |volstatus|volbytes  |files|recy| 
lastwritten|
++-+--+-+ 
+---+
|Bang1-2006-02-08|Full |66,393,748,936|  67 |  1 |2006-02-25  
22:48:14|
|Bang2-2006-02-08|Purged   |66,509,741,779|  67 |  1 |2006-02-26  
01:47:09|
|Bang3-2006-02-08|Purged   |60,504,889,661|  62 |  1 |2006-02-26  
11:05:01|
|Bang4-2006-02-08|Recycle  |66,846,623,315|  67 |  1 |2006-02-18  
22:47:03|
|Bang5-2006-02-08|Recycle  | 1|   0 |  1 |2006-02-19  
01:41:36|
|Bang6-2006-02-08|Recycle  |66,418,086,144|  68 |  1 |2006-02-19  
11:13:43|
++-+--+-+ 
+---+


I'm confused by this output, because Bang5 was the second tape of  
three
tapes that were used for the full backup three weeks ago. I don't  
know why

volbytes/files show these values.

Looking at the volume state with llist, reports 1970-01-01 01:00:00 as
firstwritten date.

  mediaid: 5
   volumename: Bang5-2006-02-08
 slot: 5
   poolid: 1
mediatype: AIT-2
 firstwritten: 1970-01-01 01:00:00
  lastwritten: 2006-02-19 01:41:36
labeldate: 2006-02-18 19:30:03
  voljobs: 0
 volfiles: 0
volblocks: 0
volmounts: 1
 volbytes: 1
volerrors: 0
volwrites: 1,031,691
 volcapacitybytes: 0
volstatus: Recycle
  recycle: 1
 volretention: 777,600
   voluseduration: 172,800
   maxvoljobs: 0
  maxvolfiles: 0
  maxvolbytes: 0
inchanger: 1
  endfile: 66
 endblock: 8,689
 volparts: 0
labeltype: 0
storageid: 2

There is one other tape used for a second client that reports this  
date
too. I checked the syslog entries, but couldn't find anything  
obvious. The

time entries between 2006-02-18 and 2006-02-19 are all ok.

Any ideas why bacula reports this wrong date?

Ralf




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting  
language
that extends applications into web and mobile media. Attend the  
live webcast
and join the prime developer group breaking into this new coding  
territory!
http://sel.as-us.falkag.net/sel? 
cmd=lnk&kid=110944&bid=241720&dat=121642

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





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] No compression for FIFOs neither Windows clients ?

2006-03-10 Thread Baptiste Malguy
Hello

Arno Lehmann a écrit :
>> }
>>
>> My conclusion would be to say that only the last Options section is
>> taken into account. I made the test with "fstype = ext2". If it is in
>> the 1st Options section, the files are backed up. If it's in the second,
>> no files are backed up, which is right (server-test has an NTFS FS).
>>
>> From http://www.bacula.org/dev-manual/Configuring_Director.html :
>>
>> "The Include resource may also contain one or more Options resources
>> that specify options [...]"
>>
>> Did I miss something ?
> 
> 
> Yup.
> 
> The next paragraphs. ;-)
Oh no, I did that ...

> 
> For example this paragraph:
> 
> "However, one additional point is that in the case that no match was
> found, Bacula will use the options found in the last Options resource.
> As a consequence, if you want a particular set of "default" options, you
> should put them in an Options resource after any other Options."
> 

Worst:
"The Options resources are applied in the order they are specified in
the FileSet until the first one that matches."

"A key point is that in the absence of an Option or no other Option is
matched, every file is accepted for backing up. This means that if you
want to exclude something, you must explicitly specify an Option with an
exclude = yes and some pattern matching."

-2 points

Thank you Arno. Once again, RTFM is a good thing, but RTFMC (C =
carefully) is better ;-)

-- 
Baptiste MALGUY - IT Engineer   SOLSOFT
PGP Fingerprint: 2A90 B6D1 855F 1584 FE68  94AC CCD6 36D0 3DC7 DCB8
www.solsoft.com - phone: +33 1 47 15 04 00 - fax: +33 1 47 15 55 09
 How secure networks are managed.



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Doc for slave bacula server

2006-03-10 Thread Laradji nacer
hi all,

I need some documentation about making a slave bacula server act like 
mirroring .

I have make some search but nothink .

Thank for your help .

-- 
Laradji nacer 
   ovea http://www.ovea.com
Tél : +33 4 6767    Gsm : +33 6 1059 6883
1024D/DFCF1726 : 33A5 7162 4370 9C30 E22C 0721 DBA7 CBEE DFCF 1726



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Lee, Raymond
I've always had a problem with mtx-changer regarding this issue.  Even
when I'm running the SD as root, my tape drives always show "Device
busy" when I do an 'mt -f /dev/rmt/0cbn status'.  The drives are always
busy while bacula-sd is running, with or without tapes in the drives and
not performing any backups.  

Therefore, I'm always stuck waiting 180 seconds for the timeout when I
want to load a tape.  The tapes load just fine, but the drive won't ever
settle down and show "ONLINE" ("0x0" in my case) while the SD is
running.  I've changed the timeout to 60 seconds to ease the pain.

This problem affects other parts of Bacula that request the drive
status.  When I first start the SD, I have to wait for the timeout
period for both drives before I can do anything.  Does Bacula put some
kind of lock or hog resources of the tape drives that prevents showing
the tape status correctly?  When I was running Legato Networker, I was
always able to do mt -f /dev/rmt/0cbn status while Legato was running
and the drive was idle.

My setup is:
Solaris 9
L25 Autochanger with two SDLT 320 drives
Bacula 1.38.5

Thanks,
Ray

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Arno
Lehmann
Sent: Friday, March 10, 2006 5:13 AM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] tape will not eject after finishing backup


Hello,

On 3/10/2006 11:00 AM, david robert wrote:
> these are the two places i can see this function can we increse these 
> time or

You'd use this snippet in your script.

> wait_for_drive() {
>   for i in $(seq 180); do   # Wait max 180 seconds
> if mt -f $1 status | grep ONLINE  >/dev/null 2>&1; then

# and, before you implement this, make sure your tape drive status
# is actually ONLINE after unmount from Bacula.

>   break
> fi
> #   echo "Device $1 - not ready, retrying..."
> sleep 1
>   done
> }

Also, one thing I overlooked in my previous post: With a DLT drive, you 
can't usually eject the cartridge after rewinding, you have to offline 
the drive, too. The combined command 'mt rewoffline' might thus already 
solve your problem.

Arno


> 
> 
> # wait_for_drive $device
>   sleep 15
>   exit $rtn
>   ;;
> 
> thanks for your help
> 
> */Arno Lehmann <[EMAIL PROTECTED]>/* wrote:
> 
> Hello,
> 
> On 3/10/2006 10:29 AM, Gavin Conway wrote:
>  > Hi,
>  >
>  > I'm seeing the same problem using a very similar script. Also
using
>  > Debian Sarge 3.1 with the latest version of Bacula. I think
this
> is more
>  > to do with Bacula not having finished with the tape drive when
the
>  > script runs.
>  >
>  > If anyone knows how this goes let me know.
> 
> If you are right with your suspicion, you could wait for the tape
to
> become available before executing the commands. In the mtx-changer
> script, there's a function wait_for_drive which you could use as a
> template. Basically, it checks if the drive is ready, and if it
> isn't it
> waits some time and loops.
> 
> Arno
> 
>  > Thanks,
>  > Gavin
>  >
> 
> -- 
> IT-Service Lehmann [EMAIL PROTECTED]
> Arno Lehmann http://www.its-lehmann.de
> 
> 
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting
> language
> that extends applications into web an d mobile media. Attend the
> live webcast
> and join the prime developer group breaking into this new coding
> territory!
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
> 
> 
> *Yahoo! Photos* 
>
 
> - NEW , now offering a quality print service 
>
 
> from just 8p a photo.

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



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group brea

Re: [Bacula-users] /dev/nst0 disappeared

2006-03-10 Thread Jason Martin
On Fri, Mar 10, 2006 at 11:33:18AM +0100, BrokenClock wrote:
> >eof /
> Curiously, everything worked fine wednesday all the day long.
> /cat /proc/scsi/scsi/ give me "/Attached devices/:" and nothing more.
> 
> Does anyone have a idear to help me to make this mess work?
Does dmesg still recognize your SCSI controller?
-Jason Martin
-- 
This message is PGP/MIME signed.


pgpf6zo330MS2.pgp
Description: PGP signature


[Bacula-users] having to manually load tapes

2006-03-10 Thread Beren Gamble
Any idea why this is happening? - I have to manually load the tape using 
mtx-changer.

*m
10-Mar 16:57 backup2-sd: 3301 Issuing autochanger "loaded drive 0" command.
10-Mar 16:57 backup2-sd: 3302 Autochanger "loaded drive 0", result: nothing 
loaded.
10-Mar 16:57 backup2-sd: 3301 Issuing autochanger "loaded drive 0" command.
10-Mar 16:57 backup2-sd: 3302 Autochanger "loaded drive 0", result: nothing 
loaded.
10-Mar 16:57 backup2-sd: Please mount Volume "000147L2" on Storage Device 
"ULTRIUM" (/dev/st0) for Job GISWEB1-Daily.2006-03-10_16.57.04
*list media
Pool: Daily
+-++---+-+--+--+-+--+---+---+-+
| MediaId | VolumeName | VolStatus | VolBytes| VolFiles | VolRetention 
| Recycle | Slot | InChanger | MediaType | LastWritten |
+-++---+-+--+--+-+--+---+---+-+
|   1 | 000148L2   | Used  | 378,362,675,004 |  384 |1,036,800 
|   1 |2 | 0 | LT02  | 2006-03-07 09:25:24 |
|   3 | 000110L2   | Used  | 390,374,269,558 |  396 |1,036,800 
|   1 |1 | 1 | LT02  | 2006-03-09 10:04:22 |
|   4 | 000147L2   | Append|   1 |0 |1,036,800 
|   1 |3 | 1 | LT02  | -00-00 00:00:00 |
|   5 | 000157L2   | Append|   1 |0 |1,036,800 
|   1 |4 | 1 | LT02  | -00-00 00:00:00 |
|   6 | 000150L2   | Append|   1 |0 |1,036,800 
|   1 |5 | 1 | LT02  | -00-00 00:00:00 |
|   7 | 000153L2   | Append|   1 |0 |1,036,800 
|   1 |6 | 1 | LT02  | -00-00 00:00:00 |
|   8 | 000107L2   | Archive   | 429,372,946,814 |  435 |   31,536,000 
|   0 |2 | 1 | LT02  | 2006-02-25 07:22:34 |
+-++---+-+--+--+-+--+---+---+-+


Beren Gamble
Network Analyst
Technical Team, Harrow IT Services
020 8424 1485 (int. ext. 2485)
[EMAIL PROTECTED] 


***
Mail FROM London Borough of Harrow:
Unencrypted electronic mail is not secure and may not be authentic, in whole or 
in part. You are advised to check directly with the sender before acting upon 
any e-mail received. 

The information contained in this message and any attachments is confidential 
and is intended for receipt by the above named addressee(s) only. If you have 
otherwise encountered this message please notify its originator via +44(0)20 
8863 5611 at LONDON BOROUGH OF HARROW. The unauthorised use, disclosure, 
copying or alteration of this message is strictly forbidden. The  views 
expressed within this message are those of the individual sender and not 
necessarily those of Harrow Council.

Mail TO London Borough of Harrow:
London Borough of Harrow monitors all electronic mail it receives for Policy 
compliance and to protect its systems including anti-spam and anti-virus 
measures. 

Electronic mail does not guarantee delivery, nor notification of non-delivery. 
It is suggested you contact your intended recipient(s) by other means should 
confirmation of receipt be important.
***



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Database selection

2006-03-10 Thread DAve

Good morning,

I've got my new equipment and I hope to have time next week to start 
building out the new backup servers. Currently we do most of our work 
with MySQL simply because support is good with the software packages we 
use. I looked through GMANE for info on any preferences for which 
backend I should use with Bacula and didn't find anything.


Will I gain anything switching to Postgres from MySQL? I'm comfortable 
with Postgres though not nearly as familiar with it. But, if switching 
will be beneficial then that is what I will install.


So I guess my question really is, "is there a preferred database backend 
for Bacula?".


System will be a fresh install from FreeBSD ports (normally I use src 
but I'm just too dang busy right now).


- FreeBSD 5
- SATA RAID 1
- 1gb private LAN
- File storage
- Current Bacula storage is exceeding 100mb on two independant Bacula 
installs

- Projected storage requirements will be 500mb
(if we begin offering client backups, this will go past 1tb quickly)
- Data backed up is websites, SQL dumps, Cisco configs, server 
configs(/etc, /usr/local/etc), file server contents such as PDF, DOC, 
XLS, and either dump files or bare metal recovery for key servers.


Thanks,

DAve
--
This message was checked by forty monkeys and
found to not contain any SPAM whatsoever.

Your monkeys may vary


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Device is BLOCKED waiting for appendable media

2006-03-10 Thread Nick Smith
im having a problem getting bacula to work properly.  Its a fresh
install, i think its properly configured,  when ever i run the job to
test the backup i get:

Device status:
Device "/dev/nst0" open but no Bacula volume is mounted.
Device is BLOCKED waiting for appendable media.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0

i even tried putting the "real" device name in the config file "st0"
and that doesnt work either.

also when i try to label the tape i get:

Enter new Volume name: BackupSet1
Automatically selected Pool: Default
Connecting to Storage daemon DDS-3 at mail:9103 ...
Sending relabel command from "BackupSet01" to "BackupSet1" ...
block.c:782 Read error at file:blk 0:0 on device /dev/nst0.
ERR=Input/output error.
3000 OK label. Volume=BackupSet1 Device=/dev/nst0
Catalog record for Volume "BackupSet1", Slot 0  successfully created.
Old volume "BackupSet01" deleted from catalog.
Requesting to mount DDS-3 ...
3001 OK mount. Device=/dev/nst0

this has happened on two brand new tapes. it has an error, but then
goes along to actually complete the label, is this ok? is it just that
the tape doesnt spin up fast enough or something?

ive googled about this and came up with a couple things related to
labeling the tape but none of them seemed to work.  do any of you have
any other suggestions on how to track down this problem?

thanks

Nick


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 14:03:29 + (GMT), david robert <[EMAIL 
> PROTECTED]> said:
> 
> my script is like below now
>   
>   #!/bin/sh
>   /usr/bin/bconsole -c /etc/bacula/bconsole.conf < unmount storage=DLT
> END_OF_DATA
>   # the following is a shell command
> /etc/bacula/scripts/delete_catalog_backup
> ### export TAPE=nst0
> export TAPE=/dev/nst0
> mt rewind
> mt offline
>   exit 0
>   
>   this is ok or i need to completely avoid the mt commnd using Offline On
>  Unmount i didn't get you where i can use this if possible show me in script
> 
>   thanks for your help

Ah, sorry, I forgot to add that Offline On Unmount is an option in the Device
section of bacula-sd.conf (see
).

If caused bacula to send the equivalent of "mt offline" when you use the
unmount command.  I'm sure it rewinds as well, so if that works then you can
remove all the mt lines in the script.

__Martin


> 
> 
> Martin Simmons <[EMAIL PROTECTED]> wrote:
>   > On Fri, 10 Mar 2006 11:16:34 + (GMT), david robert said:
> >
> > i am sending here my bacula director,storage and tape drive permissions
> >
> > bacula 1280 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c 
> > /etc/bacula/bacula-sd.conf -u bacula -g tape
> > bacula 1281 1280 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c 
> > /etc/bacula/bacula-sd.conf -u bacula -g tape
> > bacula 1283 1281 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c 
> > /etc/bacula/bacula-sd.conf -u bacula -g tape
> > bacula 1412 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> > bacula 1413 1412 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> > bacula 1414 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> > bacula 1415 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> >
> > nst0 permissions as follows
> >
> > crw-rw 1 root tape 9, 128 2005-02-26 06:38 nst0
> 
> The bacula-dir (which runs the RunAfterJob script) is running as group
> "bacula" but the tape can only be accessed by group "tape". The bacula-sd is
> running as group "tape" so that is OK.
> 
> You could try using the "Offline On Unmount" to make the bconsole's unmount
> command eject the tape, which might remove the need for mt.
> 
> __Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 10:14:04 -0600, "Lee, Raymond" <[EMAIL PROTECTED]> 
> said:
> 
> I've always had a problem with mtx-changer regarding this issue.  Even
> when I'm running the SD as root, my tape drives always show "Device
> busy" when I do an 'mt -f /dev/rmt/0cbn status'.  The drives are always
> busy while bacula-sd is running, with or without tapes in the drives and
> not performing any backups.  
> 
> Therefore, I'm always stuck waiting 180 seconds for the timeout when I
> want to load a tape.  The tapes load just fine, but the drive won't ever
> settle down and show "ONLINE" ("0x0" in my case) while the SD is
> running.  I've changed the timeout to 60 seconds to ease the pain.
> 
> This problem affects other parts of Bacula that request the drive
> status.  When I first start the SD, I have to wait for the timeout
> period for both drives before I can do anything.  Does Bacula put some
> kind of lock or hog resources of the tape drives that prevents showing
> the tape status correctly?  When I was running Legato Networker, I was
> always able to do mt -f /dev/rmt/0cbn status while Legato was running
> and the drive was idle.
> 
> My setup is:
> Solaris 9
> L25 Autochanger with two SDLT 320 drives
> Bacula 1.38.5

Sorry, I don't know much about autochangers, but it sounds like Bacula is
keeping the drive open.  Possibly setting

Always Open = no

for the bacula-sd Device resource will allow mt to work.  See the manual.

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] DirAddresses Problems

2006-03-10 Thread Martin Simmons
> On Thu, 9 Mar 2006 22:48:20 -0600, "Matthew Feinberg" <[EMAIL PROTECTED]> 
> said:
> 
> Hello,
> 
> I am trying to tell bacula to listen to multiple IPs. Using the DirAddresses
> directive returns the error below. Ideas?
> 
> I am using bacula-mysql-1.38.5-4 compiled from RPM Source on Fedora Core 4.
> 
> DirAddresses = {
> ip = {
> addr = 208.186.78.24; }
> ip = {
> addr = 208.186.130.59; }
> }
> 
> Starting Bacula Director services: 09-Mar 20:43 bacula-dir: ERROR
> TERMINATION at address_conf.c:493
> Config error: Can't add hostname(xxx.xxx.xx.24) and port() to addrlist (the
> old style addresses cannot be mixed with new style)
> : line 27, col 24 of file /etc/bacula/bacula-dir.conf
> addr = xxx.xxx.xx.24; }

Check if you have a DIRport option as well -- that would be the "old style"
address.  If so, convert it to a port option within each ip sectrion.

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] DirAddresses Problems

2006-03-10 Thread Matthew Feinberg
Thanks.. That worked.

I commented out the DIRport = 9101 and then changed my DirAdresses

 DirAddresses = {
 ip = {
 addr = xxx.xxx.xx.24; port 9101; }
 ip = {
 addr = xxx.xxx.xxx.59; port 9101; }
}

>-Original Message-
>From: Martin Simmons [mailto:[EMAIL PROTECTED]
>Sent: Friday, March 10, 2006 12:02 PM
>To: [EMAIL PROTECTED]
>Cc: Bacula-users@lists.sourceforge.net
>Subject: Re: [Bacula-users] DirAddresses Problems
>
>> On Thu, 9 Mar 2006 22:48:20 -0600, "Matthew Feinberg"
><[EMAIL PROTECTED]> said:
>>
>> Hello,
>>
>> I am trying to tell bacula to listen to multiple IPs. Using the
>DirAddresses
>> directive returns the error below. Ideas?
>>
>> I am using bacula-mysql-1.38.5-4 compiled from RPM Source on Fedora Core
>4.
>>
>> DirAddresses = {
>> ip = {
>> addr = 208.186.78.24; }
>> ip = {
>> addr = 208.186.130.59; }
>> }
>>
>> Starting Bacula Director services: 09-Mar 20:43 bacula-dir: ERROR
>> TERMINATION at address_conf.c:493
>> Config error: Can't add hostname(xxx.xxx.xx.24) and port() to addrlist
>(the
>> old style addresses cannot be mixed with new style)
>> : line 27, col 24 of file /etc/bacula/bacula-dir.conf
>> addr = xxx.xxx.xx.24; }
>
>Check if you have a DIRport option as well -- that would be the "old style"
>address.  If so, convert it to a port option within each ip sectrion.
>
>__Martin



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Trouble restoring backed up file

2006-03-10 Thread Martin Simmons
> On Thu, 09 Mar 2006 08:05:43 -0700, Michael Morgan <[EMAIL PROTECTED]> 
> said:
> 
> Martin Simmons wrote:
> 
> > How many files?  Note that even at 1KB per file entry in memory, 102000 
> > files
> > would only requie 100MB.
> > 
> > A common cause of slowness in restore is missing indexes in the database.
> So how do I tell if I am missing an index? We checked and there are 
> quite a few indexes in the database, including file indexes. Is there a 
> way to reindex the database?
> 
> Any help would be appreciated, because the current machine is a test 
> case. If I install this on the main system, I am backing up 5-6 times as 
> many files. I can't use this system if it will take 2-3 hours to select 
> the file(s) that need to be restored.

Please post to the list so everyone can contribute.

The File table is usually the critical one.  See
.

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Strange problem using DVD

2006-03-10 Thread Lucas Di Pentima
Hi people!

I'm starting to test bacula with a DVD-based storage, version 1.38.5 on
Debian. First I've downloaded the source package of dvd+r-tools, applied
the patch, and re-packaged it to install it later.

I've compiled, install and tried it with a DDS-3 tape drive, and now
I've installed a DVD-Writer, with this configuration:

Device {
  Name = "DVD-Writer"
  Media Type = DVD
  Archive Device = /dev/hdc
  LabelMedia = yes;   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = yes;
  AlwaysOpen = no;
  MaximumPartSize = 800M;
  RequiresMount = yes;
  MountPoint = /mnt/dvd;
  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";
  UnmountCommand = "/bin/umount %m";
  SpoolDirectory = /tmp/backup;
  WritePartCommand = "/usr/local/etc/dvd-handler %a write %e %v"
  FreeSpaceCommand = "/usr/local/etc/dvd-handler %a free"
}

...pretty much the default config...

After correcting some permission issues I was able to start a Full
Backup Job (1.8 GB in total, tested in tape), bacula made the first
800MB part, and writed it on the DVD+R disc. After that, the backup job
was cancelled with this error message:

...
13-mar 09:36 cordoba-sd: Remaining free space 4,689,887,232 on
"DVD-Writer" (/dev/hdc)
13-mar 09:36 cordoba-sd: BackupCordoba.2006-03-13_09.25.31 Fatal error:
block.c:804 Unable to open device next part "DVD-Writer" (/dev/hdc):
ERR=Could not mount device "DVD-Writer" (/dev/hdc).

13-mar 09:36 cordoba-sd: BackupCordoba.2006-03-13_09.25.31 Fatal error:
append.c:207 Fatal append error on device "DVD-Writer" (/dev/hdc):
ERR=Could not mount device "DVD-Writer" (/dev/hdc).

13-mar 09:36 cordoba-fd: BackupCordoba.2006-03-13_09.25.31 Fatal error:
backup.c:500 Network send error to SD. ERR=Broken pipe
...

The strange thing is that I can manually mount the DVD and I see the
part file on it.
Now I'm trying to start another backup job and bacula keep telling me this:

13-mar 15:22 cordoba-sd: Please mount Volume "Semanal-0001" on Storage
Device "DVD-Writer" (/dev/hdc) for Job BackupCordoba.2006-03-13_14.22.02

Whether I put the same DVD+R disc or a completely blank one, it tells me
the same thing.

Any ideas? :-|
-- 
Lucas Di Pentima - Santa Fe, Argentina - Jabber ID: [EMAIL PROTECTED]
LUNIX S.R.L. - Soluciones en GNU/Linux - http://www.lunix.com.ar
GnuPG Public Key:
http://random.sks.keyserver.penguin.de:11371/pks/lookup?op=get&search=0x6AA54FC9
Key fingerprint = BD3B 08C4 661A 8C3B 1855  740C 8F98 3FCF 6AA5 4FC9


signature.asc
Description: OpenPGP digital signature


Re: [Bacula-users] Device is BLOCKED waiting for appendable media

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 6:33 PM, Nick Smith wrote:

im having a problem getting bacula to work properly.  Its a fresh
install, i think its properly configured,  when ever i run the job to
test the backup i get:


One very important question: Have you run the btape tests, and did they 
report anything you didn't understand or even errors?



Device status:
Device "/dev/nst0" open but no Bacula volume is mounted.
Device is BLOCKED waiting for appendable media.
Total Bytes Read=0 Blocks Read=0 Bytes/block=0
Positioned at File=0 Block=0

i even tried putting the "real" device name in the config file "st0"
and that doesnt work either.


I don't understand that sentence...


also when i try to label the tape i get:

Enter new Volume name: BackupSet1
Automatically selected Pool: Default
Connecting to Storage daemon DDS-3 at mail:9103 ...
Sending relabel command from "BackupSet01" to "BackupSet1" ...


Hmm. This looks like you issued a 'relabel' command, not 'label'.


block.c:782 Read error at file:blk 0:0 on device /dev/nst0.
ERR=Input/output error.


This looks like your SD can't use the tape drive. Start (again) with 
btape and tell us what the tests report.



3000 OK label. Volume=BackupSet1 Device=/dev/nst0
Catalog record for Volume "BackupSet1", Slot 0  successfully created.
Old volume "BackupSet01" deleted from catalog.
Requesting to mount DDS-3 ...
3001 OK mount. Device=/dev/nst0

this has happened on two brand new tapes. it has an error, but then
goes along to actually complete the label, is this ok? is it just that
the tape doesnt spin up fast enough or something?


No, there's no such thing as far as I know. Usually, when a labeled tape 
is mounted, you should see the volume name in the message. What did work 
in your output above is the catalog action, but that alone is not enough.



ive googled about this and came up with a couple things related to
labeling the tape but none of them seemed to work.  do any of you have
any other suggestions on how to track down this problem?


Yes, btape testing...

Arno


thanks

Nick


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] wrong date in firstwritten field (1970-01-01 01:00:00)

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 4:03 PM, Erich Prinz wrote:
I've noticed the date/time stamp reporting wrong too, though in  
restoring the files, it never poses any problems.


The other thing to note about volumes (and for us control freak  types, 
this is a bit awkward) per the Bacula documentation it's best  to let 
Bacula decide what volumes to use. Just label the media so  it's easy to 
identify.


:-)

Just what I think... except for the paranthesis, but then I never 
encountered cases where tapes were used out of the expected order.


In using other systems, I've always tied the media name to a specific  
day of the week - it works - especially with clients who don't need  to 
become sys admins to figure the thing out.


Well, that depends on the setup of course - I simply try to avoid a 
media-to-weekday mapping.


Arno


Hope that helps,

Erich

On Mar 10, 2006, at 2:58 AM, Ralf Gross wrote:


Hi,

I use a pool with 6 tapes for weekly full backup, each full backup  
needs 3
tapes. Retention worked fine for the last few weeks, the expected  
volumes
were used (volume retention 9 days, week 1 volume Bang1/2/3, week 2  
volume

Bang3/4/5...). Today I got the notification about the upcoming jobs  this
weekend:

Full   11-Mär-06  19:00  BangBang5-2006-02-08

Full   11-Mär-06  19:50  BackupCatalog   Bang5-2006-02-08

I was suprised that volume Bang5 should be used as first tape. I  changed
the state of the other volumes (4/6) with bconsole to Recycle, but  
bacula

still wants volume Bang5 as first tape. This is the output from 'list
volumes' (removed some fields to better fit the page).

++-+--+-+ 
+---+
|volumename  |volstatus|volbytes  |files|recy| 
lastwritten|
++-+--+-+ 
+---+
|Bang1-2006-02-08|Full |66,393,748,936|  67 |  1 |2006-02-25  
22:48:14|
|Bang2-2006-02-08|Purged   |66,509,741,779|  67 |  1 |2006-02-26  
01:47:09|
|Bang3-2006-02-08|Purged   |60,504,889,661|  62 |  1 |2006-02-26  
11:05:01|
|Bang4-2006-02-08|Recycle  |66,846,623,315|  67 |  1 |2006-02-18  
22:47:03|
|Bang5-2006-02-08|Recycle  | 1|   0 |  1 |2006-02-19  
01:41:36|
|Bang6-2006-02-08|Recycle  |66,418,086,144|  68 |  1 |2006-02-19  
11:13:43|
++-+--+-+ 
+---+


I'm confused by this output, because Bang5 was the second tape of  three
tapes that were used for the full backup three weeks ago. I don't  
know why

volbytes/files show these values.

Looking at the volume state with llist, reports 1970-01-01 01:00:00 as
firstwritten date.

  mediaid: 5
   volumename: Bang5-2006-02-08
 slot: 5
   poolid: 1
mediatype: AIT-2
 firstwritten: 1970-01-01 01:00:00
  lastwritten: 2006-02-19 01:41:36
labeldate: 2006-02-18 19:30:03
  voljobs: 0
 volfiles: 0
volblocks: 0
volmounts: 1
 volbytes: 1
volerrors: 0
volwrites: 1,031,691
 volcapacitybytes: 0
volstatus: Recycle
  recycle: 1
 volretention: 777,600
   voluseduration: 172,800
   maxvoljobs: 0
  maxvolfiles: 0
  maxvolbytes: 0
inchanger: 1
  endfile: 66
 endblock: 8,689
 volparts: 0
labeltype: 0
storageid: 2

There is one other tape used for a second client that reports this  date
too. I checked the syslog entries, but couldn't find anything  
obvious. The

time entries between 2006-02-18 and 2006-02-19 are all ok.

Any ideas why bacula reports this wrong date?

Ralf




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting  
language
that extends applications into web and mobile media. Attend the  live 
webcast
and join the prime developer group breaking into this new coding  
territory!

http://sel.as-us.falkag.net/sel? cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live 
webcast

and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=k&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



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



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web an

Re: [Bacula-users] No compression for FIFOs neither Windows clients ?

2006-03-10 Thread Arno Lehmann

Hi,

On 3/10/2006 5:04 PM, Baptiste Malguy wrote:
...

Thank you Arno. Once again, RTFM is a good thing, but RTFMC (C =
carefully) is better ;-)


Another qoute from that manual section: "This is perhaps a bit 
overwhelming,..." ;-)


In fact I never really worked through multiple options sections with in- 
or excludes - too complicated for me. It's only this mail exchange that 
inspired me to look into the manual again :-)


Arno

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Doc for slave bacula server

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 5:10 PM, Laradji nacer wrote:

hi all,

I need some documentation about making a slave bacula server act like 
mirroring .


I don't think that what you want is possible with Bacula.

One step into that direction would be the implementation of job copying 
and copypools, but that's not something that will work in the next few 
weeks I think.


If you're interested, or would like your thoughs on that matter to be 
considered, you should read the bacula-devel mailing list archives - 
this has recently been discussed as part of the ongoing development.



I have make some search but nothink .


Unfortunately, that's not astonishing.


Thank for your help .


Well, no real help, but perhaps you find something to look forward to :-)

Arno


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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Database selection

2006-03-10 Thread Arno Lehmann

Hi,

On 3/10/2006 6:18 PM, DAve wrote:

Good morning,

I've got my new equipment and I hope to have time next week to start 
building out the new backup servers. Currently we do most of our work 
with MySQL simply because support is good with the software packages we 
use. I looked through GMANE for info on any preferences for which 
backend I should use with Bacula and didn't find anything.


Will I gain anything switching to Postgres from MySQL? I'm comfortable 
with Postgres though not nearly as familiar with it. But, if switching 
will be beneficial then that is what I will install.


I don't know about any performance comparisons done with Bacula in an 
identical environment. To me (but I'm not a PostgreSQL person) it seems 
that PostgreSQL can be tuned quite a lot, but I've never worked with a 
setup where the catalog database was the limiting factor for Bacula.


So I guess my question really is, "is there a preferred database backend 
for Bacula?".


Depending on who you ask, I think ;-)

System will be a fresh install from FreeBSD ports (normally I use src 
but I'm just too dang busy right now).


- FreeBSD 5
- SATA RAID 1


Make this a RAID 5 or 6, preferrably with a "real" RAID controller, more 
preferrable with a stand-alone system - losing a TB of customers data 
due to hard disk breakdown is definitely no fun. Also, make sure you 
have the ability to produce and handle off-site copies of that data.



- 1gb private LAN
- File storage
- Current Bacula storage is exceeding 100mb on two independant Bacula 
installs

- Projected storage requirements will be 500mb


Really MB? then it doesn't sound like you will notice any difference 
between even an out-of-the-box database setup and a carefully tuned 
database with the best choice for Bacula...



(if we begin offering client backups, this will go past 1tb quickly)


If you think about 1 TB per full backup run as opposed to one TB overall 
storage for all backup generations that's definitely different...


Arno

- Data backed up is websites, SQL dumps, Cisco configs, server 
configs(/etc, /usr/local/etc), file server contents such as PDF, DOC, 
XLS, and either dump files or bare metal recovery for key servers.


Thanks,

DAve


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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Strange problem using DVD

2006-03-10 Thread Arno Lehmann

Hi,

On 3/10/2006 7:55 PM, Lucas Di Pentima wrote:

Hi people!

I'm starting to test bacula with a DVD-based storage, version 1.38.5


I did spend quite some time getting DVD backups to work some months ago.

In the end, I got a running system requiring lots of manual 
intervention. That was with 1.37.something.


After that, I didn't see a working DVD backup here on my test system, 
but I also didn't actually work on it.


...

After correcting some permission issues I was able to start a Full
Backup Job (1.8 GB in total, tested in tape), bacula made the first
800MB part, and writed it on the DVD+R disc. After that, the backup job
was cancelled with this error message:

...
13-mar 09:36 cordoba-sd: Remaining free space 4,689,887,232 on
"DVD-Writer" (/dev/hdc)
13-mar 09:36 cordoba-sd: BackupCordoba.2006-03-13_09.25.31 Fatal error:
block.c:804 Unable to open device next part "DVD-Writer" (/dev/hdc):
ERR=Could not mount device "DVD-Writer" (/dev/hdc).


Yes, that's the same thing I see.

I consider this a bug in Bacula, probably the SD, and I would recommend 
to report this via bugs.bacula.org.


Unfortunately, I don't think there will be much work done on DVD writing 
in the near future...


Arno

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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Restore failure due to Postgress error: out of memory

2006-03-10 Thread Andreas Freyvogel
hello everyone,

I am trying to do a restoration however when it runs to build the tree it
gives me an "out of memory" error and fails.

system info:
-
FreeBSD 5.4-RELEASE
Postgres 8.0.3
real memory  = 1610350592 (1535 MB)

Postgres conf:
--
# - Memory -

shared_buffers  = 49152 # min 16, at least
max_connections*2, 8KB each
work_mem= 262144# min 64, size in KB
maintenance_work_mem= 262144# min 1024, size in KB
max_stack_depth = 8192  # min 100, size in KB


Any ideas as what I may be doing wrong or what I might be able to change in
order for this to work?

Thank you,
-Andreas


Andreas Freyvogel |
System Administrator  |  "To do is to be." -- Plato
  |
Uniserve Communications Corp. |  "To be is to do." -- Kant
direct: 604.647.0602  |
cell:   604.308.2497  |  "Do be do be do." -- Sinatra
Fax:604-687-8130  |
-



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Re: Bacula RPMs without gconsole (patch)

2006-03-10 Thread Ryan Novosielski
It would not appear as if this patch patches the specfile I was 
expecting it to patch. What specfile version is this patch for? I tried 
it against 1.38.5-2 which supports RHEL4, but apparently this patch does 
not work with it. I could adapt it I suppose, but I'm curious what the 
base was.


 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | | Ryan Novosielski - User Support Spec. III
|$&| |__| |  | |__/ | \| _| | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.| IST/AST - NJMS Medical Science Bldg - C630 




Mindaugas wrote:

  - I think "BuildRequires: glibc-devel" can be removed because anyway
on both RHEL3 and RHEL4 gcc requires glibc-devel to be installed.
Why to make .spec file too complicated?
  

That is possible but without knowing the requires on all possible cases
I prefer to explicitly state the requirements to build.



  OK. And I added also gcc-g++ to BuildRequires. I already explained that
without it installed rpmbuild fails with non obvious error messages.

  

  - What for is "BuildRequires: ORBit-devel" for rh7? Since anyway later
  

it
  

is noted that now gconsole is only available for Gnome2?
  

Kern can perhaps comment, but without double-checking I believe the file
daemon may use CORBA technology and requires ORBit. If not it was
probably an oversight to leave it in.



  Kern already commented and I dropped this line from .spec file altogether.
rh7 build now implies gconsole=0.

  

  - Current patch reverts default build behaviour to not build gconsole.
To retain current behaviour maybe nobuild_gconsole define would be
  

more
  

reasonable.
  

Yes, from a standpoint of building packages for distribution a nobuild
default would be better.



  Done. Please apply the attached patch.

  To build without gconsole define nobuild_gconsole in rpmbuild. For the
test successfully
built bacula without gconsole on centos4-i386 and centos4-x86_64.

  Mindaugas
  




---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Database selection

2006-03-10 Thread DAve

Arno Lehmann wrote:

Hi,

On 3/10/2006 6:18 PM, DAve wrote:

Good morning,
So I guess my question really is, "is there a preferred database 
backend for Bacula?".


Depending on who you ask, I think ;-)


I could have expected that, but I had to ask...



System will be a fresh install from FreeBSD ports (normally I use src 
but I'm just too dang busy right now).


- FreeBSD 5
- SATA RAID 1


Make this a RAID 5 or 6, preferrably with a "real" RAID controller, more 
preferrable with a stand-alone system - losing a TB of customers data 
due to hard disk breakdown is definitely no fun. 


Currently I can only do mirrors. But since it took me over a year to get 
the equipment I have, I'll not turn it down.


> Also, make sure you
> have the ability to produce and handle off-site copies of that data.

One thing at a time, first I'd just like to get backups running. 
Currently I have Bacula saving my websites and scripts pushing A's data 
to B, and B's data to C, and C's data to A and so on. I setup what I 
have just for SMA sake. (I had previously heard about companies that 
won't invest in backups because it doesn't "make money", I have found 
myself in one such company.)



- 1gb private LAN
- File storage
- Current Bacula storage is exceeding 100mb on two independant Bacula 
installs

- Projected storage requirements will be 500mb


Really MB? then it doesn't sound like you will notice any difference 
between even an out-of-the-box database setup and a carefully tuned 
database with the best choice for Bacula...


DOH! that should be 100gb backup file size. The data is scattered across 
all my servers throughout the local and remote NOCs. I could go 
calculate the exact dataset size I could generate today, but I'm lazy ;^)





(if we begin offering client backups, this will go past 1tb quickly)


If you think about 1 TB per full backup run as opposed to one TB overall 
storage for all backup generations that's definitely different...




1TB of data per full backup. But that will be entirely different 
equipment, I'll be posting again when and if that time comes.


Thanks,

DAve

--
This message was checked by forty monkeys and
found to not contain any SPAM whatsoever.

Your monkeys may vary


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device is BLOCKED waiting for appendable media

2006-03-10 Thread Nick Smith
>
> One very important question: Have you run the btape tests, and did they
> report anything you didn't understand or even errors?
>
no i hadnt run the tests.

> >
> > i even tried putting the "real" device name in the config file "st0"
> > and that doesnt work either.
>
> I don't understand that sentence...
meaning in the configs it had /dev/nst0 and my drive is /dev/st0, even
though they both worked for some reason, i have it set to /dev/st0
now.

>
> > also when i try to label the tape i get:
> >
> > Enter new Volume name: BackupSet1
> > Automatically selected Pool: Default
> > Connecting to Storage daemon DDS-3 at mail:9103 ...
> > Sending relabel command from "BackupSet01" to "BackupSet1" ...
>
> Hmm. This looks like you issued a 'relabel' command, not 'label'.
well it wouldnt let me re-issue the command, so i did the relabel
command just to get the printed error again, it was the same on both
commands.

>
> > block.c:782 Read error at file:blk 0:0 on device /dev/nst0.
> > ERR=Input/output error.
>
> This looks like your SD can't use the tape drive. Start (again) with
> btape and tell us what the tests report.
>
> > 3000 OK label. Volume=BackupSet1 Device=/dev/nst0
> > Catalog record for Volume "BackupSet1", Slot 0  successfully created.
> > Old volume "BackupSet01" deleted from catalog.
> > Requesting to mount DDS-3 ...
> > 3001 OK mount. Device=/dev/nst0
> >
> > this has happened on two brand new tapes. it has an error, but then
> > goes along to actually complete the label, is this ok? is it just that
> > the tape doesnt spin up fast enough or something?
>
> No, there's no such thing as far as I know. Usually, when a labeled tape
> is mounted, you should see the volume name in the message. What did work
> in your output above is the catalog action, but that alone is not enough.
ok

>
> > ive googled about this and came up with a couple things related to
> > labeling the tape but none of them seemed to work.  do any of you have
> > any other suggestions on how to track down this problem?
>
> Yes, btape testing...
i have errors on the testingwhere do i go from here?

This is an *essential* feature ...

10-Mar 14:54 btape: btape Error: block.c:552 Write error at 0:791 on
device /dev/st0. ERR=Input/output error.
10-Mar 14:54 btape: btape Error: Backspace file at EOT failed.
ERR=Input/output error
btape: btape.c:782 Error writing block to device.

after reading the documentation a little closer, i did do the following:

become super user
mt -f /dev/st0 rewind
mt -f /dev/st0 stoptions buffer-writes async-writes read-ahead
mt -f /dev/st0 defblksize 0
mt -f /dev/st0 defcompression 1

and re-ran the tests and got the same result.

could i have two bad tapes in a row? is there anything else it could be?

thanks for the help

Nick


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread david robert
thanks for your help once i use the the Offline On Unmount  my script would be like this is it correct     #!/bin/sh   /usr/bin/bconsole -c /etc/bacula/bconsole.conf < unmount storage=DLT END_OF_DATA   # the following is a shell command /etc/bacula/scripts/delete_catalog_backup   exit 0     I have one more question i am using one version of bacula server and i need to install the same version of clients or i can install latest version of clients alos for older version of bacula server.  Martin Simmons <[EMAIL PROTECTED]> wrote:  > On Fri, 10 Mar 2006 14:03:29 + (GMT), david robert <[EMAIL PROTECTED]>said:> > my script is like below now>
 > #!/bin/sh> /usr/bin/bconsole -c /etc/bacula/bconsole.conf <> unmount storage=DLT> END_OF_DATA> # the following is a shell command> /etc/bacula/scripts/delete_catalog_backup> ### export TAPE=nst0> export TAPE=/dev/nst0> mt rewind> mt offline> exit 0> > this is ok or i need to completely avoid the mt commnd using Offline On> Unmount i didn't get you where i can use this if possible show me in script> > thanks for your helpAh, sorry, I forgot to add that Offline On Unmount is an option in the Devicesection of bacula-sd.conf (see).If caused bacula to send the equivalent of "mt offline" when you use theunmount command. I'm sure it rewinds as well, so if that works then you canremove all the mt lines in the
 script.__Martin> > > Martin Simmons <[EMAIL PROTECTED]>wrote:> > On Fri, 10 Mar 2006 11:16:34 + (GMT), david robert said:> >> > i am sending here my bacula director,storage and tape drive permissions> >> > bacula 1280 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape> > bacula 1281 1280 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape> > bacula 1283 1281 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c /etc/bacula/bacula-sd.conf -u bacula -g tape> > bacula 1412 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula> > bacula 1413 1412 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula> > bacula 1414 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.con
 f -u
 bacula -g bacula> > bacula 1415 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c /etc/bacula/bacula-dir.conf -u bacula -g bacula> >> > nst0 permissions as follows> >> > crw-rw 1 root tape 9, 128 2005-02-26 06:38 nst0> > The bacula-dir (which runs the RunAfterJob script) is running as group> "bacula" but the tape can only be accessed by group "tape". The bacula-sd is> running as group "tape" so that is OK.> > You could try using the "Offline On Unmount" to make the bconsole's unmount> command eject the tape, which might remove the need for mt.> > __Martin---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding
 territory!http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642___Bacula-users mailing listBacula-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/bacula-users
		Yahoo! Messenger 
 NEW - crystal clear PC to PC 
calling worldwide with voicemail 


Re: [Bacula-users] wrong date in firstwritten field (1970-01-01 01:00:00)

2006-03-10 Thread Ralf Gross
Erich Prinz schrieb:
> I've noticed the date/time stamp reporting wrong too, though in  
> restoring the files, it never poses any problems.

I haven't tried to restore files from this volume, but I expect this
wouldn't be a problem.
 
> The other thing to note about volumes (and for us control freak  
> types, this is a bit awkward) per the Bacula documentation it's best  
> to let Bacula decide what volumes to use. Just label the media so  
> it's easy to identify.

Basically that's ok. Nevertheless, if bacula creates a wrong
timestamp, the decision which volume will be used could be wrong. 
 
> In using other systems, I've always tied the media name to a specific  
> day of the week - it works - especially with clients who don't need  
> to become sys admins to figure the thing out.

I only perform full backups on weekend, that makes things a bit easier
;)

Ralf


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device is BLOCKED waiting for appendable media

2006-03-10 Thread Arno Lehmann

Hello,

On 3/10/2006 9:06 PM, Nick Smith wrote:

One very important question: Have you run the btape tests, and did they
report anything you didn't understand or even errors?



no i hadnt run the tests.

...

Yes, btape testing...


i have errors on the testingwhere do i go from here?

This is an *essential* feature ...

10-Mar 14:54 btape: btape Error: block.c:552 Write error at 0:791 on
device /dev/st0. ERR=Input/output error.
10-Mar 14:54 btape: btape Error: Backspace file at EOT failed.
ERR=Input/output error
btape: btape.c:782 Error writing block to device.


You should try disabling the BSF at EOM setting if it's enabled now.
Also, "Backward Space File" and "Backward Space Record" might not work 
with your hardware / driver, so you might try to run the tests without 
those.



after reading the documentation a little closer, i did do the following:

become super user
mt -f /dev/st0 rewind
mt -f /dev/st0 stoptions buffer-writes async-writes read-ahead
mt -f /dev/st0 defblksize 0
mt -f /dev/st0 defcompression 1


These will probably never help with tape positioning problems.


and re-ran the tests and got the same result.

could i have two bad tapes in a row? is there anything else it could be?


It might help us if you posted what OS and hardware you use and also the 
device setup for the SD. It's quite possible that someone else has that 
combination running.


Arno


thanks for the help

Nick



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


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


RE: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Lee, Raymond
I set AlwaysOpen = yes for my devices per the Bacula documentation
because I didn't want the drive to have to rewind and reposition
everytime in between jobs.

Setting AlwaysOpen = no does allow me to run the mt commands while the
SD is running.  However, when I try to manually mount the drive in
bconsole, I run into the same problem.  On the server console, I see the
following:

Mar 10 13:59:52 arl-fratm-bacula scsi: WARNING:
/[EMAIL PROTECTED],2000/[EMAIL PROTECTED],1/[EMAIL PROTECTED],0 (st23):
Mar 10 13:59:52 arl-fratm-baculaError for Command: rezero/rewind
Error Level: Fatal
Mar 10 13:59:52 arl-fratm-bacula scsi:  Requested Block: 0
Error Block: 0
Mar 10 13:59:52 arl-fratm-bacula scsi:  Vendor: QUANTUM
Serial Number:  R
Mar 10 13:59:52 arl-fratm-bacula scsi:  Sense Key: Not Ready
Mar 10 13:59:52 arl-fratm-bacula scsi:  ASC: 0x3a (medium not present),
ASCQ: 0x0, FRU: 0x0


That repeats until the timeout period expires.  Is this just an
annoyance that I have to live with?

Ray

-Original Message-
From: Martin Simmons [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 10, 2006 12:40 PM
To: Lee, Raymond
Cc: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] tape will not eject after finishing backup


> On Fri, 10 Mar 2006 10:14:04 -0600, "Lee, Raymond"
<[EMAIL PROTECTED]> said:
> 
> I've always had a problem with mtx-changer regarding this issue.  Even
> when I'm running the SD as root, my tape drives always show "Device
> busy" when I do an 'mt -f /dev/rmt/0cbn status'.  The drives are
always
> busy while bacula-sd is running, with or without tapes in the drives
and
> not performing any backups.  
> 
> Therefore, I'm always stuck waiting 180 seconds for the timeout when I
> want to load a tape.  The tapes load just fine, but the drive won't
ever
> settle down and show "ONLINE" ("0x0" in my case) while the SD is
> running.  I've changed the timeout to 60 seconds to ease the pain.
> 
> This problem affects other parts of Bacula that request the drive
> status.  When I first start the SD, I have to wait for the timeout
> period for both drives before I can do anything.  Does Bacula put some
> kind of lock or hog resources of the tape drives that prevents showing
> the tape status correctly?  When I was running Legato Networker, I was
> always able to do mt -f /dev/rmt/0cbn status while Legato was running
> and the drive was idle.
> 
> My setup is:
> Solaris 9
> L25 Autochanger with two SDLT 320 drives
> Bacula 1.38.5

Sorry, I don't know much about autochangers, but it sounds like Bacula
is
keeping the drive open.  Possibly setting

Always Open = no

for the bacula-sd Device resource will allow mt to work.  See the
manual.

__Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Device is BLOCKED waiting for appendable media

2006-03-10 Thread Nick Smith
On 3/10/06, Arno Lehmann <[EMAIL PROTECTED]> wrote:
> Hello,
>
> On 3/10/2006 9:06 PM, Nick Smith wrote:
> >>One very important question: Have you run the btape tests, and did they
> >>report anything you didn't understand or even errors?
> >>
> >
> > no i hadnt run the tests.
> ...
> >>Yes, btape testing...
> >
> > i have errors on the testingwhere do i go from here?
> >
> > This is an *essential* feature ...
> >
> > 10-Mar 14:54 btape: btape Error: block.c:552 Write error at 0:791 on
> > device /dev/st0. ERR=Input/output error.
> > 10-Mar 14:54 btape: btape Error: Backspace file at EOT failed.
> > ERR=Input/output error
> > btape: btape.c:782 Error writing block to device.
>
> You should try disabling the BSF at EOM setting if it's enabled now.
how do i do that?^^^
> Also, "Backward Space File" and "Backward Space Record" might not work
> with your hardware / driver, so you might try to run the tests without
> those.
again how do i do that? i was just running:

btape -c /etc/bacula/bacula-sd.conf /dev/st0

> > after reading the documentation a little closer, i did do the following:
> >
> > become super user
> > mt -f /dev/st0 rewind
> > mt -f /dev/st0 stoptions buffer-writes async-writes read-ahead
> > mt -f /dev/st0 defblksize 0
> > mt -f /dev/st0 defcompression 1
>
> These will probably never help with tape positioning problems.
>
ok, was hoping.

> > and re-ran the tests and got the same result.
> >
> > could i have two bad tapes in a row? is there anything else it could be?
>
> It might help us if you posted what OS and hardware you use and also the
> device setup for the SD. It's quite possible that someone else has that
> combination running.
>
yeah i should have posted that earlier:
02:03.0 SCSI storage controller: Adaptec AHA-2940U/UW/D / AIC-7881U

scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 5.2.6/5.2.0
   
  Vendor: HPModel: C1537ARev: L706
  Type:   Sequential-Access  ANSI SCSI revision: 02
st: Version 20050501, fixed bufsize 32768, s/g segs 256
Attached scsi tape st0 at scsi0, channel 0, id 5, lun 0
st0: try direct i/o: yes (alignment 512 B), max page reachable by HBA 1048575
Attached scsi generic sg0 at scsi0, channel 0, id 5, lun 0,  type 1

its a DDS3 tape device.

im running gentoo linux with a 2.6.13 kernel.
the SD is on /dev/st0.

thanks for the help.


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 20:42:58 + (GMT), david robert <[EMAIL 
> PROTECTED]> said:
> 
> thanks for your help once i use the the Offline On Unmount my script would
> be like this is it correct
>
>   #!/bin/sh
>/usr/bin/bconsole -c /etc/bacula/bconsole.conf <  unmount storage=DLT
>  END_OF_DATA
># the following is a shell command
>  /etc/bacula/scripts/delete_catalog_backup
>exit 0

Yes, correct.


>   I have one more question i am using one version of bacula server and i
>   need to install the same version of clients or i can install latest
>   version of clients alos for older version of bacula server.

Install the same version, because sometimes the protocol between the client
and server changes.

__Martin


>   
> 
> Martin Simmons <[EMAIL PROTECTED]> wrote:
>   > On Fri, 10 Mar 2006 14:03:29 + (GMT), david robert said:
> > 
> > my script is like below now
> > 
> > #!/bin/sh
> > /usr/bin/bconsole -c /etc/bacula/bconsole.conf <> unmount storage=DLT
> > END_OF_DATA
> > # the following is a shell command
> > /etc/bacula/scripts/delete_catalog_backup
> > ### export TAPE=nst0
> > export TAPE=/dev/nst0
> > mt rewind
> > mt offline
> > exit 0
> > 
> > this is ok or i need to completely avoid the mt commnd using Offline On
> > Unmount i didn't get you where i can use this if possible show me in script
> > 
> > thanks for your help
> 
> Ah, sorry, I forgot to add that Offline On Unmount is an option in the Device
> section of bacula-sd.conf (see
> ).
> 
> If caused bacula to send the equivalent of "mt offline" when you use the
> unmount command. I'm sure it rewinds as well, so if that works then you can
> remove all the mt lines in the script.
> 
> __Martin
> 
> 
> > 
> > 
> > Martin Simmons wrote:
> > > On Fri, 10 Mar 2006 11:16:34 + (GMT), david robert said:
> > >
> > > i am sending here my bacula director,storage and tape drive permissions
> > >
> > > bacula 1280 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c 
> > > /etc/bacula/bacula-sd.conf -u bacula -g tape
> > > bacula 1281 1280 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c 
> > > /etc/bacula/bacula-sd.conf -u bacula -g tape
> > > bacula 1283 1281 0 Mar08 ? 00:00:00 /usr/sbin/bacula-sd -c 
> > > /etc/bacula/bacula-sd.conf -u bacula -g tape
> > > bacula 1412 1 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> > > bacula 1413 1412 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> > > bacula 1414 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> > > bacula 1415 1413 0 Mar08 ? 00:00:00 /usr/sbin/bacula-dir -c 
> > > /etc/bacula/bacula-dir.conf -u bacula -g bacula
> > >
> > > nst0 permissions as follows
> > >
> > > crw-rw 1 root tape 9, 128 2005-02-26 06:38 nst0
> > 
> > The bacula-dir (which runs the RunAfterJob script) is running as group
> > "bacula" but the tape can only be accessed by group "tape". The bacula-sd is
> > running as group "tape" so that is OK.
> > 
> > You could try using the "Offline On Unmount" to make the bconsole's unmount
> > command eject the tape, which might remove the need for mt.
> > 
> > __Martin


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] tape will not eject after finishing backup

2006-03-10 Thread Martin Simmons
> On Fri, 10 Mar 2006 14:55:22 -0600, "Lee, Raymond" <[EMAIL PROTECTED]> 
> said:
> 
> I set AlwaysOpen = yes for my devices per the Bacula documentation
> because I didn't want the drive to have to rewind and reposition
> everytime in between jobs.

Yes, that could be a problem.


> Setting AlwaysOpen = no does allow me to run the mt commands while the
> SD is running.  However, when I try to manually mount the drive in
> bconsole, I run into the same problem.  On the server console, I see the
> following:
> 
> Mar 10 13:59:52 arl-fratm-bacula scsi: WARNING:
> /[EMAIL PROTECTED],2000/[EMAIL PROTECTED],1/[EMAIL PROTECTED],0 (st23):
> Mar 10 13:59:52 arl-fratm-baculaError for Command: rezero/rewind
> Error Level: Fatal
> Mar 10 13:59:52 arl-fratm-bacula scsi:  Requested Block: 0
> Error Block: 0
> Mar 10 13:59:52 arl-fratm-bacula scsi:  Vendor: QUANTUM
> Serial Number:  R
> Mar 10 13:59:52 arl-fratm-bacula scsi:  Sense Key: Not Ready
> Mar 10 13:59:52 arl-fratm-bacula scsi:  ASC: 0x3a (medium not present),
> ASCQ: 0x0, FRU: 0x0
> 
> 
> That repeats until the timeout period expires.  Is this just an
> annoyance that I have to live with?

Does the drive have a tape loaded at this point?  The error suggests it
doesn't.

With a single drive, I wouldn't expect to do mount until the tape is in the
drive.  It could be more complicated with an autochanger...unless Bacula
should be loading a tape automatically (though possibly it would be the wrong
tape).

__Martin


> -Original Message-
> From: Martin Simmons [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 10, 2006 12:40 PM
> To: Lee, Raymond
> Cc: bacula-users@lists.sourceforge.net
> Subject: Re: [Bacula-users] tape will not eject after finishing backup
> 
> 
> On Fri, 10 Mar 2006 10:14:04 -0600, "Lee, Raymond"
> <[EMAIL PROTECTED]> said:
> > 
> > I've always had a problem with mtx-changer regarding this issue.  Even
> > when I'm running the SD as root, my tape drives always show "Device
> > busy" when I do an 'mt -f /dev/rmt/0cbn status'.  The drives are
> always
> > busy while bacula-sd is running, with or without tapes in the drives
> and
> > not performing any backups.  
> > 
> > Therefore, I'm always stuck waiting 180 seconds for the timeout when I
> > want to load a tape.  The tapes load just fine, but the drive won't
> ever
> > settle down and show "ONLINE" ("0x0" in my case) while the SD is
> > running.  I've changed the timeout to 60 seconds to ease the pain.
> > 
> > This problem affects other parts of Bacula that request the drive
> > status.  When I first start the SD, I have to wait for the timeout
> > period for both drives before I can do anything.  Does Bacula put some
> > kind of lock or hog resources of the tape drives that prevents showing
> > the tape status correctly?  When I was running Legato Networker, I was
> > always able to do mt -f /dev/rmt/0cbn status while Legato was running
> > and the drive was idle.
> > 
> > My setup is:
> > Solaris 9
> > L25 Autochanger with two SDLT 320 drives
> > Bacula 1.38.5
> 
> Sorry, I don't know much about autochangers, but it sounds like Bacula
> is
> keeping the drive open.  Possibly setting
> 
> Always Open = no
> 
> for the bacula-sd Device resource will allow mt to work.  See the
> manual.
> 
> __Martin
> 


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] New Bacula Install

2006-03-10 Thread Kern Sibbald
On Thursday 09 March 2006 23:49, Matthew Feinberg wrote:
> Hey All,
>
> My name is Matthew Feinberg and I am getting ready to start a 150 client
> Bacula implementation. I've spent the last week or so testing
> Bacula on a small configuration and it works great.. Kudos to everyone
> developing Bacula.
>
> To all the Bacula veterans: Before I get started is there any advice you
> can provide or traps I should look out for?

Read the chapter entitled "Critical Items to Implement before going 
Production".  That should give you a good idea ...

>
> =
> Matthew Feinberg  [EMAIL PROTECTED]
>http://www.bizwala.net
>
>
>
>
> ---
> This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> that extends applications into web and mobile media. Attend the live
> webcast and join the prime developer group breaking into this new coding
> territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] having to manually load tapes

2006-03-10 Thread Kel Raywood

On Fri, 10 Mar 2006, Beren Gamble wrote:
Any idea why this is happening? - I have to manually load the tape 
using mtx-changer.

*m
10-Mar 16:57 backup2-sd: 3301 Issuing autochanger "loaded drive 0" command.
10-Mar 16:57 backup2-sd: 3302 Autochanger "loaded drive 0", result: nothing 
loaded.
10-Mar 16:57 backup2-sd: 3301 Issuing autochanger "loaded drive 0" command.
10-Mar 16:57 backup2-sd: 3302 Autochanger "loaded drive 0", result: nothing 
loaded.
10-Mar 16:57 backup2-sd: Please mount Volume "000147L2" on Storage Device 
"ULTRIUM" (/dev/st0) for Job GISWEB1-Daily.2006-03-10_16.57.04
...


Are you using a multidrive changer and running two or more concurrent 
jobs with "Prefer Mounted Volumes = no" ?  If so, see


http://bugs.bacula.org/bug_view_advanced_page.php?bug_id=543

--
Kelvin Raywood
TRIUMF/UBC Positron-Emission Tomography
Vancouver, Canada



---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users