[Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread jay
Hello,

I'm having a weird problem trying to restore /etc/hosts on a RHEL4 box.  I'm
testing Bacula 2.2.4 on this box, with a MySQL 4 backend.  Everything works
great so far including my first test restores.  However, today I tried to do
a restore of /etc/hosts.  I enter file selection mode, cd /etc, mark hosts,
then do an estimates and it says 2 files are marked for restoration.  Ok,
thats weird.  When I finish the restore, no files are restored, except the
etc/sysconfig/networking/profiles/default directory structure.  Now, on the
real filesystem, there is a hosts file in that directory, as well as
/etc/hosts.  But they are not symlinked.  It seems like Bacula is getting
confused about which hosts file I actually want restored.  It happens if I
set the restore client to the same machine, or a different one.

Perhaps this is just my inexperience with the software, but can someone
offer a suggestion as to what the problem might be?  Maybe someone else can
confirm this happens with them?  Thanks

Jason
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread jay
Thanks Chris and Arno,

The files are indeed hard linked

[EMAIL PROTECTED] ~]# stat /etc/hosts
  File: `/etc/hosts'
  Size: 591 Blocks: 16 IO Block: 4096   regular file
Device: 802h/2050d  Inode: 33011   Links: 2
Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
Access: 2007-10-01 13:52:26.0 -0500
Modify: 2007-07-30 09:49:55.0 -0500
Change: 2007-07-30 09:49:55.0 -0500

[EMAIL PROTECTED] ~]# stat /etc/sysconfig/networking/profiles/default/hosts
  File: `/etc/sysconfig/networking/profiles/default/hosts'
  Size: 591 Blocks: 16 IO Block: 4096   regular file
Device: 802h/2050d  Inode: 33011   Links: 2
Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
Access: 2007-10-01 13:52:26.0 -0500
Modify: 2007-07-30 09:49:55.0 -0500
Change: 2007-07-30 09:49:55.0 -0500
[EMAIL PROTECTED] ~]#

Now that we have established that, is there a way to restore that file with
Bacula?  Or does Bacula not handle hard links?

Thanks for the quick responses

Jason


On 10/1/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 01.10.2007 20:05,, jay wrote::
> > Hello,
> >
> > I'm having a weird problem trying to restore /etc/hosts on a RHEL4 box.
> > I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.
> > Everything works great so far including my first test restores.
> > However, today I tried to do a restore of /etc/hosts.  I enter file
> > selection mode, cd /etc, mark hosts, then do an estimates and it says 2
> > files are marked for restoration.  Ok, thats weird.
>
> I'm not sure there, but I see two possible reasons for this: The
> second file could either be the /etc directory, or...
>
> >  When I finish the
> > restore, no files are restored, except the
> > etc/sysconfig/networking/profiles/default directory structure.  Now, on
> > the real filesystem, there is a hosts file in that directory, as well as
> > /etc/hosts.  But they are not symlinked.
>
> ... the two files are not symlinked but hard links to only one set of
> data.
>
> >  It seems like Bacula is
> > getting confused about which hosts file I actually want restored.  It
> > happens if I set the restore client to the same machine, or a different
> > one.
>
> I think that, in case these files are hard links, Bacula should
> restore the one you explicitly selected, i.e. /etc/hosts. What it
> should do the other hard links is something *I* wouldn't want to decide...
>
> Arno
>
> >
> > Perhaps this is just my inexperience with the software, but can someone
> > offer a suggestion as to what the problem might be?  Maybe someone else
> > can confirm this happens with them?  Thanks
> >
> > Jason
> >
> >
> > 
> >
> >
> -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> >
> >
> > 
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Arno Lehmann
> IT-Service Lehmann
> www.its-lehmann.de
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread jay
I don't have a problem doing this here.  But if I am restoring 20,000 files
and some of those are hard linked, which I might or might not know about,
then it might be an issue.  I think some type of warning would've been
really nice in the restore email.  Maybe?

Jason

On 10/1/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 01.10.2007 20:57,, jay wrote::
> > Thanks Chris and Arno,
> >
> > The files are indeed hard linked
> >
> > [EMAIL PROTECTED] ~]# stat /etc/hosts
> >   File: `/etc/hosts'
> >   Size: 591 Blocks: 16 IO Block: 4096   regular file
> > Device: 802h/2050d  Inode: 33011   Links: 2
> > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
> > Access: 2007-10-01 13:52:26.0 -0500
> > Modify: 2007-07-30 09:49:55.0 -0500
> > Change: 2007-07-30 09:49:55.0 -0500
> >
> > [EMAIL PROTECTED] ~]# stat /etc/sysconfig/networking/profiles/default/hosts
> >   File: `/etc/sysconfig/networking/profiles/default/hosts'
> >   Size: 591 Blocks: 16 IO Block: 4096   regular file
> > Device: 802h/2050d  Inode: 33011   Links: 2
> > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid: (0/root)
> > Access: 2007-10-01 13:52:26.0 -0500
> > Modify: 2007-07-30 09:49:55.0 -0500
> > Change: 2007-07-30 09:49:55.0 -0500
> > [EMAIL PROTECTED] ~]#
> >
> > Now that we have established that, is there a way to restore that file
> > with Bacula?  Or does Bacula not handle hard links?
>
> But didn't you just lear that Bacula handles hard links? ;-)
>
> Admittedly, it might handle them differently... for now, I'd suggest
> to simple rm /etc/hosts and link it to the restored copy again.
>
> Arno
>
> > Thanks for the quick responses
> >
> > Jason
> >
> >
> > On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > Hi,
> >
> > 01.10.2007 20:05,, jay wrote::
> >  > Hello,
> >  >
> >  > I'm having a weird problem trying to restore /etc/hosts on a
> > RHEL4 box.
> >  > I'm testing Bacula 2.2.4 on this box, with a MySQL 4 backend.
> >  > Everything works great so far including my first test restores.
> >  > However, today I tried to do a restore of /etc/hosts.  I enter
> file
> >  > selection mode, cd /etc, mark hosts, then do an estimates and it
> > says 2
> >  > files are marked for restoration.  Ok, thats weird.
> >
> > I'm not sure there, but I see two possible reasons for this: The
> > second file could either be the /etc directory, or...
> >
> >  >  When I finish the
> >  > restore, no files are restored, except the
> >  > etc/sysconfig/networking/profiles/default directory
> > structure.  Now, on
> >  > the real filesystem, there is a hosts file in that directory, as
> > well as
> >  > /etc/hosts.  But they are not symlinked.
> >
> > ... the two files are not symlinked but hard links to only one set
> of
> > data.
> >
> >  >  It seems like Bacula is
> >  > getting confused about which hosts file I actually want
> restored.  It
> >  > happens if I set the restore client to the same machine, or a
> > different
> >  > one.
> >
> > I think that, in case these files are hard links, Bacula should
> > restore the one you explicitly selected, i.e. /etc/hosts. What it
> > should do the other hard links is something *I* wouldn't want to
> > decide...
> >
> > Arno
> >
> >  >
> >  > Perhaps this is just my inexperience with the software, but can
> > someone
> >  > offer a suggestion as to what the problem might be?  Maybe
> > someone else
> >  > can confirm this happens with them?  Thanks
> >  >
> >  > Jason
> >  >
> >  >
> >  >
> >
> 
> >  >
> >  >
> >
> -
> >  > This SF.net email is sponsored by: Microsoft
> >  > Defy all challenges. Microsoft(R) Visual Studio 2005.
> >  > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> > <http://clk.atdmt.com/MRT/go/vse0120

