Aditional information:
When trying to label tapes I got same problem as mention in the initial case:
###############
#error message#
###############
*label
The defined Storage resources are:
     1: Autochanger0
     2: TapeLib0-Drive0
     3: TapeLib0-Drive1
Select Storage resource (1-3): 1
Enter autochanger drive[0]:
Enter new Volume name: 000002L2
Enter slot (0 or Enter for none): 2
Defined Pools:
     1: Default
     2: IncrementalTape0
     3: FullTape0
Select the Pool (1-3): 2
Connecting to Storage daemon Autochanger0 at alexandria.xxxx.xxx.xxx:9103 ...
Sending label command for Volume "000002L2" Slot 2 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result is Slot 1.
3307 Issuing autochanger "unload slot 1, drive 0" command.
3304 Issuing autochanger "load slot 2, drive 0" command.
3305 Autochanger "load slot 2, drive 0", status is OK.
Label command failed for Volume 000002L2.
Do not forget to mount the drive!!!
*
#################################

Roger Kvam wrote:
When trying to run a backup-job, bacula loads the correct tape, but fail to use it. If I manualy load correct tape, and in the console mount the drive before starting the job, the job runs correct, the changer seams to work well to, as it unload a tape, and inserting the correct tape. I have tried to add a "sleep 10" in the load command in the chio-changer script, without luck.

All tests with the "btape test" ran flawless.
################
#Error message:#
################
30-Nov 21:26 alexandria-dir: Start Backup JobId 33, Job=PatMailBackup.2005-11-30_21.26.06 30-Nov 20:26 pat: DIR and FD clocks differ by -3598 seconds, FD automatically adjusting. 30-Nov 21:26 alexandria-sd: 3301 Issuing autochanger "loaded drive 0" command. 30-Nov 21:26 alexandria-sd: 3302 Autochanger "loaded drive 0", result is Slot 9. 30-Nov 21:26 alexandria-sd: 3307 Issuing autochanger "unload slot 9, drive 0" command. 30-Nov 21:27 alexandria-sd: 3304 Issuing autochanger "load slot 1, drive 0" command. 30-Nov 21:27 alexandria-sd: 3305 Autochanger "load slot 1, drive 0", status is OK. 30-Nov 20:27 pat: PatMailBackup.2005-11-30_21.26.06 Fatal error: job.c:1662 Comm error with SD. bad response to Append Data. ERR=Resource temporarily unavailable 30-Nov 21:27 alexandria-dir: PatMailBackup.2005-11-30_21.26.06 Error: Bacula 1.38.0 (28Oct05): 30-Nov-2005 21:27:54
########################################################################
Here is a log from a successful backup when correct tape is loaded and # mounted before job is started: #
########################################################################
02-Dec 18:02 alexandria-dir: Start Backup JobId 41, Job=PatMailBackup.2005-12-02_18.02.33 02-Dec 17:02 pat: DIR and FD clocks differ by -3598 seconds, FD automatically adjusting. 02-Dec 18:02 alexandria-sd: 3301 Issuing autochanger "loaded drive 0" command. 02-Dec 18:02 alexandria-sd: 3302 Autochanger "loaded drive 0", result is Slot 2. 02-Dec 18:02 alexandria-sd: 3301 Issuing autochanger "loaded drive 0" command. 02-Dec 18:02 alexandria-sd: 3302 Autochanger "loaded drive 0", result is Slot 2. 02-Dec 18:02 alexandria-sd: Wrote label to prelabeled Volume "000002L2" on device "TapeLib0-Drive0" (/dev/nsa0)
02-Dec 18:02 alexandria-sd: Spooling data ...
02-Dec 18:05 alexandria-sd: Committing spooled data to Volume. Despooling 1,314,803,267 bytes ... 02-Dec 18:06 alexandria-sd: Sending spooled attrs to the Director. Despooling 3,921,248 bytes ...
02-Dec 18:06 alexandria-dir: Bacula 1.38.0 (28Oct05): 02-Dec-2005 18:06:36
  JobId:                  41
  Job:                    PatMailBackup.2005-12-02_18.02.33
  Backup Level:           Incremental, since=2005-11-29 13:13:54
