Hi,

I have just moved from ver. 1.38.5 to 2.2.8 and the first backup job was supposed to run tonight. It started at 23:00 and nothing happened. Device status said:

Device status:
Device "FileBackup" (/dataspace/bacula-backups) is not open.
Device "Tape" (/dev/nst0) is not open.
    Device is being initialized.
====

In Use Volume status:
EPOL004 on device "Tape" (/dev/nst0)
    Reader=0 writers=0 reserved=1 released=0

Since it said that the device is not open I issued a series of mount/umount:

#mount Tape
Automatically selected Catalog: MyCatalog
Using Catalog "MyCatalog"
3001 Device "Tape" (/dev/nst0) is doing acquire.
#umount Tape
3901 Device "Tape" (/dev/nst0) is already unmounted.
#mount Tape
3001 Device "Tape" (/dev/nst0) is doing acquire.

So it was doing acquire whatever that is. At 23:13 bacula wrote:

03-Feb 23:13 epohost-sd JobId 16: Please mount Volume "EPOL004" or label a new one for:
    Job:          epo-xp.2008-02-03_23.00.02
    Storage:      "Tape" (/dev/nst0)
    Pool:         LargeTapes
    Media type:   DDS-4
#mount Tape
3001 OK mount. Device="Tape" (/dev/nst0)

12 minutes later this message is repeated:

3001 OK mount. Device="Tape" (/dev/nst0)
03-Feb 23:25 epohost-sd JobId 16: Please mount Volume "EPOL004" or label a new one for:
    Job:          epo-xp.2008-02-03_23.00.02
    Storage:      "Tape" (/dev/nst0)
    Pool:         LargeTapes
    Media type:   DDS-4
#

A new status command revealed:

Device status:
Device "FileBackup" (/dataspace/bacula-backups) is not open.
Device "Tape" (/dev/nst0) is not open.
    Device is BLOCKED waiting for mount of volume "EPOL004",
       Pool:        LargeTapes
       Media type:  DDS-4
====

In Use Volume status:
EPOL004 on device "Tape" (/dev/nst0)
    Reader=0 writers=0 reserved=1 released=0

This time the device is blocked for mount but a subsequent mount has no apparent effect.

I have attached the config files if someone would kind enough to check to see if I have made any wrong specifications. The server is on a linux fedora 7 system and the clients are same system, a windows 2000, and a windows XP.

I don't suspect the tape drive (DDS-4) because when I go back to the old fedora 5 with bacula 1.38.5 it performs flawlesly, the tape is usually premounted and the backup job starts within seconds to write to the tape.

--
Thanks in advance
Erik.


#
# Bacula Director Configuration file for EPO data
#

Director {                            # define myself
  Name = epo-dir
  DIRport = 9101                # where we listen for UA connections
  QueryFile = "/etc/bacula/conf/query.sql"
  WorkingDirectory = "/etc/bacula/working"
  PidDirectory = "/etc/bacula/pid"
  Maximum Concurrent Jobs = 1
  Password = "xGQd+b22P5rzX9espVGUetBjOrX8czfvzRqQ1cEwz0FT"         # Console 
password
  Messages = Daemon
}

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Incremental
  Client = epohost-fd 
  FileSet = "Full Set"
  Storage = Tape
  Messages = Standard
  Pool = LargeTapes
  Priority = 10
}


#
# Define the Virtual Machine back-up job
#  
Job {
  Name = "epovirt"
  JobDefs = "DefaultJob"
  Level = Full
  Fileset = "VMware Set"
  Pool = ShortTapes
  Write Bootstrap = "/etc/bacula/working/epovirt.bsr"
}

#
# Define the main linux system back-up job
#  
Job {
  Name = "epohost"
  JobDefs = "DefaultJob"
  Schedule = "epohost-WeeklyCycle"
  Storage = Tape
  Pool = LargeTapes
  RunAfterJob = "/etc/bacula/conf/eject-tape"
  Write Bootstrap = "/etc/bacula/working/epohost.bsr"
}