Re: [Bacula-users] Restoring /etc/hosts on rhel4

2007-10-01 Thread jay
Yes, I saw this a few minutes ago.  Setting hardlinks = yes in my fileset
would fix this.  I'm debating what to do about this. It might be that for
/etc I don't need to worry about it.

Jason

On 10/1/07, Ryan Novosielski <[EMAIL PROTECTED]> wrote:
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> I don't know if you've checked this in the manual, but there is
> something that refers to behavior when encountering hard links in there.
>
> =R
>
> jay wrote:
> > I don't have a problem doing this here.  But if I am restoring 20,000
> > files and some of those are hard linked, which I might or might not know
> > about, then it might be an issue.  I think some type of warning would've
> > been really nice in the restore email.  Maybe?
> >
> > Jason
> >
> > On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > Hi,
> >
> > 01.10.2007 20:57,, jay wrote::
> > > Thanks Chris and Arno,
> > >
> > > The files are indeed hard linked
> > >
> > > [EMAIL PROTECTED] ~]# stat /etc/hosts
> > >   File: `/etc/hosts'
> > >   Size: 591 Blocks: 16 IO Block: 4096
> > regular file
> > > Device: 802h/2050d  Inode: 33011   Links: 2
> > > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid:
> > (0/root)
> > > Access: 2007-10-01 13:52:26.0 -0500
> > > Modify: 2007-07-30 09:49: 55.0 -0500
> > > Change: 2007-07-30 09:49:55.0 -0500
> > >
> > > [EMAIL PROTECTED] ~]# stat
> > /etc/sysconfig/networking/profiles/default/hosts
> > >   File: `/etc/sysconfig/networking/profiles/default/hosts'
> > >   Size: 591 Blocks: 16 IO Block: 4096
> > regular file
> > > Device: 802h/2050d  Inode: 33011   Links: 2
> > > Access: (0644/-rw-r--r--)  Uid: (0/root)   Gid:
> > (0/root)
> > > Access: 2007-10-01 13:52:26.0 -0500
> > > Modify: 2007-07-30 09:49:55.0 -0500
> > > Change: 2007-07-30 09:49:55.0 -0500
> > > [EMAIL PROTECTED] ~]#
> > >
> > > Now that we have established that, is there a way to restore that
> > file
> > > with Bacula?  Or does Bacula not handle hard links?
> >
> > But didn't you just lear that Bacula handles hard links? ;-)
> >
> > Admittedly, it might handle them differently... for now, I'd suggest
> > to simple rm /etc/hosts and link it to the restored copy again.
> >
> > Arno
> >
> > > Thanks for the quick responses
> > >
> > > Jason
> > >
> > >
> > > On 10/1/07, *Arno Lehmann* <[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>
> > > mailto:[EMAIL PROTECTED]>>> wrote:
> > >
> > > Hi,
> > >
> > > 01.10.2007 20:05,, jay wrote::
> > >  > Hello,
> > >  >
> > >  > I'm having a weird problem trying to restore /etc/hosts on
> a
> > > RHEL4 box.
> > >  > I'm testing Bacula 2.2.4 on this box, with a MySQL 4
> backend.
> > >  > Everything works great so far including my first test
> restores.
> > >  > However, today I tried to do a restore of /etc/hosts.  I
> > enter file
> > >  > selection mode, cd /etc, mark hosts, then do an estimates
> > and it
> > > says 2
> > >  > files are marked for restoration.  Ok, thats weird.
> > >
> > > I'm not sure there, but I see two possible reasons for this:
> The
> > > second file could either be the /etc directory, or...
> > >
> > >  >  When I finish the
> > >  > restore, no files are restored, except the
> > >  > etc/sysconfig/networking/profiles/default directory
> > > structure.  Now, on
> > >  > the real filesystem, there is a hosts file in that
> > directory, as
> > > well as
> > >  > /etc/hosts.  But they are not symlinked.
> > >
> > > ... the two files are not symlinked but hard links to only one
> > set of
> > > data.
&

Re: [Bacula-users] lsmark shows no files below the "cd"

2007-10-01 Thread jay
I see this behavior on my Bacula install

J

On 10/1/07, Thomas <[EMAIL PROTECTED]> wrote:
>
> restore mode in the bconsole:
>
> Version: 2.2.4 (14 September 2007)
>
> You are now entering file selection mode where you add (mark) and
> remove (unmark) files to be restored. No files are initially added, unless
> you used the "all" keyword on the command line.
> Enter "done" to leave this mode.
>
> cwd is: /
> $ cd /etc
> cwd is: /etc/
> $ mark hosts
> 1 file marked.
> $ lsmark
> *hosts
> $ cd /
> cwd is: /
> $ lsmark
> $ help
>CommandDescription
>======
>lsmark list the marked files in and below the cd
> $ estimate
> 83286 total files; 1 marked to be restored; 195 bytes.
> $
>
>
> can someone confirm this problem?
>
> regards
>
> Thomas
>
>
> "cd" is a abbreviation for change directory, isn't it?
> what's correct for "current directory"?
>
>
>
>
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Bacula-SD hang using IBM Ultrium 3581 Library

2007-10-23 Thread jay
Hello,

I'm having a peculiar problem with an IBM Ultrium 3581 autochanger and the
SD daemon.  I have to restart the SD daemon after I unmount a tape, or the
next job hangs and never starts.

We currently have a single LTO2 drive in the library, and are running Bacula
2.2.5 on a Redhat Enterprise Linux 4 update 5 IBM server.  I ran all the
btape tests, including the multiple tape test for autochangers, and they all
worked flawlessly.  Not a single problem or error reported.  I am able to
use the mtx script and mt successfully as well.  Mtx reports all the proper
tapes in the library, and I can mount a tape and WEOF and REWIND it using
mt.  Things look great at this point.  Next, I ran "label barcodes" and it
labeled all the tapes in the library properly.  Again, no problems.  I
decided at this point to modify the "Full OS Set" backup for our environment
and run some tests.  I can successfully run the backup the first time.  It
pulls a tape from the proper pool inside the library, backup works.  But if
I unmount the tape in bconsole, and try and run the same backup again, it
hangs.  Nothing happens.  I have waited several hours and nothing ever times
out.  I finally have to cancel the job manually.  I discovered that by
restarting bacula-sd that I can then re-run the job immediately without any
problems.

I'm not sure what could be causing this, or how to even troubleshoot.
Things seem to work great during all tests and doing a backup, Bacula just
doesn't like it when I unmount a tape manually.

Could someone offer some advice or debugging steps I could take to figure
this out?  Below is a copy of my bacula-sd.conf file.  I can post other
config files if I need to.  Thanks

Jay


 bacula-sd.conf ---

Storage {
  Name = server1-sd
  SDPort = 9103
  WorkingDirectory = "/var/lib/bacula"
  Pid Directory = "/var/run"
  Maximum Concurrent Jobs = 20
  SDAddress = 192.168.1.20
}

Director {
  Name = server1-dir
  Password = "1234"
}

Director {
  Name = server1-mon
  Password = "1234"
  Monitor = yes
}

Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /tmp
  LabelMedia = yes;
  Random Access = Yes;
  AutomaticMount = yes;
  RemovableMedia = no;
  AlwaysOpen = no;
}

