[Bacula-users] BU 2 tape does not see newly labeled tape

2007-11-21 Thread David Gardner
Hey Gang,

I'm going to rephrase my question about my difficulty backing up to tape.

Given the following volume listing from bconsole and my bacula-dir.conf file, 
will the backup to tape occur when required or will Bacula (v.2.2.5) again ask 
for appendable media in the WeeklyPool?

-=-=-==-=-=-=-=--=-==-=-=-=--===-=-

*list volumes
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
Pool: Default

<...snip...>

Pool: WeeklyPool
+-+-+---+-+--+--+--+-+--+---+---+-+
| MediaId | VolumeName  | VolStatus | Enabled | VolBytes | VolFiles | 
VolRetention | Recycle | Slot | InChanger | MediaType | LastWritten |
+-+-+---+-+--+--+--+-+--+---+---+-+
|  21 | Weekly-0001 | Append|   1 |   64,512 |0 |
2,937,600 |   1 |0 | 0 | DAT-72| -00-00 00:00:00 |
+-+-+---+-+--+--+--+-+--+---+---+-+
Pool: Scratch
No results to list.

<...snip...>





#
#
# Bacula Director Configuration file for AirAdvice, Inc.
#
#  For Bacula release 2.2.5 (09 October 2007) -- redhat (Zod)
#
#  Initial version, 25Oct2007, DJG
#


 JobDefns #

# Default Job Definition
JobDefs {
Name = DefaultJob
Type = Backup
Schedule = "WeeklyCycle"
Storage = File
Messages = Standard
Pool = Default
Priority = 10
}


@/etc/bacula/bacula-dir-filesets.conf
@/etc/bacula/bacula-dir-jobs.conf
@/etc/bacula/bacula-dir-clients.conf
@/etc/bacula/bacula-dir-storage.conf
@/etc/bacula/bacula-dir-pools.conf
@/etc/bacula/bacula-dir-schedules.conf


### Directors 

Director {
Name = DURANGO-dir
DIRport = 9101  # where we listen for UA 
connections
QueryFile = "/etc/bacula/query.sql"
WorkingDirectory = "/var/bacula/working"
PidDirectory = "/var/run"
Maximum Concurrent Jobs = 1
Password = "......"   # Console password
Messages = Daemon
}


## Catalog ##
# Generic catalog service
Catalog {
Name = MyCatalog
dbname = bacula
user = bacula
password = ""
}


 Messages ##

# Reasonable message delivery -- send most everything to email address
#  and to the console
Messages {
  Name = Standard
  mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula: 
%t %e of %c %l\" %r"
  operatorcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s 
\"Bacula: Intervention needed for %j\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped
  operator = [EMAIL PROTECTED] = mount
  console = all, !skipped, !saved
#
# WARNING! the following will create a file that you must cycle from
#  time to time as it will grow indefinitely. However, it will
#  also keep all your messages if they scroll off the console.
#
  append = "/var/bacula/working/log" = all, !skipped
}

# Send messages only to the console
Messages {
  Name = ConsOnly
  console = all, !skipped, !saved
  append = "/var/bacula/working/log" = all, !skipped
}

# Message delivery for daemon messages (no job).
Messages {
  Name = Daemon
  mailcommand = "/sbin/bsmtp -h localhost -f \"\(Bacula\) \<%r\>\" -s \"Bacula 
daemon message\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped
  console = all, !skipped, !saved
  append = "/var/bacula/working/log" = all, !skipped
}


 Console 
#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = DURANGO-mon
  Password = "...xxx..."
  CommandACL = status, .status
}


### Schedules #
#
# default Daily full backup
Schedule {
Name = "DailyFull"
Run = Full mon-sat at 21:07
}

# The WeeklyCycle uses 5 different pools so that tapes can be recycled weekly
Schedule {
Name = "WeeklyCycle"
Run = Level=Differential Pool=SaturdayPool Saturday at 22:00
Run = Level=Differential Pool=SundayPool Sunday at 22:00
Run = Level=Differential Pool=MondayPool Monday at 22:00
Run = Level=Differential Pool=TuesdayPool Tuesday at 22:00
Run = Level=Differential Pool=WednesdayPool Wednesday at 22:00
Run = Level=Full Pool=WeeklyPool Thursday at 22:00
Run = Level=Differential Pool=FridayPool Friday at 22:00
}

# This does the catalog. It starts after the WeeklyCycle
# 
# Never worked 01Nov2007, DJG
#
#Schedule {
#   

Re: [Bacula-users] BU 2 tape does not see newly labeled tape

2007-11-21 Thread John Drescher
> I'm going to rephrase my question about my difficulty backing up to tape.
>
> Given the following volume listing from bconsole and my bacula-dir.conf
> file, will the backup to tape occur when required or will Bacula (v.2.2.5)
> again ask for appendable media in the WeeklyPool?
>
Did you unmount the last tape using the unmount or umount command
instead of the release command?