#
# Define the back-up job for epowork (TP600E)
#  
Job {
  Name = "epowork"
  JobDefs = "DefaultJob"
  Client = epowork-fd
  Schedule = "epowork-WeeklyCycle"
  Storage = Tape
  Pool = LargeTapes
  FileSet = "W2K Set"
  Write Bootstrap = "/etc/bacula/working/epowork.bsr"
}

#
# Define the back-up job for epo.xp (A31)
#  
Job {
  Name = "epo-xp"
  JobDefs = "DefaultJob"
  Client = epoxp-fd
  Schedule = "epoxp-WeeklyCycle"
  Storage = Tape
  Pool = LargeTapes
  FileSet = "XP Set"
  Write Bootstrap = "/etc/bacula/working/epo-xp.bsr"
}

#
# Back the catalog database up (after each system back-up)
#
Job {
  Name = "BackupCatalog"
  JobDefs = "DefaultJob"
  Level = Full
  FileSet="Catalog"
  Schedule = "WeeklyCycleAfterBackup"
  # This creates an ASCII copy of the catalog
  RunBeforeJob = "/etc/bacula/conf/make_catalog_backup bacula bacula"
  # This deletes the copy of the catalog
  RunAfterJob  = "/etc/bacula/conf/delete_catalog_backup"
  Write Bootstrap = "/etc/bacula/working/BackupCatalog.bsr"
  Priority = 11                   # run after main backup
}

#
# Standard Restore template, to be changed by Console program
#
Job {
  Name = "RestoreFiles"
  Type = Restore
  Client=epohost-fd                 
  FileSet="Full Set"                  
  Storage = Tape                      
  Pool = LargeTapes
  Messages = Standard
  Where = /tmp/bacula-restores
}

#
# List of files to be backed up for testing purposes
#
FileSet {
  Name = "Test epohost"
  Include {
    Options {
      signature = MD5
      compression = GZIP
      aclsupport = yes
    }
    File = /home
  }
  Exclude {
    File = /home/erik/Opskrifter
  }
}
FileSet {
  Name = "Test epowork"
  Include {
    Options {
      Signature = MD5
      compression = GZIP
      aclsupport = yes
    }
    File = c:/Linksys
  }
}  
FileSet {
  Name = "Test epo-xp"
  Include {
    Options {
      Signature = MD5
      compression = GZIP
      aclsupport = yes
    }
    File = c:/Downloads
  }
}

#
# List of files to be backed up on main linux system
#
FileSet {
  Name = "Full Set"
  Include {
    Options {
      signature = MD5
      compression = GZIP
      aclsupport = yes
    }
    File = /
    File = /boot
    File = /downloads
    File = /dataspace
    File = /home
    File = /media/floppy
    File = /usr
    File = /var
  }
  Exclude {
    File = /proc
    File = /tmp
    File = /dataspace/bacula-backups
    File = /dataspace/bacula-restores
    File = /VMware
    File = /var/lib/nfs
  }
}

#
# List of files to be backed up of the Virtual Machines
#
FileSet {
  Name = "VMware Set"
  Include {
    Options {
      signature = MD5
      compression = GZIP
      aclsupport = yes
    }
    File = /VMware
  }
}

#
# List of files to be backed up on the Windows 2000 system
#
FileSet {
  Name = "W2K Set"
  Include {
    Options {
      signature = MD5
      compression = GZIP
      aclsupport = yes
    }
    File = "c:/"
  }
  Exclude {
    File = "c:/DRIVERS"
    File = "c:/System Volume Information"
    File = "c:/tmp"
    File = "c:/WINNT"
    File = "c:/hiberfil.sys"
    File = c:/pagefile.sys"
  }
}