Autochanger {
  Name = Autochanger
  Device = Drive-0
  Changer Device = /dev/sg1
  Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
}

Device {
  Name = Drive-0
  Drive Index = 0
  Media Type = LTO2
  Archive Device = /dev/nst0
  AutomaticMount = yes;
  AlwaysOpen = yes;
  RemovableMedia = yes;
  RandomAccess = no
  AutoChanger = yes
}

Messages {
  Name = Standard
  director = server1-dir = all
}
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula-SD hang using IBM Ultrium 3581 Library

2007-10-23 Thread jay
Thanks Blake,

You are correct, it seems when I run an unmount, the drive goes into this
state

Jobs waiting to reserve a drive:
   3604 JobId=25 device "Drive-0" (/dev/nst0) is BLOCKED due to user
unmount.

Device status:
Autochanger "Autochanger" with devices:
   "Drive-0" (/dev/nst0)
Device "FileStorage" (/tmp) is not open.
Device "Drive-0" (/dev/nst0) is not open.
Device is BLOCKED. User unmounted.
Drive 0 status unknown.


If i restart the bacula-sd daemon, the status is now

Device status:
Autochanger "Autochanger" with devices:
   "Drive-0" (/dev/nst0)
Device "FileStorage" (/tmp) is not open.
Device "Drive-0" (/dev/nst0) is not open.
Drive 0 status unknown.

So that appears to be the problem.  And my next question is, "release" is
the proper way to unmount a tape from the drive?  It appears to work, I'm
just trying to understand the difference.  Thanks a lot

Jay


On 10/23/07, Blake Dunlap <[EMAIL PROTECTED]> wrote:
>
>  If you run a "status storage" when this is occurring, I believe you will
> see that the drive is unmounted and offline by user. Mounting a tape, or
> instead using the "release" command to unmount tapes should solve your
> problem if this is the case.
>
>
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *jay
> *Sent:* Tuesday, October 23, 2007 11:16 AM
> *To:* bacula-users@lists.sourceforge.net
> *Subject:* [Bacula-users] Bacula-SD hang using IBM Ultrium 3581 Library
>
>
>
> Hello,
>
> I'm having a peculiar problem with an IBM Ultrium 3581 autochanger and the
> SD daemon.  I have to restart the SD daemon after I unmount a tape, or the
> next job hangs and never starts.
>
> We currently have a single LTO2 drive in the library, and are running
> Bacula 2.2.5 on a Redhat Enterprise Linux 4 update 5 IBM server.  I ran
> all the btape tests, including the multiple tape test for autochangers, and
> they all worked flawlessly.  Not a single problem or error reported.  I am
> able to use the mtx script and mt successfully as well.  Mtx reports all the
> proper tapes in the library, and I can mount a tape and WEOF and REWIND it
> using mt.  Things look great at this point.  Next, I ran "label barcodes"
> and it labeled all the tapes in the library properly.  Again, no problems.
> I decided at this point to modify the "Full OS Set" backup for our
> environment and run some tests.  I can successfully run the backup the first
> time.  It pulls a tape from the proper pool inside the library, backup
> works.  But if I unmount the tape in bconsole, and try and run the same
> backup again, it hangs.  Nothing happens.  I have waited several hours and
> nothing ever times out.  I finally have to cancel the job manually.  I
> discovered that by restarting bacula-sd that I can then re-run the job
> immediately without any problems.
>
> I'm not sure what could be causing this, or how to even troubleshoot.
> Things seem to work great during all tests and doing a backup, Bacula just
> doesn't like it when I unmount a tape manually.
>
> Could someone offer some advice or debugging steps I could take to figure
> this out?  Below is a copy of my bacula-sd.conf file.  I can post other
> config files if I need to.  Thanks
>
> Jay
>
>
>  bacula-sd.conf ---
>
> Storage {
>   Name = server1-sd
>   SDPort = 9103
>   WorkingDirectory = "/var/lib/bacula"
>   Pid Directory = "/var/run"
>   Maximum Concurrent Jobs = 20
>   SDAddress = 192.168.1.20
> }
>
> Director {
>   Name = server1-dir
>   Password = "1234"
> }
>
> Director {
>   Name = server1-mon
>   Password = "1234"
>   Monitor = yes
> }
>
> Device {
>   Name = FileStorage
>   Media Type = File
>   Archive Device = /tmp
>   LabelMedia = yes;
>   Random Access = Yes;
>   AutomaticMount = yes;
>   RemovableMedia = no;
>   AlwaysOpen = no;
> }
>
> Autochanger {
>   Name = Autochanger
>   Device = Drive-0
>   Changer Device = /dev/sg1
>   Changer Command = "/etc/bacula/mtx-changer %c %o %S %a %d"
> }
>
> Device {
>   Name = Drive-0
>   Drive Index = 0
>   Media Type = LTO2
>   Archive Device = /dev/nst0
>   AutomaticMount = yes;
>   AlwaysOpen = yes;
>   RemovableMedia = yes;
>   RandomAccess = no
>   AutoChanger = yes
> }
>
> Messages {
>   Name = Standard
>   director = server1-dir = all
> }
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Bacula-SD hang using IBM Ultrium 3581 Library

2007-10-23 Thread jay
I was using unmount from bconsole to unmount the tape.  It was not releasing
it.  That is what is confusing me.  But your saying it should.  So its even
more perplexing now.  Release seems to do what I want.  It unmounts the
tape, and releases the drive.  But the word" unmount" seems more intuitive
to me than "release".

Jay