Basically if you use the unmount command it unmounts the tape and
removes it from bacula's access so that you can use the tape drive
with a different utility. As a result of that when you put a new tape
in bacula will not automatically load the tape until the user issues a
mount command in bacula.

With the release command the tape is ejected but bacula retains full
control of the drive so that after inserting a new tape bacula will
automatically mount it if you have automount configured in your conf
files.

If this is not you issue please tell me and I will try to look at your
conf files.

John

-
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] BU 2 tape does not see newly labeled tape

2007-11-21 Thread David Gardner
Thank you for your time John.

I tend to use the (grey beard) umount command with bconsole. I know it 
un-mounts the tape and is ready to accept a new tape for labeling or such tasks.

It didn't make sense to 'release' a tape (volume) especially if the backup is 
going to span multiple cartridges.

Let me be clear what I intend to happen: Friday -Wednesday are Diff's to hard 
drive volumes, Thursday full backup to tape(s). Thursday tapes go off-site.
 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
"Everything is a learning experience, even a mistake."

- Original Message 
From: John Drescher <[EMAIL PROTECTED]>
To: David Gardner <[EMAIL PROTECTED]>
Cc: bacula-users@lists.sourceforge.net
Sent: Wednesday, November 21, 2007 10:45:07 AM
Subject: Re: [Bacula-users] BU 2 tape does not see newly labeled tape


> I'm going to rephrase my question about my difficulty backing up to
 tape.
>
> Given the following volume listing from bconsole and my
 bacula-dir.conf
> file, will the backup to tape occur when required or will Bacula
 (v.2.2.5)
> again ask for appendable media in the WeeklyPool?
>
Did you unmount the last tape using the unmount or umount command
instead of the release command?

Basically if you use the unmount command it unmounts the tape and
removes it from bacula's access so that you can use the tape drive
with a different utility. As a result of that when you put a new tape
in bacula will not automatically load the tape until the user issues a
mount command in bacula.

With the release command the tape is ejected but bacula retains full
control of the drive so that after inserting a new tape bacula will
automatically mount it if you have automount configured in your conf
files.

If this is not you issue please tell me and I will try to look at your
conf files.

John







  

Be a better sports nut!  Let your teams follow you 
with Yahoo Mobile. Try it now.  
http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ-
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] BU 2 tape does not see newly labeled tape

2007-11-21 Thread Martin Simmons
> On Wed, 21 Nov 2007 09:59:32 -0800 (PST), David Gardner said:
> 
> Hey Gang,
> 
> I'm going to rephrase my question about my difficulty backing up to tape.
> 
> Given the following volume listing from bconsole and my bacula-dir.conf
> file, will the backup to tape occur when required or will Bacula (v.2.2.5)
> again ask for appendable media in the WeeklyPool?

I think it will ask again.

The console message should say exactly what it is asking for.  Please post it.

__Martin

-
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] BU 2 tape does not see newly labeled tape

2007-11-21 Thread David Gardner
 4.0 KB/s
  Software Compression:   69.6 %
  VSS:no
  Encryption: no
  Volume name(s): Weekly-0001
  Volume Session Id:  27
  Volume Session Time:1195253637
  Last Volume Bytes:  15,998,976 (15.99 MB)
  Non-fatal FD errors:1
  SD Errors:  0
  FD termination status:  Error
  SD termination status:  Error
  Termination:*** Backup Error ***

<...snip...>


This just leaves me with the dealing with the error:

21-Nov 12:51 DURANGO-sd JobId 104: Fatal error: Open data spool file
/tmp/BUspool/DURANGO-sd.data.104.DB2-Full.2007-11-21_12.51.08.DAT72.spool
failed: ERR=No such file or directory

Does the spool file not get closed after each use?



/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
"Everything is a learning experience, even a mistake."

----- Original Message ----
From: Martin Simmons <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Cc: bacula-users@lists.sourceforge.net
Sent: Wednesday, November 21, 2007 11:51:54 AM
Subject: Re: [Bacula-users] BU 2 tape does not see newly labeled tape


>>>>> On Wed, 21 Nov 2007 09:59:32 -0800 (PST), David Gardner said:
> 
> Hey Gang,
> 
> I'm going to rephrase my question about my difficulty backing up to
 tape.
> 
> Given the following volume listing from bconsole and my
 bacula-dir.conf
> file, will the backup to tape occur when required or will Bacula
 (v.2.2.5)
> again ask for appendable media in the WeeklyPool?

I think it will ask again.

The console message should say exactly what it is asking for.  Please
 post it.

__Martin







  