#
# List of files to be backed up on the Windows XPsystem
#
FileSet {
  Name = "XP Set"
  Include {
    Options {
      signature = MD5
      compression = GZIP
      aclsupport = yes
    }
    File = "c:/Baron"
    File = "c:/DanskeBank"
    File = "c:/Documents and Settings"
    File = "c:/Downloads"
    File = "c:/Programmer"
    File = "c:/Eriks folder"
    File = "c:/Nikon-20061223"
    File = "c:/My Documents"
    File = "c:/Norman"
    File = "c:/Program Files"
    File = "c:/Ullas Billeder"
    File = "c:/Ullas folder"
  }
  Exclude {
    File = "c:/Downloads/tmp/restores"
  }
}

#
# Specification of back-up time schedules.
# 
# Ulla's Laptop first box to back-up
#
Schedule {
  Name = "epoxp-WeeklyCycle"
  Run = Level=Full Pool=LargeTapes sun at 23:00
  Run = Level=Incremental Pool=LargeTapes mon-fri at 23:00
}

# 
# Erik's Laptop second box to back-up
#
Schedule {
  Name = "epowork-WeeklyCycle"
  Run = Level=Full Pool=LargeTapes sun at 22:00
}

# 
# Main linux system last box to back-up
#
Schedule {
  Name = "epohost-WeeklyCycle"
  Run = Level=Full Pool=LargeTapes sun at 23:10
  Run = Level=Incremental Pool=LargeTapes mon-fri at 23:05
}

#
# Catalog back-up starting after the Weekly Cycles
#
Schedule {
  Name = "WeeklyCycleAfterBackup"
  Run = Full sun-fri at 23:15
}

#
# This is the backup of the catalog
#
FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /etc/bacula/working/bacula.sql
  }
}

#
# Client (File Services) to backup host system
#
Client {
  Name = epohost-fd
  Address = epohost.epolan.dk
  FDPort = 9102
  Catalog = MyCatalog
  Password = "HWoeVRiIwcotgSDU28XVXbMp48E0918x7NvxIouqs0O/"          # password 
for FileDaemon
  File Retention = 10 weeks            
  Job Retention = 13 weeks   
  AutoPrune = yes                    
}

#
# Client (File Services) to backup Windows 2000 system
#
Client {
  Name = epowork-fd
  Address = epowork.epolan.dk
  FDPort = 9102
  Catalog = MyCatalog
  Password = "HWoeVRiIwcotgSDU28XVXbMp48E0918x7NvxIouqs0O/"          # password 
for FileDaemon
  File Retention = 10 weeks            
  Job Retention = 13 weeks   
  AutoPrune = yes                    
}

#
# Client (File Services) to backup Windows XP system
#
Client {
  Name = epoxp-fd
  Address = EPO-xp.epolan.dk
  FDPort = 9102
  Catalog = MyCatalog
  Password = "HWoeVRiIwcotgSDU28XVXbMp48E0918x7NvxIouqs0O/"          # password 
for FileDaemon
  File Retention = 10 weeks            
  Job Retention = 13 weeks   
  AutoPrune = yes                    
}

#
# Definition of disk storage device
#
Storage {
  Name = FileStorage
# Do not use "localhost" here    
# Address = epohost.epolan.dk                # N.B. Use a fully qualified name 
here
  Address = 192.168.1.104
  SDPort = 9103
  Password = "SKli0pSJ3TlK4+VT21NZ9vKrUF8GE23qlnL64mYVntmg"
  Device = FileBackup
  Media Type = File
}

#
# Definition of tape storage device
#
Storage {
  Name = Tape
# Do not use "localhost" here    
# Address = epohost.epolan.dk                # N.B. Use a fully qualified name 
here
  Address = 192.168.1.104
  SDPort = 9103
  Password = "SKli0pSJ3TlK4+VT21NZ9vKrUF8GE23qlnL64mYVntmg"
  Device = Tape
  Media Type = DDS-4
}

#
# Generic catalog service
#
Catalog {
  Name = MyCatalog
  DB socket = /var/lib/mysql/mysql.sock
  dbname = bacula; user = bacula; password = ""
}