On 10/23/07, Arno Lehmann <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> 23.10.2007 20:21,, jay wrote::
> > Thanks Blake,
> >
> > You are correct, it seems when I run an unmount, the drive goes into
> > this state
> >
> > Jobs waiting to reserve a drive:
> >3604 JobId=25 device "Drive-0" (/dev/nst0) is BLOCKED due to user
> > unmount.
> >
> > Device status:
> > Autochanger "Autochanger" with devices:
> >"Drive-0" (/dev/nst0)
> > Device "FileStorage" (/tmp) is not open.
> > Device "Drive-0" (/dev/nst0) is not open.
> > Device is BLOCKED. User unmounted.
> > Drive 0 status unknown.
> >
> >
> > If i restart the bacula-sd daemon, the status is now
> >
> > Device status:
> > Autochanger "Autochanger" with devices:
> >"Drive-0" (/dev/nst0)
> > Device "FileStorage" (/tmp) is not open.
> > Device "Drive-0" (/dev/nst0) is not open.
> > Drive 0 status unknown.
> >
> > So that appears to be the problem.  And my next question is, "release"
> > is the proper way to unmount a tape from the drive?  It appears to work,
> > I'm just trying to understand the difference.  Thanks a lot
>
> The difference is that 'umount' unloads the tape and then releases the
> drive for use by other programs. 'release' only releases the drive and
> informs the SD of the fact that it has to ensure proper tape
> positioning when it starts using the tape again.
>
> Your original problem seems to be that you didn't notice you have to
> mount the storage after manually unmounting it. Bacula does not send a
> reminder mail in these cases, because the operator is expected to know
> if the tape was manually unmounted :-)
>
> So, in general: If you unmount a storage device, you have to mount it
> again. The current status is, as stated, easily checked with the 'sta
> sd' command.
>
> Arno
>
> > Jay
> >
> >
> > On 10/23/07, *Blake Dunlap* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> wrote:
> >
> > If you run a "status storage" when this is occurring, I believe you
> > will see that the drive is unmounted and offline by user. Mounting a
> > tape, or instead using the "release" command to unmount tapes should
> > solve your problem if this is the case.
> >
> >
> >
> > *From:* [EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>
> > [mailto:[EMAIL PROTECTED]
> > <mailto:[EMAIL PROTECTED]>] *On Behalf Of
> *jay
> > *Sent:* Tuesday, October 23, 2007 11:16 AM
> > *To:* bacula-users@lists.sourceforge.net
> > <mailto:bacula-users@lists.sourceforge.net>
> > *Subject:* [Bacula-users] Bacula-SD hang using IBM Ultrium 3581
> Library
> >
> >
> >
> > Hello,
> >
> > I'm having a peculiar problem with an IBM Ultrium 3581 autochanger
> > and the SD daemon.  I have to restart the SD daemon after I unmount
> > a tape, or the next job hangs and never starts.
> >
> > We currently have a single LTO2 drive in the library, and are
> > running Bacula 2.2.5 on a Redhat Enterprise Linux 4 update 5 IBM
> > server.  I ran all the btape tests, including the multiple tape test
> > for autochangers, and they all worked flawlessly.  Not a single
> > problem or error reported.  I am able to use the mtx script and mt
> > successfully as well.  Mtx reports all the proper tapes in the
> > library, and I can mount a tape and WEOF and REWIND it using mt.
> > Things look great at this point.  Next, I ran "label barcodes" and
> > it labeled all the tapes in the library properly.  Again, no
> > problems.  I decided at this point to modify the "Full OS Set"
> > backup for our environment and run some tests.  I can successfully
> > run the backup the first time.  It pulls a tape from the proper pool
> > inside the library, backup works.  But if I unmount the tape in
> > bconsole, and try and run the same backup again, it hangs.  Nothing
> > happens.  I have waited several hours and nothi

[Bacula-users] Managing tapes in a library

2007-10-25 Thread jay
Hello,

I've got a general question.  We have a tape library, its only 23 slots.
Eventually, tapes will begin to fill up during the course of backups.  My
question is, what is the best way in Bacula to manage ejecting tapes in the
library and labeling new ones?  Say at the end of the week, we have 3 tapes
that are full.  How can I automate ejecting these into the magazine?  Do I
just need to set something up in cron that checks the database for FULL
media and ejects those?  Then manually label them myself?  It doesn't look
like there is a facility in Bacula to automate that, aside from custom
scripts.  Just curious to know what others are doing for this type of
situation. Thanks for any comments!

Jay
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] 3573-TL tape autochanger

2007-10-26 Thread jay
We haven't used this particular model, we have an IBM 3581, but have you
tried running the mtx commands in section 29.9 of the manual?  I found that
section, as well as the "Autochanger Support" section to be quite helpful in
getting mine to work.  The Bacula manual is very well written.

Jay

On 10/26/07, kiew yuen kit <[EMAIL PROTECTED]> wrote:
>
> who have used this tape autochanger with bacula?
> Vendor: IBM Model: 3573-TL
> i check in the bacula autochanger list and cant seem to find this model.
> As it using mtx where as amanda also using the same mtx, but amanda
> support this model.
>
>
> -
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
>
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Filesize in database

2007-11-27 Thread jay
Does Bacula store the filesize of each file backed up in the database?  I
can't seem to find where and I'm curious how it derives the calculation for
a restore estimate.

Thanks

Jay
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Filesize in database

2007-11-27 Thread jay
Thanks Ralf, this looks like what I need.  Although I'm not exactly sure how
to use a stored procedure in Mysql 4.1, I will give it a try.

J

On Nov 27, 2007 2:39 PM, Ralf Gross <[EMAIL PROTECTED]> wrote:

> jay schrieb:
> > Does Bacula store the filesize of each file backed up in the database?
>  I
> > can't seem to find where and I'm curious how it derives the calculation
> for
> > a restore estimate.
>
> I think it's the lstat field in the file table.
>
> http://marc.info/?l=bacula-users&m=119312809020731&w=2
>
> Ralf
>
> -
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2005.
> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Filesize in database

2007-11-27 Thread jay
Hmm, this appears to be a Postgres stored procedure.  Anyone have a way to
get this within MySQL or a Python script?

On Nov 27, 2007 3:51 PM, jay <[EMAIL PROTECTED]> wrote:

> Hmm, this appears to be a Postgres stored procedure.  Anyone have a way to
> get this within MySQL or a Python script?
>
> On Nov 27, 2007 2:39 PM, Ralf Gross < [EMAIL PROTECTED]> wrote:
>
> > jay schrieb:
> > > Does Bacula store the filesize of each file backed up in the database?
> >  I
> > > can't seem to find where and I'm curious how it derives the
> > calculation for
> > > a restore estimate.
> >
> > I think it's the lstat field in the file table.
> >
> > http://marc.info/?l=bacula-users&m=119312809020731&w=2
> >
> > Ralf
> >
> >
> > -
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2005.
> > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
>
>
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Filesize in database

