thanks for oyur reply i an attaching my bacula director configuration file please help me wher it went wrong

Florian Schnabel <[EMAIL PROTECTED]> wrote:
david robert wrote:
> Hi Guys,
> I have scheduled jobs for the first time yesterday night and my storage daemon was stopped automatically i don't know why.I am have started the staorage daemon and i am checking the status using bcosole for director it is showing like this
>
> Scheduled Jobs:
> Level Type Pri Scheduled Name Volume
> ===================================================================================
> Full Backup 11 04-Mar-06 00:40 NightlySavemain2 *unknown*
> Full Backup 12 04-Mar-06 01:10 NightlySavedirector2 *unknown*
> Full Backup 13 04-Mar-06 02:30 BackupCatalog *unknown*
> ====
> Running Jobs:
> N o Jobs running.
> ====
>
> Terminated Jobs:
> JobId Level Files Bytes Status Finished Name
> ========================================================================
> 1 Full 0 0 Error 03-Mar-06 02:10 NightlySavemain2
> 2 Full 0 0 Error 03-Mar-06 03:40 NightlySavedirector2
> 3 Full 0 0 Error 03-Mar-06 04:10 BackupCatalog
>
> I am not sure why it is showing volume name unkown.I am running out of ideas and when i can check the error messages for bacula.
>
> My director setting for jods and schedules are correct i think
>
> How to get the volume name under volume.
>

volume *unknown* means bacula not no empty volume it is allowed to
recycle or append to and is not allowed to create a new volume either
... so it just doesn't know where it could put that backup.

obviously your volume/pool settings aren't working out

florian


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users


Yahoo! Cars NEW - sell your car and browse thousands of new and used cars online search now

#-----------------------------#
# BACULA DIRECTOR Config file #
#-----------------------------#

Director {
        Name = backuptest-dir
        DIRport = 9101
        QueryFile = "/etc/bacula/query.sql"
        WorkingDirectory = "/var/bacula"
        PidDirectory = "/var/run"
        # WorkingDirectory = "/var/lib/bacula"
        # PidDirectory = "/var/run"
        SubSysDirectory = "/var/lock/subsys" 
        Maximum Concurrent Jobs = 1
        Messages = Standard
        Password = "test"
}

#------#
# JOBS #
#------#

#--------------#
# JOB DEFAULTS #
#--------------#

JobDefs {
  Name = "DefaultJob"
  Type = Backup
  Level = Full
  Client = backuptest-fd
  FileSet = "Full Set"
  Schedule = "WeeklyCycle"
  Storage = DLT
  Messages = Standard
  Pool = Default
  Priority = 10
}

#---------------------#
# 1ST Job - Main2     #
#---------------------#

Job {
        Name = "NightlySavemain2"
        Type = Backup
        Client = main2-fd
        FileSet = "Full Set"
        Schedule = "WeeklyCyclemain2"
        Storage = DLT
        Messages = Standard
        Pool = Default
        Write Bootstrap = "/var/bacula/NightlySave.bsr"
        # RunBeforeJob  = "/etc/bacula/start_of_backup.sh"
        RunBeforeJob  = "/etc/bacula/scripts/before_backup.sh"
        Max Start Delay = 15h
        Priority = 11
}

#---------------------#
# 2ND Job - director2 #
#---------------------#

Job {
        Name = "NightlySavedirector2"
        Type = Backup
        Client = director2-fd
        FileSet = "Full Set"
        Schedule = "WeeklyCycledirector2"
        Storage = DLT
        Messages = Standard
        Pool = Default
        Write Bootstrap = "/var/bacula/NightlySave1.bsr"
        # RunBeforeJob  = "/etc/bacula/start_of_backup.sh"
         RunBeforeJob  = "/etc/bacula/scripts/before_backup.sh"
        Max Start Delay = 15h
        Priority = 12
}

#-------------------#
# 3RD Job - CATALOG #
#-------------------#

Job {
      Name = "BackupCatalog"
      Type = Backup
      Client = backuptest-fd
      Storage = DLT
      Messages = Standard
      Pool = Default
      Level = Full
      FileSet="Catalog"
      Schedule = "WeeklyCycleAfterBackup"

      # This creates an ASCII copy of the catalog
      # e.g. RunBeforeJob = "/usr/lib/bacula/make_catalog_backup -u bacula"
      RunBeforeJob = "/etc/bacula/make_catalog_backup bacula bacula"

      # This deletes the copy of the catalog
      # RunAfterJob  = "/etc/bacula/delete_catalog_backup"
      RunAfterJob = "/etc/bacula/end_of_backup.sh"

      Write Bootstrap = "/var/bacula/BackupCatalog.bsr"
      Max Start Delay = 14h
      Priority = 13                   # run after main backup
}

