I’m having a similar issue. I purchased some new tapes but don’t see them in Bat or Bconsole. I put them into the drive and I suspected they would default to the Scratch Media Pool but no such luck.
From: Eric Chennells [mailto:eric AT zymeworks DOT com]
Sent: Friday, August 10, 2012 12:03 PM
To: bacula-users AT lists.sourceforge DOT net
Subject: [Bacula-users] Bacula refusing to use existing tape and wants to label a fresh one
I have this problem on one of my tape drives, it is a single drive, no autoloader.
The job is partially completed and it needs a new tape, and it requests for me to label a new one. I have a tape that as far as I can see is perfect for the job, right pool, purged, yet when I mount it bacula just keeps telling me to label a new one.
I suspect I must have a configuration problem but am not sure where to look.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
10-Aug 08:28 whatever.lan-sd JobId 10649: Job Archive.2012-08-09_10.59.32_30 is waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: "whatever.lan-internal-tape" (/dev/tape/by-id/scsi-3500110a0011ad17e-nst)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Listing from "list media", the tape is in the correct ArchivePool.
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| mediaid | volumename | volstatus | enabled | volbytes | volfiles | volretention | recycle | slot | inchanger | mediatype | lastwritten |
| 88 | ZW1078L4 | Purged | 1 | 817,155,742,720 | 111 | 630,720,000 | 0 | 0 | 0 | LTO-4 | 2012-05-12 18:03:46 |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Bacula sd configuration file:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
WorkingDirectory = "/var/lib/bacula"
Pid Directory = "/var/run"
Maximum Concurrent Jobs = 40
Name = whatever.nothing-dir
Name = whatever.lan-internal-tape
Description = HP Ultrium StorageWorks 1840
Archive Device = /dev/tape/by-id/scsi-3500110a0011ad17e-nst
# Allow 800MB of spooling
Spool Directory = /mnt/localDrive/spool
Maximum Spool Size = 8000080110
Maximum block size = 131072
# The following options allow tape requests to be handled without
# interaction on the console. When a new tape is needed, the current
# one will be ejected. The drive will be polled until the requested
Maximum Open Wait = 1 day
Volume Poll Interval = 15 minutes
# Enable the Alert command only if you have the mtx package loaded
Alert Command = "sh -c 'tapeinfo -f /dev/sg0 |grep TapeAlert|cat'"
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Notice of Confidentiality: The information transmitted is intended only for the
person or entity to which it is addressed and may contain confidential and/or
privileged material. Any review, re-transmission, dissemination or other use of
or taking of any action in reliance upon this information by persons or entities
other than the intended recipient is prohibited. If you received this in error
please contact the sender immediately by return electronic transmission and then
immediately delete this transmission including all attachments without copying,
distributing or disclosing the same.