Hello all,

 

                I am having a lot of trouble setting up Bacula to use DVD+RW’s for its backup media.  Unfortunately I do not have the money for a home tape system, so I decided to go with DVD+RW’s.  Here is what is going on.  When I attempt to run a backup job the console requests that I mount a media volume (chdata1-0001, is the default setting for the first label per my config files listed below).  Since it a blank DVD+RW I am unable to mount it.  Also, I am unable to label it manually.  This makes sense since you mount file systems not a drive.  I am running Bacula version 1.38.9 with dvd+rw-tools version 5.21.4.10.8 patched with the provided Bacula source patch file.  I am running Gentoo Linux Distribution.    In my system log file I am receiving some interesting errors:

 

May 31 13:18:46 chdata1 Unable to identify CD-ROM format.

May 31 13:18:47 chdata1 Unable to identify CD-ROM format.

May 31 13:18:47 chdata1 Unable to identify CD-ROM format.

May 31 13:18:48 chdata1 Unable to identify CD-ROM format.

May 31 13:20:01 chdata1 cron[9758]: (root) CMD (test -x /usr/sbin/run-crons && /usr/sbin/run-c$

May 31 13:20:18 chdata1 attempt to access beyond end of device

May 31 13:20:18 chdata1 hdc: rw=0, want=68, limit=4

May 31 13:20:18 chdata1 isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16

May 31 13:20:19 chdata1 attempt to access beyond end of device

May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4

May 31 13:20:19 chdata1 isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16

May 31 13:20:19 chdata1 attempt to access beyond end of device

May 31 13:20:19 chdata1 hdc: rw=0, want=68, limit=4

May 31 13:20:19 chdata1 isofs_fill_super: bread failed, dev=hdc, iso_blknum=16, block=16

 

 My DVD Writer does support the media I am using, and it has been formatted using dvd+rw-tools.  I have also attempted to use DVD-R and DVD+R with the same result.  The exact requests I receive in Bacula are as follows:

 

01-Jun 11:31 chdata1-dir: No prior Full backup Job record found.

01-Jun 11:31 chdata1-dir: No prior or suitable Full backup found. Doing FULL backup.

01-Jun 11:31 chdata1-dir: Start Backup JobId 8, Job=Client1.2006-06-01_11.31.22

01-Jun 11:31 chdata1-dir: Created new Volume "chdata1-0001" in catalog.

01-Jun 11:31 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/dev/cdrom) for Job Client1.2006-06-01_11.31.22

 

I then issue command:

*mount

Automatically selected Storage: DVD

3001 OK mount. Device="DVD Writer" (/dev/cdrom)

 

With this result:

*messages

01-Jun 11:32 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/dev/cdrom) for Job Client1.2006-06-01_11.31.22

 

Any help is greatly appreciated.  I am now at a loss after a week of reading online.  I am somewhat new to *nix, not to computers at all.  I would consider myself on a scale of 1-10 on knowledge at a 4 with *nix with always more to learn :] .

 

Thanks.  Below are config and log files.

 

Below is my bacula-sd.conf contents (NOTE: I removed unneeded portions for ease of reading):

 

# Default Bacula Storage Daemon Configuration file

#

#  For Bacula release 1.38.9 (02 May 2006) -- gentoo 1.6.14

#

# You may need to change the name of your tape drive

#   on the "Archive Device" directive in the Device

#   resource.  If you change the Name and/or the

#   "Media Type" in the Device resource, please ensure

#   that dird.conf has corresponding changes.

#

 

Storage {                             # definition of myself

  Name = chdata1-sd

  SDPort = 9103                  # Director's port

  WorkingDirectory = "/var/lib/bacula"

  Pid Directory = "/var/run"

  Maximum Concurrent Jobs = 20

 

# A DVD device

#

Device {

  Name = "DVD Writer"

  Media Type = DVD

  Archive Device = /dev/cdrom

  LabelMedia = yes;                   # lets Bacula label unlabeled media

  Random Access = Yes;

  AutomaticMount = yes;               # when device opened, read it

  RemovableMedia = yes;

  AlwaysOpen = no;

  MaximumPartSize = 800M;

  RequiresMount = yes;

  MountPoint = /mnt/cdrom;

  MountCommand = "/bin/mount -t iso9660 -o ro %a %m";

  UnmountCommand = "/bin/umount %m";

  SpoolDirectory = /tmp/backup;

  WritePartCommand = "/etc/bacula/dvd-handler %a write %e %v"

  FreeSpaceCommand = "/etc/bacula/dvd-handler %a free"

}

 

My Bacula-dir.conf (NOTE: also edited out non-relevant settings):

 

#

# Default Bacula Director Configuration file

#

#  The only thing that MUST be changed is to add one or more

#   file or directory names in the Include directive of the

#   FileSet resource.

#

#  For Bacula release 1.38.9 (02 May 2006) -- gentoo 1.6.14

#

#  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 = chdata1-dir

  DIRport = 9101                # where we listen for UA connections

  QueryFile = "/usr/libexec/bacula/query.sql"

  WorkingDirectory = "/var/lib/bacula"

  PidDirectory = "/var/run"

  Maximum Concurrent Jobs = 1

  Password = "6RkpiDThtkE09b5cKrjF7x2m8hrqD6AAHKzs68t4fnok"         # Console password

  Messages = Daemon

}

 