#---------------------------#
# STANDARD RESTORE TEMPLATE #
#---------------------------#

Job {
      Name = "RestoreFiles"
      Type = Restore
      Client = backuptest-fd
      FileSet="Full Set"
      # Storage = File
      Storage = DLT
      Pool = Default
      Messages = Standard
      Where = /tmp/bacula_restore
}

#----------#
# FILESETS #
#----------#


#----- FILESET for Main2 & Director2 -----#

FileSet {
  Name = "Full Set"
  Include {
        Options {
                signature = MD5
        }
        File = /
        File = /boot
  }
  Exclude {
        File = /proc
        File = /tmp
        File = /.journal
        File = /.fsck
  }
}


#----- FILESET for CATALOG BACKUP -----#

FileSet {
  Name = "Catalog"
  Include {
    Options {
      signature = MD5
    }
    File = /var/bacula/bacula.sql
  }
}

#----------#
# SCHEDULE #
#----------#

#----- SCHEDULE for Defaultjob -----#

Schedule {
        Name = "WeeklyCycle"
        Run = Level=Full Pool=SundayPool Monday at 0:10am
        Run = Level=Full Pool=MondayPool Tuesday at 0:10am
        Run = Level=Full Pool=TuesdayPool Wednesday at 0:10am
        Run = Level=Full Pool=WednesdayPool Thursday at 0:10am
        Run = Level=Full Pool=ThursdayPool Friday at 0:10am
        Run = Level=Full Pool=FridayPool Saturday at 0:10am
        Run = Level=Full Pool=SaturdayPool  Sunday at 0:10am
}
#----- SCHEDULE for main2 -----#

Schedule {
        Name = "WeeklyCyclemain2"
        Run = Level=Full Pool=SundayPool Monday at 0:40am
        Run = Level=Full Pool=MondayPool Tuesday at 0:40am
        Run = Level=Full Pool=TuesdayPool Wednesday at 0:40am
        Run = Level=Full Pool=WednesdayPool Thursday at 0:40am
        Run = Level=Full Pool=ThursdayPool Friday at 0:40am
        Run = Level=Full Pool=FridayPool Saturday at 0:40am
        Run = Level=Full Pool=SaturdayPool  Sunday at 0:40am
}

#----- SCHEDULE for director2 -----#

Schedule {
        Name = "WeeklyCycledirector2"
        Run = Level=Full Pool=SundayPool Monday at 1:10am
        Run = Level=Full Pool=MondayPool Tuesday at 1:10am
        Run = Level=Full Pool=TuesdayPool Wednesday at 1:10am
        Run = Level=Full Pool=WednesdayPool Thursday at 1:10am
        Run = Level=Full Pool=ThursdayPool Friday at 1:10am
        Run = Level=Full Pool=FridayPool Saturday at 1:10am
        Run = Level=Full Pool=SaturdayPool Sunday at 1:10am
}

#----- SCHEDULE for CATALOG BACKUP -----#
Schedule {
        Name = "WeeklyCycleAfterBackup"
        Run = Level=Full Pool=SundayPool Monday at 2:30am
        Run = Level=Full Pool=MondayPool Tuesday at 2:30am
        Run = Level=Full Pool=TuesdayPool Wednesday at 2:30am
        Run = Level=Full Pool=WednesdayPool Thursday at 2:30am
        Run = Level=Full Pool=ThursdayPool Friday at 2:30am
        Run = Level=Full Pool=FridayPool Saturday at 2:30am
        Run = Level=Full Pool=SaturdayPool  Sunday at 2:30am
}

#-----------------#
# CLIENT SETTINGS #
#-----------------#


#----- CLIENT 1 : backuptest -----#

