[Bacula-users] Manual ejection of tape confuses bacula

2006-09-27 Thread Sarath Jayewardena
Hi, I am experimenting to see whether bacula would be a good system for me to backup our department's servers. I am running bacula director and storage daemon on a Debian (sarge) machine which has a scsi DLT tape drive attached to it. The version of bacula is 1.36.2. It looks promising, except for

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-26 Thread Alan Brown
On Mon, 25 Sep 2006, Kern Sibbald wrote: >> Kern, is it possible to insert some sanity checks when starting jobs to >> ensure the tape is positioned where bacula thinks it should be? > > It is possible on most systems to do an ioctl(). I'm considering it, but the > problem is that it is not alway

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-25 Thread Sarath Jayewardena
On Mon, 25 Sep 2006, Alan Brown wrote: > On Fri, 22 Sep 2006, Sarath Jayewardena wrote: > > > How about if I had not started a new > > backup after re-inserting the tape, yet? > > You would probably be ok. > > > Will an unmount/mount before > > running any jobs make bacula accept the tape? > >

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-25 Thread Kern Sibbald
On Monday 25 September 2006 15:37, Alan Brown wrote: > On Fri, 22 Sep 2006, Sarath Jayewardena wrote: > > > How about if I had not started a new > > backup after re-inserting the tape, yet? > > You would probably be ok. > > > Will an unmount/mount before > > running any jobs make bacula accept t

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-25 Thread Alan Brown
On Fri, 22 Sep 2006, Sarath Jayewardena wrote: > How about if I had not started a new > backup after re-inserting the tape, yet? You would probably be ok. > Will an unmount/mount before > running any jobs make bacula accept the tape? Probably. The safest action is to NEVER insert a new tape be

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-22 Thread Kern Sibbald
On Friday 22 September 2006 23:53, Sarath Jayewardena wrote: > > On Fri, 22 Sep 2006, Kern Sibbald wrote: > > > Unfortunately, you are out of luck. You did the unmount/mount *after* you > > ejected the tape, reloaded it in the drive, and started another job, which > > started writing on the *b

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-22 Thread Sarath Jayewardena
On Fri, 22 Sep 2006, Kern Sibbald wrote: > Unfortunately, you are out of luck. You did the unmount/mount *after* you > ejected the tape, reloaded it in the drive, and started another job, which > started writing on the *beginning* of the tape rather than appending to it. > > The simplest sol

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-22 Thread Kern Sibbald
Unfortunately, you are out of luck. You did the unmount/mount *after* you ejected the tape, reloaded it in the drive, and started another job, which started writing on the *beginning* of the tape rather than appending to it. The simplest solution is to stop and restart the SD (probably not nec

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-22 Thread Ryan Novosielski
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 What I do is AlwaysOpen = no, AutomaticMount = yes. I think this does what you're looking for. Sarath Jayewardena wrote: > To demonstrate the problem with manual ejection of tape, this is what > I did: > > - start with a fresh database > - start

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-22 Thread Sarath Jayewardena
To demonstrate the problem with manual ejection of tape, this is what I did: - start with a fresh database - start bconsole - add a volume to the Default pool - run two backup jobs - quit bconsole - * manually eject tape without unmounting - * re-insert tape - start bconsole - wi

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Kern Sibbald
On Thursday 21 September 2006 19:08, Sarath Jayewardena wrote: > Hi, > > I am experimenting to see whether bacula would be a good system for me to > backup our department's servers. I am running bacula director and storage > daemon on a Debian (sarge) machine which has a scsi DLT tape drive > atta

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Michael Brennen
On Thursday 21 September 2006 01:01 pm, Sarath Jayewardena wrote: > On Thu, 21 Sep 2006, Michael Brennen wrote: > > In your described case it might well be as simple as mounting the drive > > with bconsole if you manually eject/reinsert it. > > Thank you all you nice people offering help. This is

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Sarath Jayewardena
On Thu, 21 Sep 2006, Michael Brennen wrote: > On Thursday 21 September 2006 12:08 pm, Sarath Jayewardena wrote: > > > I am experimenting to see whether bacula would be a good system for me to > > backup our department's servers. I am running bacula director and storage > > daemon on a Debian (sa

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Michael Brennen
On Thursday 21 September 2006 12:08 pm, Sarath Jayewardena wrote: > I am experimenting to see whether bacula would be a good system for me to > backup our department's servers. I am running bacula director and storage > daemon on a Debian (sarge) machine which has a scsi DLT tape drive > attached

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Dan Langille
On 21 Sep 2006 at 10:35, Sarath Jayewardena wrote: > > > On Thu, 21 Sep 2006, Dan Langille wrote: > > > On 21 Sep 2006 at 10:08, Sarath Jayewardena wrote: > > > > > Hi, > > > > > > I am experimenting to see whether bacula would be a good system for me to > > > backup our department's servers.

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Sarath Jayewardena
Yes, I have "AutomaticMount = yes;". In fact, this is the device definition in bacula-sd.conf: Device { Name = DLT Media Type = DLT Archive Device = /dev/nst0 AutomaticMount = yes; # when device opened, read it AlwaysOpen = yes; RemovableMedia = yes; RandomAccess = no;

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Sarath Jayewardena
On Thu, 21 Sep 2006, Dan Langille wrote: > On 21 Sep 2006 at 10:08, Sarath Jayewardena wrote: > > > Hi, > > > > I am experimenting to see whether bacula would be a good system for me to > > backup our department's servers. I am running bacula director and storage > > daemon on a Debian (sarge)

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Fred Dussault
HI there, do you have the "AutomaticMount = yes;" directive set in the device resource (for your tape drive) in your bacula-sd.conf file? Fred > Hi, > > I am experimenting to see whether bacula would be a good system for me to > backup our department's servers. I am running bacula director

Re: [Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Dan Langille
On 21 Sep 2006 at 10:08, Sarath Jayewardena wrote: > Hi, > > I am experimenting to see whether bacula would be a good system for me to > backup our department's servers. I am running bacula director and storage > daemon on a Debian (sarge) machine which has a scsi DLT tape drive > attached to it.

[Bacula-users] Manual ejection of tape confuses bacula

2006-09-21 Thread Sarath Jayewardena
Hi, I am experimenting to see whether bacula would be a good system for me to backup our department's servers. I am running bacula director and storage daemon on a Debian (sarge) machine which has a scsi DLT tape drive attached to it. The version of bacula is 1.36.2. It looks promising, except for