Be a better pen pal. 
Text or chat with friends inside Yahoo! Mail. See how.  
http://overview.mail.yahoo.com/-
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] BU 2 tape does not see newly labeled tape

2007-11-21 Thread Martin Simmons
> On Wed, 21 Nov 2007 13:10:19 -0800 (PST), David Gardner said:
> 
> Martin,
> 
> I appreciate your help in this matter.
> 
> The job never terminates, ever. Output from the messages command at the 
> console are as follows:
> 
> 21-Nov 13:00 DURANGO-dir JobId 108: Start Backup JobId 108, 
> Job=DURANGO-Full.2007-11-21_13.00.16
> 21-Nov 13:00 DURANGO-dir JobId 108: Using Device "FileStorage"
> 21-Nov 13:00 DURANGO-sd JobId 108: Job DURANGO-Full.2007-11-21_13.00.16 
> waiting. Cannot find any appendable volumes.
> Please use the "label"  command to create a new Volume for:
> Storage:  "FileStorage" (/tmp)
> Pool: WeeklyPool
> Media type:   File
> 
> 
> <...snip...>
> 
> Okay, the storage is incorrect in my bacula-dir-storage.conf file. The Weekly 
> scheduled BU to tape should read:
> 
> Run = Level=Full Pool=WeeklyPoolStorage=DAT72 Thursday at 22:00

Right, that is what I suspected might happen.


> This just leaves me with the dealing with the error:
> 
> 21-Nov 12:51 DURANGO-sd JobId 104: Fatal error: Open data spool file
> /tmp/BUspool/DURANGO-sd.data.104.DB2-Full.2007-11-21_12.51.08.DAT72.spool
> failed: ERR=No such file or directory
> 
> Does the spool file not get closed after each use?

It uses a new spool file for every job (hence the long name!).

Does the directory /tmp/BUspool exist on DURANGO-sd?  A missing directory is
the only way I can see to get ERR=No such file or directory there.

__Martin

-
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] BU 2 tape does not see newly labeled tape

2007-11-21 Thread David Gardner
Martin,

I was surprised to find the /tmp/BUspool directory no present. All of my jobs 
from other servers get spooled to there. I cannot tell from the log files or 
the bash_history files how it got blown away though. (A different issue...)

Anyway, the directory has been recreated

[EMAIL PROTECTED] ~]$ ls -al /tmp
total 133170060
drwxrwxrwt  4 root   root4096 Nov 21 13:52 .
drwxr-xr-x 24 root   root4096 Nov 12 14:13 ..
drwxrwsrw-  2 bacula root4096 Nov 21 13:52 BUspool

<...snip...>

 
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
David Gardner
email: djgardner(at)yahoo.com
Yahoo! IM: djgardner
AIM: dgardner09 
"Everything is a learning experience, even a mistake."

- Original Message 
From: Martin Simmons <[EMAIL PROTECTED]>
To: bacula-users@lists.sourceforge.net
Sent: Wednesday, November 21, 2007 1:34:37 PM
Subject: Re: [Bacula-users] BU 2 tape does not see newly labeled tape


>>>>> On Wed, 21 Nov 2007 13:10:19 -0800 (PST), David Gardner said:
> 
> Martin,
> 
> I appreciate your help in this matter.
> 
> The job never terminates, ever. Output from the messages command at
 the console are as follows:
> 
> 21-Nov 13:00 DURANGO-dir JobId 108: Start Backup JobId 108,
 Job=DURANGO-Full.2007-11-21_13.00.16
> 21-Nov 13:00 DURANGO-dir JobId 108: Using Device "FileStorage"
> 21-Nov 13:00 DURANGO-sd JobId 108: Job
 DURANGO-Full.2007-11-21_13.00.16 waiting. Cannot find any appendable volumes.
> Please use the "label"  command to create a new Volume for:
> Storage:  "FileStorage" (/tmp)
> Pool: WeeklyPool
> Media type:   File
> 
> 
> <...snip...>
> 
> Okay, the storage is incorrect in my bacula-dir-storage.conf file.
 The Weekly scheduled BU to tape should read:
> 
> Run = Level=Full Pool=WeeklyPoolStorage=DAT72 Thursday at 22:00

Right, that is what I suspected might happen.


> This just leaves me with the dealing with the error:
> 
> 21-Nov 12:51 DURANGO-sd JobId 104: Fatal error: Open data spool file
>
 /tmp/BUspool/DURANGO-sd.data.104.DB2-Full.2007-11-21_12.51.08.DAT72.spool
> failed: ERR=No such file or directory
> 
> Does the spool file not get closed after each use?

It uses a new spool file for every job (hence the long name!).

Does the directory /tmp/BUspool exist on DURANGO-sd?  A missing
 directory is
the only way I can see to get ERR=No such file or directory there.

__Martin

-
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







  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs-
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