#
# Message delivery -- send most everything to email address and to the console
#
Messages {
  Name = Standard
  mailcommand = "/etc/bacula/bin/bsmtp -f \"\(Bacula\) %r\" -s \"Bacula: %t %e 
of %c %l\" %r"
  operatorcommand = "/etc/bacula/bin/bsmtp -f \"\(Bacula\) %r\" -s \"Bacula: 
Intervention needed for %j\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped            
  operator = [EMAIL PROTECTED] = mount
  console = all, !skipped, !saved
  append = "/etc/bacula/working/bacula.log" = all, !skipped
}

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

#    
# Catalogue pool definition
#
Pool {
  Name = File
  Use Volume Once = yes
  Pool Type = Backup
  LabelFormat = "File"
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Maximum Volumes = 2
  Volume Retention = 23h              # one year
}

#    
# Pool definition for Virtual Machines Backups
#
Pool {
  Name = ShortTapes
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 4 weeks 
# Accept Any Volume = yes  
}

#    
# Pool definition for remaining Backups
#
Pool {
  Name = LargeTapes
  Pool Type = Backup
  Recycle = yes                       # Bacula can automatically recycle Volumes
  AutoPrune = yes                     # Prune expired volumes
  Volume Retention = 4 weeks
# Accept Any Volume = yes      
}

#
# Restricted console used by tray-monitor to get the status of the director
#
Console {
  Name = epo-mon
  Password = "+/bqddItItgfUqWWJny8miLQ/m8HaCPwmhpsaxgHy6BP"
  CommandACL = status, .status
}
#
# Bacula File Daemon Configuration file for EPO data
#

#
# List Directors who are permitted to contact this File daemon
#
Director {
  Name = epo-dir
  Password = "HWoeVRiIwcotgSDU28XVXbMp48E0918x7NvxIouqs0O/"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the file daemon
#
Director {
  Name = epo-mon
  Password = "76nCDXqlMZ/mU7LkMqfwyr4eKGB1ln1OgKtPpoZt5mxN"
  Monitor = yes
}

#
# "Global" File daemon configuration specifications
#
FileDaemon {                          # this is me
  Name = epohost-fd
  Heartbeat Interval = 15 min
  FDport = 9102                  # where we listen for the director
  WorkingDirectory = /etc/bacula/working
  Pid Directory = /etc/bacula/pid
  Maximum Concurrent Jobs = 20
}

#
# Send all messages except skipped files back to Director
#
Messages {
  Name = Standard
  director = epo-dir = all, !skipped
}
#
# Bacula Storage Daemon Configuration file for EPO data
#

Storage {                             # definition of myself
  Name = epohost-sd
  Heartbeat Interval = 15 min
  SDPort = 9103                  # Director's port      
  WorkingDirectory = "/etc/bacula/working"
  Pid Directory = "/etc/bacula/pid"
  Maximum Concurrent Jobs = 20
}

#
# List Directors who are permitted to contact Storage daemon
#
Director {
  Name = epo-dir
  Password = "SKli0pSJ3TlK4+VT21NZ9vKrUF8GE23qlnL64mYVntmg"
}

#
# Restricted Director, used by tray-monitor to get the
#   status of the storage daemon
#
Director {
  Name = epo-mon
  Password = "KBldhiEr1qhzPUZO253iuxWQmcUEJMbp90uOd6iyHe4k"
  Monitor = yes
}

#
# Devices supported by this Storage daemon
# To connect, the Director's bacula-dir.conf must have the
#  same Name and MediaType. 
#

Device {
  Name = FileBackup
  Media Type = File
  Archive Device = /dataspace/bacula-backups
  LabelMedia = yes;                   # lets Bacula label unlabeled media
  Random Access = Yes;
  AutomaticMount = yes;               # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
}

#
# A Linux or Solaris tape drive
#
Device {
  Name = Tape
  Device Type = Tape
  Media Type = DDS-4
  Archive Device = /dev/nst0
  AutomaticMount = yes;               # when device opened, read it
  AlwaysOpen = yes;
  Offline on Unmount = yes;
  RemovableMedia = yes;
  RandomAccess = no; 
}

# 
# Send all messages to the Director, 
#
Messages {
  Name = Standard
  director = epo-dir = all
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to