2007-11-28 Thread jay
Hope this proves useful to someone on the list.  This short python script
will decode some of the values in the File.LStat field, or at least the ones
I needed when I wrote this.  Script was written to work with MySQL, but
could easily be changed to query PostgreSQL or whatever else you want.
Would be nice to have something like this included in the tarball, I know I
will be using it a lot.  Was only tested with MySQL 4.1 on a i386 RHEL4 box
with Python 2.5.1.  Enjoy!

Jay

---

#!/bin/env python

import sys
import time
import MySQLdb

jobid = sys.argv[1]

def base64_decode_lstat(record, position):
b64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
val = 0
size = record.split(' ')[position]
for i in range(len(size)):
val += (b64.find(size[i])) * (pow(64,(len(size)-i)-1))
return val

db = MySQLdb.connect(host="localhost", user="user", passwd="pass",
db="bacula")
cursor = db.cursor()
cursor.execute("SELECT Path.Path, Filename.Name , File.LStat \
FROM File, Filename, Path \
WHERE File.JobId = '%s' \
AND Filename.FilenameId = File.FilenameId \
AND Path.PathId = File.PathId" % jobid)
result = cursor.fetchall()

for record in result:
file = record[0] + record[1]
print '%s is owned by gid %s' % (file, base64_decode_lstat(record[2],
5))
print '%s is owned by uid %s' % (file, base64_decode_lstat(record[2],
6))
print '%s is %s bytes in size' % (file, base64_decode_lstat(record[2],
7))
print '%s blocksize is %s' % (file, base64_decode_lstat(record[2], 8))
print '%s has %s blocks allocated' % (file,
base64_decode_lstat(record[2], 9))