JobDefs {

  Name = "DefaultJob"

  Type = Backup

  Level = Incremental

  Client = chdata1-fd

  FileSet = "Full Set"

  Schedule = "WeeklyCycle"

  Storage = DVD

  Messages = Standard

  Pool = Default

  Priority = 10

}

 

# 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 = "/usr/libexec/bacula/make_catalog_backup bacula bacula"

  # This deletes the copy of the catalog

  RunAfterJob  = "/usr/libexec/bacula/delete_catalog_backup"

  Write Bootstrap = "/var/lib/bacula/BackupCatalog.bsr"

  Priority = 11                   # run after main backup

}

 

# 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=chdata1-fd

  FileSet="Full Set"

  Storage = DVD

  Pool = Default

  Messages = Standard

  Where = /tmp/bacula-restores

}

# List of files to be backed up

FileSet {

  Name = "Full Set"

  Include {

    Options {

      signature = MD5

      compression=GZIP

     }

#

#  Put your list of files here, preceded by 'File =', one per line

#    or include an external list with:

#

#    File = <file-name

#

#  Note: / backs up everything on the root partition.

#    if you have other partitons such as /usr or /home

#    you will probably want to add them too.

#

#  By default this is defined to point to the Bacula build

#    directory to give a reasonable FileSet to backup to

#    disk storage during initial testing.

#

    File = /mnt/sda1/

  }

 

#

# If you backup the root directory, the following two excluded

#   files can be useful

#

  Exclude {

    File = /proc

    File = /tmp

    File = /.journal

    File = /.fsck

  }

}

 

 

# Definition of DVD storage device

Storage {

  Name = "DVD"

#  Do not use "localhost" here

  Address = chdata1                # N.B. Use a fully qualified name here

  SDPort = 9103

  Password = "H+4x+pE7C0TRcElwASlKmcrfdPQBkEQMOueGVzjH6+Tr"

  Device = "DVD Writer"

  MediaType = "DVD"

}

 

# Default pool definition

Pool {

  Name = Default

  Label Format = "chdata1-"

  Pool Type = Backup

  Recycle = yes                       # Bacula can automatically recycle Volumes

  AutoPrune = yes                     # Prune expired volumes

  Volume Retention = 365 days         # one year

  Accept Any Volume = yes             # write on any volume in the pool

}

 

Below is my Bacula log file:

 

31-May 13:29 chdata1-dir: No prior Full backup Job record found.

31-May 13:29 chdata1-dir: No prior or suitable Full backup found. Doing FULL backup.

31-May 13:29 chdata1-dir: Start Backup JobId 5, Job=Client1.2006-05-31_13.29.02

31-May 13:29 chdata1-dir: Created new Volume "chdata1-0001" in catalog.

31-May 13:29 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/d$

31-May 13:29 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:652 Operator mail progr$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Intervention needed $

ERR=Child exited with code 1

31-May 13:29 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/d$

31-May 13:29 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:652 Operator mail progr$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Intervention needed $

ERR=Child exited with code 1

31-May 14:29 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/d$

31-May 14:29 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:652 Operator mail progr$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Intervention needed $

ERR=Child exited with code 1

31-May 16:29 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/d$

31-May 16:29 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:652 Operator mail progr$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Intervention needed $

ERR=Child exited with code 1

31-May 20:29 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/d$

31-May 20:29 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:652 Operator mail progr$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Intervention needed $

ERR=Child exited with code 1

01-Jun 04:29 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/d$

01-Jun 04:29 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:652 Operator mail progr$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Intervention needed $

ERR=Child exited with code 1

01-Jun 04:29 chdata1-sd: Please mount Volume "chdata1-0001" on Storage Device "DVD Writer" (/d$

01-Jun 04:29 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:652 Operator mail progr$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Intervention needed $

ERR=Child exited with code 1

01-Jun 10:51 chdata1-dir: Bacula 1.38.9 (02May06): 01-Jun-2006 10:51:47

  JobId:                  5

  Job:                    Client1.2006-05-31_13.29.02

  Backup Level:           Full (upgraded from Incremental)

  Client:                 "chdata1-fd" i686-pc-linux-gnu,gentoo,1.6.14

  FileSet:                "Full Set" 2006-05-31 12:14:52

  Pool:                   "Default"

  Storage:                "DVD"

  Scheduled time:         31-May-2006 13:28:25

  Start time:             31-May-2006 13:29:07

  End time:               01-Jun-2006 10:51:47

  Elapsed time:           21 hours 22 mins 40 secs

  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

  Volume name(s):

  Volume Session Id:      2

  Volume Session Time:    1149095369

  Last Volume Bytes:      0 (0 B)

  Non-fatal FD errors:    0

  SD Errors:              0

  FD termination status:  Canceled

  SD termination status:  Canceled

  Termination:            Backup Canceled

 

01-Jun 10:51 chdata1-dir: message.c:454 Mail prog: bsmtp: bsmtp.c:286 Fatal connect error to l$

01-Jun 10:51 chdata1-dir: Client1.2006-05-31_13.29.02 Error: message.c:465 Mail program termin$

CMD=/usr/sbin/bsmtp -h localhost -f "(Bacula) [EMAIL PROTECTED]" -s "Bacula: Backup Canceled of c$

ERR=Child exited with code 1

 

 

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

Reply via email to