Fred, his comments were farther down inside the text.  He suggested  
increasing the max jobs, and incrementing the debug levels.  Scroll  
down.

On Sep 13, 2006, at 12:15 PM, Fred Dussault wrote:
> thanks for the kind words!
>
> Did you see anything blatantly and obviously wrong with my config?
>
>> Hello,
>>
>> Congratulations on being the first person to actually present a
> Migration
>> problem and for providing lots of nice information !   :-)
>>
>> On Wednesday 13 September 2006 20:13, Your Name wrote:
>>> Greetings,
>>>
>>> I have a simple setup,  I've included my conf files below.  here's
> the
>>> situation.
>>>
>>> I have one client, (the bacula server) one tape drive (exabyte vx-2
>>> external drive, no changer) one tape volume, one "File" volume.
>>>
>>> 2 backup jobs, one of /home, and one of the catalog.
>>>
>>> I can pass all the hardware tests etc.  here's my process.
>>>
>>> drop the database, reload a clean database. delete the backup file
>>> volumes from the directory.  fresh. start the 3 bacula daemons
> using
>>> the conf files below.
>>>
>>> label a volume for the File pool, label a tape for the tape pool.
>>> everything is good.
>>>
>>> run the fd backup, writes to the file.  good
>>> run the catalog backup, it writes to file as well.
>>>
>>> I then update the volume to "used" so it can be eligable for
> migration.
>>>
>>> I run the migrate-volume job, and I get:
>>> ###############################################
>>> the following 1 jobIDs will be migrated :1
>>> Migration using JobID=1 job=client1.2006-09-13_11.06.14
>>> Bootstrap records written to /opt/bacula/working/adcd1149-
>>> dir.restore.1.bsr
>>>
>>> the job will require the following
>>> volume Backup00001| Storage(s) File| SD Devices FileStorage
>>> #################################################
>>>
>>> and the job is then waiting for max storage jobs.
>>>
>>> output for status storage=file=
>>>
>>> #################################################
>>>
>>> Running jobs: No Jobs Running
>>> ====
>>> Jobs waiting to reserve a drive:
>>> ====
>>> Terminated Jobs:
>>> jobID level  files  bytes  status  finnished   name
>>> 1      full   7059   198.9M  OK     13-sep-06 11:06 client1
>>> 2      full      1    848.7k OK      13-sep-06 11:08  backupcatatlog
>>> ====
>>> device status:
>>> Device "FileStorage" (/bacvols/volumes) is not open
>>> Device "Drive-1" (/dev/nst0) os mounted with Volume="Tape00001"
>>> Pool="Unknown"
>>>    total bytes Read=0 blocks read =0 bytes/block=0
>>> ===
>>> In use volume status
>>> Tape00001 on device "Drive-1" (/dev/nst0)
>>> ====
>>>
>>> so I'm kind of stuck
>>>
>>> I've been fighting it for a day and a half now, and I'm not sure
> what
>>> I'm doing wrong, its probably something obvious, but for some
> reason,
>>> I'm blind to it..
>>
>> Why don't you try to set Maximum Concurrent Jobs = 20 in your bacula-
> dir.conf?
>> I suspect that the Director is having problems running jobs.
>>
>> If the problem persists, you can do two additional things:
>> 1. Show us the output of "status dir" so we can see what the Director
> has
>> running.
>>
>> 2. Try running the director with debug level 100 (i.e. -d100) on the
> command
>> line.  That should show us if anything is getting hung up in the
> reservation
>> system.
>>
>> Regards,
>>
>> Kern
>>
>>
>>>
>>> below are my conf files.  if there is more information you would
> like,
>>> please let me know, and I'll provide it
>>>
>>> scroll down if you dare...
>>> #
>>> #  For Bacula release 1.39.22 (08 Septermber 2006) -- mandrake
> release
>>> #
>>> #  You might also want to change the default email address
>>> #   from root to your address.  See the "mail" and "operator"
>>> #   directives in the Messages resource.
>>> #
>>>
>>> Director {                            # define myself
>>>   Name = adcd1149-dir
>>>   DIRport = 9101                # where we listen for UA connections
>>>   QueryFile = "/opt/bacula/etc/query.sql"
>>>   WorkingDirectory = "/opt/bacula/working"
>>>   PidDirectory = "/opt/bacula/working"
>>>   Maximum Concurrent Jobs = 1
>>>   Password = "directorpassword"         # Console password
>>>   Messages = Daemon
>>> }
>>>
>>> JobDefs {
>>>   Name = "DefaultJob"
>>>   Type = Backup
>>>   Level = Incremental
>>>   Client = adcd1149-fd
>>>   FileSet = "Full Set"
>>>  # Schedule = "WeeklyCycle"
>>>   Storage = File
>>>   Messages = Standard
>>>   Pool = Default
>>>   Priority = 10
>>> }
>>>
>>>
>>> #
>>> # Define the main nightly save backup job
>>> #   By default, this job will back up to disk in /tmp
>>> Job {
>>>   Name = "Client1"
>>>   JobDefs = "DefaultJob"
>>> #  Write Bootstrap = "/opt/bacula/working/Client1.bsr"
>>> }
>>>
>>> # Backup the catalog database (after the nightly save)
>>> Job {
>>>   Name = "BackupCatalog"
>>>   JobDefs = "DefaultJob"
>>>   Level = Full
>>>   FileSet="Catalog"
>>>  # Schedule = "WeeklyCycleAfterBackup"
>>>  # This creates an ASCII copy of the catalog
>>>   RunBeforeJob = "/opt/bacula/etc/make_catalog_backup bacula bacula"
>>>  # This deletes the copy of the catalog
>>>   RunAfterJob  = "/opt/bacula/etc/delete_catalog_backup"
>>>  # Write Bootstrap = "/opt/bacula/working/BackupCatalog.bsr"
>>>   Priority = 11                   # run after main backup
>>> }
>>>
>>> Job {
>>>    Name = "Migrate-Volumes"
>>>    Type = Migrate
>>>    Level = Full
>>>    Client = adcd1149-fd
>>>    FileSet = "Full Set"
>>>    Messages = Standard
>>>    Storage = Tape
>>>    Pool = Default
>>>    Maximum Concurrent Jobs = 4
>>>    Selection Type = Volume
>>>    Selection Pattern = "Backup00001*"
>>> }
>>>
>>>
>>> #
>>> # Standard Restore template, to be changed by Console program
>>> #  Only one such job is needed for all Jobs/Clients/Storage ...
>>> #
>>> Job {
>>>   Name = "RestoreFiles"
>>>   Type = Restore
>>>   Client=adcd1149-fd
>>>   FileSet="Full Set"
>>>   Storage = File
>>>   Pool = Default
>>>   Messages = Standard
>>>   Where = /tmp/bacula-restores
>>> }
>>>
>>>
>>> # List of files to be backed up
>>> FileSet {
>>>   Name = "Full Set"
>>>   Include {
>>>     Options {
>>>       signature = MD5
>>>     }
>>>
>>>     File = /home
>>>     File = /export
>>>     File = /export/home
>>>     File = "c:/documents and settings/dussaulta/desktop"
>>>   }
>>>
>>> #
>>> # If you backup the root directory, the following two excluded
>>> #   files can be useful
>>> #
>>>   Exclude {
>>>     File = /proc
>>>     File = /tmp
>>>     File = /.journal
>>>     File = /.fsck
>>>   }
>>> }
>>>
>>> # This is the backup of the catalog
>>> FileSet {
>>>   Name = "Catalog"
>>>   Include {
>>>     Options {
>>>       signature = MD5
>>>     }
>>>     File = /opt/bacula/working/bacula.sql
>>>   }
>>> }
>>>
>>> # Client (File Services) to backup
>>> Client {
>>>   Name = adcd1149-fd
>>>   Address = adcd1149
>>>   FDPort = 9102
>>>   Catalog = MyCatalog
>>>   Password = "fdpassword"          # password for FileDaemon
>>>   File Retention = 30 days            # 30 days
>>>   Job Retention = 6 months            # six months
>>>   AutoPrune = yes                     # Prune expired Jobs/Files
>>> }
>>>
>>> # Definition of file storage device
>>> Storage {
>>>   Name = File
>>> # Do not use "localhost" here
>>>   Address = adcd1149                # N.B. Use a fully qualified
> name
>>> here
>>>   SDPort = 9103
>>>   Password = "sdpassword"
>>>   Device = FileStorage
>>>   Media Type = File
>>> }
>>> Storage {
>>>   Name = Tape
>>>   #Do not use "localhost" here
>>>   Address = adcd1149                # N.B. Use a fully qualified
> name
>>> here
>>>   SDPort = 9103
>>>   Password = "sdpassword"          # password for Storage daemon
>>>   Device = Drive-1                      # must be same as Device in
>>> Storage daemon
>>>   Media Type = "VXA-2"                  # must be same as MediaType
> in
>>> Storage daemon
>>> #  Autochanger = yes                   # enable for autochanger
> device
>>> }
>>>
>>> # Generic catalog service
>>> Catalog {
>>>   Name = MyCatalog
>>>   dbname = bacula; user = bacula; password = ""
>>> }
>>>
>>> #
>>>   mailcommand = "/opt/bacula/bin/bsmtp -h localhost -f \"\(Bacula\)
> %
>>> r\" -s \"Bacula: %t %e of %c %l\" %r"
>>>   operatorcommand = "/opt/bacula/bin/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 = "/opt/bacula/working/log" = all, !skipped
>>> }
>>>
>>> # Message delivery for daemon messages (no job).
>>> Messages {
>>>   Name = Daemon
>>>   mailcommand = "/opt/bacula/bin/bsmtp -h localhost -f \"\(Bacula\)
> %
>>> r\" -s \"Bacula daemon message\" %r"
>>>   mail = [EMAIL PROTECTED] = all, !skipped
>>>   console = all, !skipped, !saved
>>>   append = "/opt/bacula/working/log" = all, !skipped
>>> }
>>>
>>> # Default pool definition
>>> Pool {
>>>   Name = Default
>>>   Pool Type = Backup
>>>   Next Pool = Tape
>>>   Recycle = yes                       # Bacula can automatically
>>> recycle Volumes
>>>   AutoPrune = yes                     # Prune expired volumes
>>>   Volume Retention = 365 days         # one year
>>> }
>>>
>>> Pool {
>>>   Name = Tape
>>>   Pool Type = Backup
>>>   Recycle = no                       # Bacula can automatically
> recycle
>>> Volumes
>>>   AutoPrune = no                     # Prune expired volumes
>>>   Volume Retention = 1095 days         # Three year
>>> }
>>>
>>> #
>>> # Restricted console used by tray-monitor to get the status of the
>>> director
>>> #
>>> Console {
>>>   Name = adcd1149-mon
>>>   Password = "MLhvSQMlt97xrDgR6Z6eRjxcTEWnoNWJtKssUAW1B79/"
>>>   CommandACL = status, .status
>>> }
>>>
> ======================================================================
>>> #
>>> # Default Bacula Storage Daemon Configuration file
>>> #
>>> #  For Bacula release 1.39.22 (08 Septermber 2006) -- mandrake
> release
>>> #
>>>
>>> Storage {                             # definition of myself
>>>   Name = adcd1149-sd
>>>   SDPort = 9103                  # Director's port
>>>   WorkingDirectory = "/opt/bacula/working"
>>>   Pid Directory = "/opt/bacula/working"
>>>   Maximum Concurrent Jobs = 20
>>> }
>>>
>>> #
>>> # List Directors who are permitted to contact Storage daemon
>>> #
>>> Director {
>>>   Name = adcd1149-dir
>>>   Password = "sdpassword"
>>> }
>>>
>>> #
>>> # Restricted Director, used by tray-monitor to get the
>>> #   status of the storage daemon
>>> #
>>> Director {
>>>   Name = adcd1149-mon
>>>   Password = "mon password"
>>>   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 = FileStorage
>>>   Media Type = File
>>>   Archive Device = /bacvols/volumes
>>>   LabelMedia = yes;                   # lets Bacula label unlabeled
>>> media
>>>   Random Access = Yes;
>>>   AutomaticMount = yes;               # when device opened, read it
>>>   RemovableMedia = no;
>>>   AlwaysOpen = no;
>>> }
>>>
>>>
>>> Device {
>>>   Name = Drive-1                      #
>>>   Drive Index = 0
>>>   Media Type = "VXA-2"
>>>   Archive Device = /dev/nst0
>>>   AutomaticMount = yes;               # when device opened, read it
>>>   AlwaysOpen = yes;
>>>   LabelMedia = yes;
>>>   RemovableMedia = yes;
>>>   RandomAccess = no;
>>> #  AutoChanger = yes
>>> #  # Enable the Alert command only if you have the mtx package
> loaded
>>> #  Alert Command = "sh -c 'tapeinfo -f %c |grep TapeAlert|cat'"
>>> }
>>>
>>> #
>>> # Send all messages to the Director,
>>> # mount messages also are sent to the email address
>>> #
>>> Messages {
>>>   Name = Standard
>>>   director = adcd1149-dir = all
>>> }
>>> ===================================================================
>>>  #
>>> # Default  Bacula File Daemon Configuration file
>>> #
>>> #  For Bacula release 1.39.22 (08 Septermber 2006) -- mandrake
> release
>>> #
>>> # There is not much to change here except perhaps the
>>> # File daemon Name to
>>> #
>>>
>>> #
>>> # List Directors who are permitted to contact this File daemon
>>> #
>>> Director {
>>>   Name = adcd1149-dir
>>>   Password = "fdpassword"
>>> }
>>>
>>> #
>>> # Restricted Director, used by tray-monitor to get the
>>> #   status of the file daemon
>>> #
>>> Director {
>>>   Name = adcd1149-mon
>>>   Password = "mon-password"
>>>   Monitor = yes
>>> }
>>>
>>> #
>>> # "Global" File daemon configuration specifications
>>> #
>>> FileDaemon {                          # this is me
>>>   Name = adcd1149-fd
>>>   FDport = 9102                  # where we listen for the director
>>>   WorkingDirectory = /opt/bacula/working
>>>   Pid Directory = /opt/bacula/working
>>>   Maximum Concurrent Jobs = 20
>>> }
>>>
>>> # Send all messages except skipped files back to Director
>>> Messages {
>>>   Name = Standard
>>>   director = adcd1149-dir = all, !skipped, !restored
>>> }
>>>
>>>
>>>
>>> -- 
>>>
>>>
>>> --------------------------------------------------------------------
> -----
>>> Using Tomcat but need to do more? Need to support web services,
> security?
>>> Get stuff done quickly with pre-integrated technology to make your
> job
>> easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>>> http://sel.as-us.falkag.net/sel?
> cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> Bacula-users mailing list
>>> Bacula-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/bacula-users
>>>
>>
>>
>
> -- 
>
>
> ---------------------------------------------------------------------- 
> ---
> Using Tomcat but need to do more? Need to support web services,  
> security?
> Get stuff done quickly with pre-integrated technology to make your  
> job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache  
> Geronimo
> http://sel.as-us.falkag.net/sel? 
> cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Bacula-users mailing list
> Bacula-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bacula-users

-- 
Jo Rhett
senior geek
Silicon Valley Colocation


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to