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

2006-03-14 Thread Birger Blixt
On 2006-03-10 21:55, Lee, Raymond wrote: 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,

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

2006-03-10 Thread Martin Simmons
ed 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

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 >

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

2006-03-10 Thread Lee, Raymond
acula-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,

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

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

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/delet

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

2006-03-10 Thread Lee, Raymond
-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:

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

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 > ba

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

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/sb

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 co

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

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 ac

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 dr

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 a

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

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;

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}   -

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

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 L