Client {
  Name = backuptest-fd
  Address = 170.1.2.13
  FDPort = 9102
  Catalog = MyCatalog
  Password = "kewtest"  # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}

#----- CLIENT 2 : main2 -----#

Client {
  Name = main-fd
  Address = 170.1.2.15
  FDPort = 9102
  Catalog = MyCatalog
  Password = "kewtest"  # password for FileDaemon
  File Retention = 30 days            # 30 days
  Job Retention = 6 months            # six months
  AutoPrune = yes                     # Prune expired Jobs/Files
}


#----- CLIENT 3 : director2 -----#

Client {
Name = direct2-fd
Address = 170.1.2.16
FDPort = 9102
Catalog = MyCatalog
Password = "kewtest"
File Retention = 30 days
Job Retention = 6 months
AutoPrune = yes
}


#----------------------------------#
# FILE STORAGE DAEMON - DEFINITION #
#----------------------------------#

#----- DLT  -----#

Storage {
  Name = DLT
  Address = 170.1.2.13              # N.B. Use a fully qualified name here
  SDPort = 9103
  Password = "kewtest-storage"          # password for Storage daemon
  Device = DLT-VS160                  # must be same as Device in Storage daemon
  Media Type = DLT                    # must be same as MediaType in Storage 
daemon
}


#-------------------------#
# GENERIC CATALOG SERVICE #
#-------------------------#

Catalog {
  Name = MyCatalog
  dbname = bacula; user = bacula; password = ""
}

#------------------#
# GENERAL SETTINGS #
#------------------#
# REASONABLE MESSAGE DELIVERY #
# Almost everything To email address and to console #

Messages {
  Name = Standard

# NOTE! If you send to two email or more email addresses, you will need
#  to replace the %r in the from field (-f part) with a single valid
#  email address in both the mailcommand and the operatorcommand.
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula: 
%t %e of %c %l\" %r"
  operatorcommand = "/usr/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/log" = all, !skipped
}

#----------------------------------#
# DAEMON MESSAGE DELIVERY (no job) #
#----------------------------------#

Messages {
  Name = Daemon
  mailcommand = "/usr/sbin/bsmtp -h localhost -f \"\(Bacula\) %r\" -s \"Bacula 
daemon message\" %r"
  mail = [EMAIL PROTECTED] = all, !skipped
  console = all, !skipped, !saved
  append = "/var/bacula/log" = all, !skipped
}


#-------#
# POOLS #
#-------#

#----- Default Pool for jobs, but will hold no actual volumes -----#

Pool {
        Name = Default
        Pool Type = Backup
        #Recycle = yes                       # Bacula can automatically recycle 
Volumes
        #AutoPrune = yes                     # Prune expired volumes
        #Recycle = yes
        #Accept Any Volume = yes             # write on any volume in the pool
}

#----- SUNDAY -----#
Pool {
        Name = SundayPool
        Pool Type = Backup
        #Recycle = yes
        AutoPrune = yes
        Recycle = yes
        Accept Any Volume = yes
        Maximum Volume Jobs = 3
        VolumeRetention = 5d
        Volume Use Duration = 5d
}

#----- MONDAY -----#

Pool {
        Name = MondayPool
        Pool Type = Backup
        #Recycle = yes
        AutoPrune = yes
        Recycle = yes
        Accept Any Volume = yes
        Maximum Volume Jobs = 3
        VolumeRetention = 5d
        Volume Use Duration = 5d
}

#----- TUESDAY -----#

Pool {
        Name = TuesdayPool
        Pool Type = Backup
        #Recycle = yes
        AutoPrune = yes
        Recycle = yes
        Accept Any Volume = yes
        Maximum Volume Jobs = 3
        VolumeRetention = 5d
        Volume Use Duration = 5d
}

#----- WEDNESDAY -----#

Pool {
        Name = WednesdayPool
        Pool Type = Backup
        #Recycle = yes
        AutoPrune = yes
        Recycle = yes
        Accept Any Volume = yes
        Maximum Volume Jobs = 3
        VolumeRetention = 5d
        Volume Use Duration = 5d
}

#----- THURSDAY -----#

Pool {
        Name = ThursdayPool
        Pool Type = Backup
        #Recycle = yes
        AutoPrune = yes
        Recycle = yes
        Accept Any Volume = yes
        Maximum Volume Jobs = 3
        VolumeRetention = 5d
        Volume Use Duration = 5d
}

#----- FRIDAY -----#

Pool {
        Name = FridayPool
        Pool Type = Backup
        #Recycle = yes
        AutoPrune = yes
        Recycle = yes
        Accept Any Volume = yes
        Maximum Volume Jobs = 3
        VolumeRetention = 5d
        Volume Use Duration = 5d
}


#----- SATURDAY -----#

Pool {
        Name = SaturdayPool
        Pool Type = Backup
        #Recycle = yes
        AutoPrune = yes
        Recycle = yes
        Accept Any Volume = yes
        Maximum Volume Jobs = 3
        VolumeRetention = 5d
        Volume Use Duration = 5d
}

#--------#
# OTHERS #
#--------#

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

Reply via email to