atime = time.gmtime(base64_decode_lstat(record[2], 10))
print '%s has last access time of %s' % (file, time.strftime("%b %d
%H:%M", atime))

mtime = time.gmtime(base64_decode_lstat(record[2], 11))
print '%s has last modification time of %s' % (file, time.strftime("%b
%d %H:%M", mtime))

ctime = time.gmtime(base64_decode_lstat(record[2], 12))
print '%s has last change time of %s' % (file, time.strftime("%b %d
%H:%M", ctime))
print
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Job codes for RunAfterJob Directive

2007-11-29 Thread jay
Does someone have a link to the list of available job codes that can be
passed to a script when using the RunAfterJob directive?  I could only find
2 so far, %c for client name and %d for director name.  I hope there are
more directives available.  Thanks

Jay
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Job codes for RunAfterJob Directive

2007-11-29 Thread jay
Found them.  If ONLY I had searched a little longer

%% = %
%c = Client's name
%d = Director's name
%e = Job Exit Status
%i = JobId
%j = Unique Job id
%l = Job Level
%n = Job name
%s = Since time
%t = Job type (Backup, ...)
%v = Volume name

On Nov 29, 2007 3:31 PM, jay <[EMAIL PROTECTED]> wrote:

> Does someone have a link to the list of available job codes that can be
> passed to a script when using the RunAfterJob directive?  I could only find
> 2 so far, %c for client name and %d for director name.  I hope there are
> more directives available.  Thanks
>
> Jay
>
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Email error message

2007-12-05 Thread jay
This was for Bacula 2.2.5 running on RHEL4 with MySQL 4.1.  I do happen to
have a pool named "Monthly Pool".  You are correct, there is a quoting
error.  If I adjust the quotes, I can get the query to work.  Do I need to
rename my pool?

Jay

On Dec 5, 2007 10:38 AM, Arno Lehmann <[EMAIL PROTECTED]> wrote:

> Hi,
>
> 05.12.2007 15:10,, jay wrote::
> > All,
> >
> > I had an email sitting in my inbox this morning, that was generated by
> > Bacula, but I'm not sure why or how.
> >
> > 04-Dec 11:32 cbtsscdb-dir JobId 0: Fatal error: sql_get.c:595
> > sql_get.c:595 query SELECT
> >
> PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId
> > FROM Pool WHERE Pool.Name=''Monthly' failed:
>
> If the above line really is the complete SQL query (I'm always a bit
> unsure with MySQL...) then there is a qouting error.
>
> > You have an error in your SQL syntax; check the manual that corresponds
> > to your MySQL server version for the right syntax to use near 'Monthly''
> > at line 1
> >
> > I see where the SQL failed, but what generated this?  Is it a bug?
>
> Most probably, yes.
>
> Which version of Bacula was this?
>
> >  All
> > my backups completed successfully, so its a bit perplexing.  Did a job
> > generated this or did it come from a daemon?
>
> The JobId given in the mail is 0, which would indicate your DIR issued
> that query. Perhaps in searching for a usable volume, or as part of a
> query command. I don't know, but if the time the mail was generated
> doesn't tell you anything, a search for this query in the source might
> turn up something. Of course, there will be some variable substitution
> in the source code... I couldn't find anything except cats/sql_list.c,
> which look good. Unless you've got a Pool named 'Monthly (which might
> be a problem).
>
> > Should I be concerned?  Thanks
>
> A bit... if similar errors are generated again, I would investigate.
> Otherwise, especially if you're unsure which task generated the query,
> it's a problem to find the cause for this SQL error.
>
> Arno
>
> > Jay
> >
> >
> > 
> >
> >
> -
> > SF.Net email is sponsored by: The Future of Linux Business White Paper
> > from Novell.  From the desktop to the data center, Linux is going
> > mainstream.  Let it simplify your IT future.
> > http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> >
> >
> > 
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>
> --
> Arno Lehmann
> IT-Service Lehmann
> www.its-lehmann.de
>
> -
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Email error message

2007-12-05 Thread jay
The resource is Monthly Pool, with no quotes :-)

Pool {
  Name = "Monthly Pool"
  Pool Type = Backup
  Recycle = no
  AutoPrune = yes
  Volume Retention = 1 years
}


On Dec 5, 2007 11:16 AM, Dan Langille <[EMAIL PROTECTED]> wrote:

> On Wed, 5 Dec 2007, Arno Lehmann wrote:
>
> > Hi,
> >
> > 05.12.2007 17:59,, jay wrote::
> >> This was for Bacula 2.2.5 running on RHEL4 with MySQL 4.1.
> >
> > Fairly recent...
> >
> >> I do happen
> >> to have a pool named "Monthly Pool".
> >
> > You meant, the pool is named with the quotes? I don't think Bacula
> > supports that :-)
> >
> >> You are correct, there is a
> >> quoting error.  If I adjust the quotes, I can get the query to work.
>  Do
> >> I need to rename my pool?
> >
> > That might be one solution... it would be better, though, to ensure
> > all characters that have a meaning in SQL (especially qoutes and ;)
> > are correctly escaped in all cases, though. Don't ask me how much work
> > that would be - I remember a discussion where Dan said he was working
> > on PostrgeSQL-related quoting, and it turned out to be bigger task
> > than I expected...
>
> This may be a bug.  Keep looking. Show us your config file where you
> declare the pool in question.  Be sure to obscure any passwords before
> giving us the file.  Actually, just the Pool resource should be enough,
> not the whole file.
>
> --
> Dan Langille - http://www.langille.org/
> BSDCan - The Technical BSD Conference: http://www.bsdcan.org/
>
>
> -
> SF.Net email is sponsored by: The Future of Linux Business White Paper
> from Novell.  From the desktop to the data center, Linux is going
> mainstream.  Let it simplify your IT future.
> http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
> ___
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users
>
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Email error message

2007-12-05 Thread jay
All,

I had an email sitting in my inbox this morning, that was generated by
Bacula, but I'm not sure why or how.

04-Dec 11:32 cbtsscdb-dir JobId 0: Fatal error: sql_get.c:595 sql_get.c:595
query SELECT
PoolId,Name,NumVols,MaxVols,UseOnce,UseCatalog,AcceptAnyVolume,AutoPrune,Recycle,VolRetention,VolUseDuration,MaxVolJobs,MaxVolFiles,MaxVolBytes,PoolType,LabelType,LabelFormat,RecyclePoolId
FROM Pool WHERE Pool.Name=''Monthly' failed:
You have an error in your SQL syntax; check the manual that corresponds to
your MySQL server version for the right syntax to use near 'Monthly'' at
line 1

I see where the SQL failed, but what generated this?  Is it a bug?  All my
backups completed successfully, so its a bit perplexing.  Did a job
generated this or did it come from a daemon?

Should I be concerned?  Thanks

Jay
-
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] "Run After Job" character substitutions

2013-12-20 Thread jay
Hello,

I have a question about the character substitutions performed in the "Run
After Job" option.  I know the list of available substitutions contains
things like job bytes (%b), jobid (%i), etc.  It there an option available
to get the Elapsed Time of a job? Or is there a way to add additional
options so that I can get that information?

I using a RunScript after a job completes to get some useful job
information, and the Elapsed Time would be quite helpful.

Thanks,
Jay
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] "Run After Job" character substitutions

2013-12-20 Thread jay
Ah ok, that is a bit more work, but should be easy enough.  Thanks for the
suggestion!

Jay


On Fri, Dec 20, 2013 at 11:53 AM, Juraj Sakala wrote:

> Hi,
>
> There is no Elapsed time substitution string in the bacula. But don't
> worry. You can run a script after backup that pulls the information
> about jobid from the bacula database and parses it. So you can use all
> these information you need to process.
>
> In the RunAfterJob you call a script with the parameter %i, and the
> script pulls log from the mysql database for jobid stored in %i.
>
> Juraj
>
> On 12/20/2013 06:01 PM, jay wrote:
> > Hello,
> >
> > I have a question about the character substitutions performed in the
> > "Run After Job" option.  I know the list of available substitutions
> > contains things like job bytes (%b), jobid (%i), etc.  It there an
> > option available to get the Elapsed Time of a job? Or is there a way to
> > add additional options so that I can get that information?
> >
> > I using a RunScript after a job completes to get some useful job
> > information, and the Elapsed Time would be quite helpful.
> >
> > Thanks,
> > Jay
> >
> >
> >
> --
> > Rapidly troubleshoot problems before they affect your business. Most IT
> > organizations don't have a clear picture of how application performance
> > affects their revenue. With AppDynamics, you get 100% visibility into
> your
> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of
> AppDynamics Pro!
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
> >
> >
> >
> > ___
> > Bacula-users mailing list
> > Bacula-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/bacula-users
> >
>
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] "Run After Job" character substitutions

2013-12-21 Thread Jay
I was able to put together a small script that grabbed the start and end time 
from the Bacula database. Didn't take too long to figure it all out. Thanks

Jay

On Dec 21, 2013, at 2:26 AM, Juraj Sakala  wrote:

> I can provide you with sample script if you are interested. I use the scritpt 
> for pushing statistical information from bacula jobs to elasticsearch. I can 
> analyze and visualize bacula statistics stored in elasticsearch with kibana3.
> 
> Dňa 20.12.2013 19:07 používateľ "jay"  napísal:
>> Ah ok, that is a bit more work, but should be easy enough.  Thanks for the 
>> suggestion!
>> 
>> Jay
>> 
>> 
>> On Fri, Dec 20, 2013 at 11:53 AM, Juraj Sakala  
>> wrote:
>>> Hi,
>>> 
>>> There is no Elapsed time substitution string in the bacula. But don't
>>> worry. You can run a script after backup that pulls the information
>>> about jobid from the bacula database and parses it. So you can use all
>>> these information you need to process.
>>> 
>>> In the RunAfterJob you call a script with the parameter %i, and the
>>> script pulls log from the mysql database for jobid stored in %i.
>>> 
>>> Juraj
>>> 
>>> On 12/20/2013 06:01 PM, jay wrote:
>>> > Hello,
>>> >
>>> > I have a question about the character substitutions performed in the
>>> > "Run After Job" option.  I know the list of available substitutions
>>> > contains things like job bytes (%b), jobid (%i), etc.  It there an
>>> > option available to get the Elapsed Time of a job? Or is there a way to
>>> > add additional options so that I can get that information?
>>> >
>>> > I using a RunScript after a job completes to get some useful job
>>> > information, and the Elapsed Time would be quite helpful.
>>> >
>>> > Thanks,
>>> > Jay
>>> >
>>> >
>>> > --
>>> > Rapidly troubleshoot problems before they affect your business. Most IT
>>> > organizations don't have a clear picture of how application performance
>>> > affects their revenue. With AppDynamics, you get 100% visibility into your
>>> > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics 
>>> > Pro!
>>> > http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>>> >
>>> >
>>> >
>>> > ___
>>> > Bacula-users mailing list
>>> > Bacula-users@lists.sourceforge.net
>>> > https://lists.sourceforge.net/lists/listinfo/bacula-users
>>> >
>> 
>> 
>> --
>> Rapidly troubleshoot problems before they affect your business. Most IT
>> organizations don't have a clear picture of how application performance
>> affects their revenue. With AppDynamics, you get 100% visibility into your
>> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics 
>> Pro!
>> http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
>> ___
>> Bacula-users mailing list
>> Bacula-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/bacula-users
--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Slow LTO Speeds

2007-04-08 Thread Jay Tingle
Greetings, 
I recently got an HP surestore 215 external Ultrium 1 drive.  I
set it up in Bacula and it is working great.  The only problem is that I am
only getting about 2mb/s on backups.   Here is the setup I am using:

Tape drive is connected to a LSI megaraid 320-2 raid card
Tyan LE-T motherboard
2 x 1.4ghz Intel Tualatin CPUs
2.5gb of ram
2 x 36gb Ultra-320 15000rpm scsi hard drives in raid 1
CentOS 4.4
Bacula 2.0.3-1
Tape drive is hooked to a different scsi channel than the drives.

I have run the btape test command and it passes without any problems.  Should
I try using a regular SCSI card instead of the megaraid card.   I tried
hooking the tape drive up to a Sun Netra T1 105 running FreeBSD 6.2 sparc64.
I was getting around 8mb/s execpt the storage daemon would hang any time I
tried restoring.  I also hooked the drive up to my HP C3000 HP-UX workstation
and ran the HP LTT diagnostics on the drive.  It passed all tests and was
showing 15mb/s on writes.  Any help would be greatly appreciated.  Here is
the output of the btape fill command:

08-Apr 16:31 btape: Fatal Error at dev.c:1670 because:
dev.c:1669 Attempt to WEOF on non-appendable Volume
Wrote Volume label for volume "TestVolume1".
Wrote Start of Session label.
16:31:24 Begin writing Bacula records to tape ...
Wrote blk_block=5000, dev_blk_num=4999 VolBytes=322,495,488 rate=2054.1 KB/s
Wrote blk_block=1, dev_blk_num= VolBytes=645,055,488 rate=2060.9 KB/s
Wrote blk_block=15000, dev_blk_num=14999 VolBytes=967,615,488 rate=2063.1
KB/s
Wrote blk_block=2, dev_blk_num=4499 VolBytes=1,290,175,488 rate=2061.0
KB/s
Wrote blk_block=25000, dev_blk_num=9499 VolBytes=1,612,735,488 rate=2059.7
KB/s
Wrote blk_block=3, dev_blk_num=14499 VolBytes=1,935,295,488 rate=2061.0
KB/s
16:48:07 Flush block, write EOF

thanks,
Jay

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Make error with console in openSuse10.2 86_64

2006-12-18 Thread Jay Rice
I'm trying to install Bacula in opensuse 10.2

When I try to run make, I get this error:

 Make of filed is good 

make[1]: Leaving directory `/home/jay/downloads/bacula-1.38.11/src/filed'
==>Entering directory /home/jay/downloads/bacula-1.38.11/src/console
make[1]: Entering directory `/home/jay/downloads/bacula-1.38.11/src/console'
/usr/bin/g++   -c-I. -I..  -g -Wall  console.c
console.c:78: error: ‘bool tee’ redeclared as different kind of symbol
/usr/include/bits/fcntl.h:247: error: previous declaration of ‘int
tee(int, int, size_t, unsigned int)’
console.c: In function ‘int get_cmd(FILE*, const char*, BSOCK*, int)’:
console.c:705: warning: the address of ‘int tee(int, int, size_t,
unsigned int)’, will always evaluate as ‘true’
console.c: In function ‘int teecmd(FILE*, BSOCK*)’:
console.c:784: error: assignment of function ‘int tee(int, int, size_t,
unsigned int)’
console.c:784: error: cannot convert ‘bool’ to ‘int ()(int, int, size_t,
unsigned int)throw ()’ in assignment
console.c: In function ‘int outputcmd(FILE*, BSOCK*)’:
console.c:791: error: assignment of function ‘int tee(int, int, size_t,
unsigned int)’
console.c:791: error: cannot convert ‘bool’ to ‘int ()(int, int, size_t,
unsigned int)throw ()’ in assignment
console.c: In function ‘int do_outputcmd(FILE*, BSOCK*)’:
console.c:809: error: assignment of function ‘int tee(int, int, size_t,
unsigned int)’
console.c:809: error: cannot convert ‘bool’ to ‘int ()(int, int, size_t,
unsigned int)throw ()’ in assignment
console.c: In function ‘void sendit(const char*)’:
console.c:893: warning: the address of ‘int tee(int, int, size_t,
unsigned int)’, will always evaluate as ‘true’
console.c:896: warning: the address of ‘int tee(int, int, size_t,
unsigned int)’, will always evaluate as ‘true’
make[1]: *** [console.o] Error 1
make[1]: Leaving directory `/home/jay/downloads/bacula-1.38.11/src/console'


  == Error in /home/jay/downloads/bacula-1.38.11/src/console ==

No other errors appear in configure or in the make install. It appears
that bacula is completed, but I have no console. I can start and stop
the 3 daemons. I can't see (I don't know enough) where I can fix this
error. This is about the 15th time I've installed BAcula and I've never
encountered this one.

My Google search came up empty. Any ideas?

Jay Rice


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] FAQ I am sure - more than one storage device

2005-06-09 Thread Jay Lawrence
I tried to research the docs and the list - but I just can't quite get 
it.


At my site, I have a lot more to backup than a single tape can handle. 
It would be nice to get bigger drives - but the more cost effective 
solution right now is to use several smaller tape drives. Is it 
possible to have the backup fill one tape drive and then continue to a 
second tape drive, etc.?


I don't quite see how to set up this strategy. Perhaps this has been 
addressed in earlier post - but can't think of good keywords to search 
for.


Thanks in advance.
Jay



---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

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


Re: [Bacula-users] FAQ I am sure - more than one storage device

2005-06-09 Thread Jay Lawrence


Hey Arno - thanks for responding. Try not to be totally high 
maintenance here - but perhaps you can confirm I am on the right track.


Step 1
- I set up my two Device { } entries in my sd config
Device {
Name = tape1-sd
etc.
}
Device {
Name = tape2-sd
etc.
}

- and test them with btape
CHECK
Step 2
- I set up two Storage { } in my dir config
Storage {
Name = tape1
Device = tape1-sd
Media Type = DDS-4
etc.
}
Storage {
Name = tape2
Device = tape2-sd
Media Type = DDS-4
etc.
}

Step 3
- I revise my Job to reference a new Storage definition

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Schedule = "WeeklyCycle"
  Storage = tape1
  Messages = Standard
  Pool = Default
  Priority = 10
}

Job {
  Name = "bighost"
  JobDefs = "DefaultJob"
  Client = bighost-fd
  FileSet = "myfileset"
  Write Bootstrap = "/var/lib/bacula/bighost.bsr"
}


Question - will Bacula use "tape2" as well because it sees that it uses 
the same media type - or is there somewhere I should be reference both 
Storage or Device declarations?


Thanks in advance (again!)

Jay 

On 9-Jun-05, at 2:53 PM, Arno Lehmann wrote:


Hello,

Jay Lawrence wrote:

I tried to research the docs and the list - but I just can't quite 
get it.
At my site, I have a lot more to backup than a single tape can 
handle. It would be nice to get bigger drives - but the more cost 
effective solution right now is to use several smaller tape drives. 
Is it possible to have the backup fill one tape drive and then 
continue to a second tape drive, etc.?
I don't quite see how to set up this strategy. Perhaps this has been 
addressed in earlier post - but can't think of good keywords to 
search for.


You don't have to set up anything special. Bacula handles this for 
you. After all, this is not amanda :-)


Arno


Thanks in advance.
Jay




---
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20

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


Re: [Bacula-users] Using harddrive as buffer for tape backups

2005-06-22 Thread Jay Lawrence

One thing that would be super desirable
I have a bunch of clients (5 so far) that I wanna back up
however
	If the tape fills up, all the remaining jobs block waiting for the 
tape to be free

worst case
	The first client blocks - four 4 remaing jobs block until we can shove 
in a new tape


What would happen if I set my max concurrent jobs for the director up 
to the # of clients I plan to backup?


This seems to be generally advised against in the docs - but perhaps 
with data spooling is it ok?


Jay

p.s.  Bacula totally rocks - once I got over the learning curve it is 
totally amazing!


On 21-Jun-05, at 7:24 PM, Jesse Keating wrote:


On Tue, 2005-06-21 at 17:51 -0500, Chris Lee wrote:

http://www.bacula.org/rel-manual/Data_Spooling.html

Thanks,
Chris


Thank you very much.  This is exactly what I'm looking for.

--
Jesse Keating
GameHouse -- Systems Engineer



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Using harddrive as buffer for tape backups

2005-06-22 Thread Jay Lawrence
Actually I re-read the docs. It says that upping the max concurrent 
jobs in the director is good - and they will be despooled exclusively 
one by one to tape.


Cool - I will do that tonight and see how goes.

Jay

On 22-Jun-05, at 5:11 PM, Jay Lawrence wrote:


One thing that would be super desirable
I have a bunch of clients (5 so far) that I wanna back up
however
	If the tape fills up, all the remaining jobs block waiting for the 
tape to be free

worst case
	The first client blocks - four 4 remaing jobs block until we can 
shove in a new tape


What would happen if I set my max concurrent jobs for the director up 
to the # of clients I plan to backup?


This seems to be generally advised against in the docs - but perhaps 
with data spooling is it ok?


Jay

p.s.  Bacula totally rocks - once I got over the learning curve it is 
totally amazing!


On 21-Jun-05, at 7:24 PM, Jesse Keating wrote:


On Tue, 2005-06-21 at 17:51 -0500, Chris Lee wrote:

http://www.bacula.org/rel-manual/Data_Spooling.html

Thanks,
Chris


Thank you very much.  This is exactly what I'm looking for.

--
Jesse Keating
GameHouse -- Systems Engineer



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Spanning drives

2005-06-22 Thread Jay Lawrence
With some help... you need some funny scripting for this to work, or 
you need to wait. This is one of the features that are on Kerns 
to-do-list, but not yet implemented in the development version. See 
Kern's mail "Re: [Bacula-devel] concurrent jobs with multiple-drive 
autochanger" on bacula-devel for more information.


That said, look for mail from Mario Wolff, about 29 Jan this year, in 
the srchive. You will find a script that might do what you want.


This looks cool - is this a FAQ potential item - at least until 
multiple drives are supported in the storage daemon? If I can get my 
2nd DLT going - I'll give it a whirl.


Jay



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Re: [Bacula-users] Error while trying to span tapes

2005-07-01 Thread Jay Lawrence
I just set this up and am generally having success. I do find that 
label commands seem to hang mysteriously from time to time. I am still 
coming up to speed with having a virtual autochanger now ...


Question - are you running bacula-sd as root?

Jay

On 1-Jul-05, at 4:36 PM, Richard White wrote:

OK. After reading the comments in the multitape-changer script in 
greater detail, I made this change to the bacula-sd.conf:


 Changer Command = "/etc/bacula/scripts/multitape-changer /dev/null 
load 1 /dev/nst1 0"
   
  ^ ^
Mario's example says /dev/sg0, although the Changer Device _ / 
 /
in the SD is described as /dev/null.   
   /
   
 /
This is the drive on the right; the first in the multitape unit. 
__/


If I try to run a backup that uses the Multitape device, it will wait 
on Storage Multitape. If I try to mount anything to Multitape, I get 
the error described in a previous message.


Richard



---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users





---
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


[Bacula-users] Backup Catalog Failing

2018-02-27 Thread Jay Reffner
Anyone have any idea why the backup catalogs are failing? 

run job="BackupCatalog" fileset="Catalog" level="Full" client="bacula-fd"
pool="catalog" storage="catalog" priority="10" when="2018-02-19 08:20:38"
yes 
Job queued. JobId=898
.messages 
19-Feb 08:20 bacula-dir JobId 898: shell command: run BeforeJob
"/usr/local/libexec/bacula/make_catalog_backup.pl MyCatalog"
.messages 
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: could not identify current
directory: Permission denied
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: could not identify current
directory: Permission denied
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: psql: could not find own
program executable
19-Feb 08:20 bacula-dir JobId 898: BeforeJob: root doesn't have access to
the catalog database
19-Feb 08:20 bacula-dir JobId 898: Error: Runscript: BeforeJob returned
non-zero status=1. ERR=Child exited with code 1
19-Feb 08:20 bacula-dir JobId 898: Error: Bacula bacula-dir 9.0.4 (06Sep17):
  Build OS:   x86_64-unknown-openbsd6.2 openbsd 6.2
  JobId:  898
  Job:BackupCatalog.2018-02-19_08.20.42_51
  Backup Level:   Full
  Client: "bacula-fd" 9.0.4 (06Sep17)
x86_64-unknown-openbsd6.2,openbsd,6.2
  FileSet:"Catalog" 2017-10-27 13:06:38
  Pool:   "catalog" (From Command input)
  Catalog:"MyCatalog" (From Client resource)
  Storage:"catalog" (From Command input)
  Scheduled time: 19-Feb-2018 08:20:38
  Start time: 19-Feb-2018 08:20:49
  End time:   19-Feb-2018 08:20:49
  Elapsed time:   1 sec
  Priority:   10
  FD Files Written:   0
  SD Files Written:   0
  FD Bytes Written:   0 (0 B)
  SD Bytes Written:   0 (0 B)
  Rate:   0.0 KB/s
  Software Compression:   None
  Comm Line Compression:  None
  Snapshot/VSS:   no
  Encryption: no
  Accurate:   no
  Volume name(s): 
  Volume Session Id:  0
  Volume Session Time:0
  Last Volume Bytes:  0 (0 B)
  Non-fatal FD errors:1
  SD Errors:  0
  FD termination status:  
  SD termination status:  
  Termination:*** Backup Error ***

If I run /usr/local/libexec/bacula/make_catalog_backup.pl MyCatalog as root,
it successfully dumps a bacula.sql file in /var/bacula, but it won't if I
run the backup job from bat or bconsole. Any help would be much appreciated.

TIA


--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users