Client: "Pat" i386-unknown-freebsd5.2.1,freebsd,5.2.1-RELEASE
  FileSet:                "PatFileSet" 2005-11-29 00:05:02
  Pool:                   "IncrementalTape0"
  Storage:                "Autochanger0"
  Scheduled time:         02-Dec-2005 18:02:30
  Start time:             02-Dec-2005 18:02:35
  End time:               02-Dec-2005 18:06:36
  Priority:               10
  FD Files Written:       17,923
  SD Files Written:       17,923
  FD Bytes Written:       1,310,628,325
  SD Bytes Written:       1,313,044,041
  Rate:                   5438.3 KB/s
  Software Compression:   None
  Volume name(s):         000002L2
  Volume Session Id:      1
  Volume Session Time:    1133546529
  Last Volume Bytes:      1,314,558,744
  Non-fatal FD errors:    0
  SD Errors:              0
  FD termination status:  OK
  SD termination status:  OK
  Termination:            Backup OK

here are my relevant configurations:
###########
#Director:#
###########
Job {
  Name = "PatMailBackup"
  Client = Pat
  Type = Backup
  Messages = Standard
  Storage = Autochanger0
  FileSet="PatFileSet"
  Schedule = "NightlyTape"
  Priority = 10
  Level = Incremental
  Pool = IncrementalTape0
  Full Backup Pool = FullTape0
  SpoolData = yes
}
Storage {
  Name = Autochanger0
  Device = TapeLib0-Drive0, TapeLib0-Drive1
  Address = xxxx.xxxxx.xxx
  SDPort = 9103
  Password = "iTxZosxNduiE6pcxASWch7CzW6CevcK8eFDqptmXFBwc"
  Device = "Autochanger0"
  Media Type = LTO-2
  Autochanger = yes
}

###############
#Storagedaemon#
###############
Autochanger {
  Name = "Autochanger0"
  Device = TapeLib0-Drive0, TapeLib0-Drive1
  Changer Device = /dev/sh0
  Changer Command = "/usr/local/sbin/chio-changer %o %S %a"
}

Device {
  Name = "TapeLib0-Drive0"
  Media Type = LTO-2
  Archive Device = /dev/nsa0 # Normal archive device
  Changer Device = /dev/ch0 # Generic SCSI device name
#  Changer Command = "/usr/local/sbin/mtx-changer %c %o %S %a %d"
#  Changer Command = "/usr/local/sbin/chio-changer %c %o %S %a"
  Changer Command = "/usr/local/sbin/chio-changer %o %S %a"
  Autochanger = yes
  LabelMedia = no
  AutomaticMount = yes
  AlwaysOpen = yes
  ############### for testing ##############
  Backward Space Record = no
  Backward Space File = no
  #########################################
  Hardware End of Medium = no
  Fast Forward Space File = yes
  BSF at EOM = yes
  Drive Index = 0
  TWO EOF = yes
}

TapeLib0-Drive1 is identical to TapeLib0-Drive0, but has never been used.

Everyting compiled from source on FreeBSD 6.0 Release I386
Bacula source: 1.38

 ./configure \
    --sbindir=/usr/local/bin \
    --sysconfdir=/usr/local/etc/bacula \
    --with-pid-dir=/var/run/bacula \
    --with-subsys-dir=/usr/local/bacula/bin \
    --with-mysql=yes \
    --with-working-dir=/usr/local/bacula/bin/working \
    [EMAIL PROTECTED] \
    --with-smtp-host=smtp.xxxx.xxxx.xxx \
    --with-dir_user=bacula \
    --with-fd_user=bacula \
    --with-sd_user=bacula \
    --enable-readline

Hardware:
alexandria# camcontrol devlist
<SEAGATE ST318453LW 0006>          at scbus0 target 0 lun 0 (da0,pass0)
<DELL PV-136T-FC 4194>             at scbus2 target 129 lun 0 (pass1)
<DELL PV-136T 3.11>                at scbus2 target 129 lun 1 (pass2,ch0)
<IBM ULTRIUM-TD2 37RH>             at scbus2 target 129 lun 2 (pass3,sa0)
<IBM ULTRIUM-TD2 37RH>             at scbus2 target 129 lun 3 (pass4,sa1)
<SEAGATE ST3146807FC 0006>         at scbus2 target 130 lun 0 (pass5,da1)
alexandria#



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to