Hi,
I send this to the list, too.
Joe Stump wrote:
Okay, I deleted all of the volumes and bacula is still asking me to
label the media. WHY?! Am I wrong is or is bacula simply unable to label
and rewrite to a blank tape?
Definitely not.
But, as I pointed out in the beginning, I can't really help you with
autolabeling.
So, it seems that you need to reread the manual or hope for more help
from list users.
Arno
24-Aug 13:58 camus-sd: Job camus-weekly-tape-job.2005-08-24_13.57.15
waiting. Cannot find any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: tape-storage
Media type: DDS-4
Pool: camus-weekly-tape-pool
This all worked like clockwork for a week and not it simply refuses to
take my nuked tape and relabel it and use it. Almost makes me want to go
back to using tar ...
--Joe
On Aug 24, 2005, at 1:26 PM, Arno Lehmann wrote:
Hi,
Joe Stump wrote:
*list volume=camus-weekly-tape-0003
+---------+------------------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| MediaId | VolumeName | VolStatus | VolBytes |
VolFiles | VolRetention | Recycle | Slot | InChanger | MediaType |
LastWritten |
+---------+------------------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
| 26 | camus-weekly-tape-0003 | Purged | 20,562,255,933 |
21 | 259,200 | 1 | 0 | 0 | DDS-4 |
2005-08-17 15:06:34 |
+---------+------------------------+-----------+----------------+----------+--------------+---------+------+-----------+-----------+---------------------+
funny.
What I see indicates that this tape can indeed be reused. For some
reason, though, it is still in state "Purged". This should become
"Recycle" when bacula knows this tape is loaded, it's in the right
pool, has the correct MediaType.
When you mount it manually, does the SD recognize it with its name? In
case you really did an mt weof on it, the bacula label is lost and it
needs to be relabeled.
If the SD does recognize it, I can only assume that it's not in the
right pool etc., see above.
If the label is removed, you can recreate it with the btape program.
In this case, you should inform bacula that it's empty, for example
using the purge or delete commands.
Arno
On Aug 24, 2005, at 12:16 PM, Arno Lehmann wrote:
Joe,
can you give us the output from the bconsole command llist
volume=xxx where xxx should be the name of the tape already in the
drive?
Arno
Joe Stump wrote:
Now it wants tape-0001 ... I want it to take the tape I put in
there and recycle it. Why is this so hard for bacula to understand?
If the tape that is in there is stale it should nuked it and label
it to its liking. Instead it's just sitting there wanting me to put
last Monday's tape in on Wednesday.
--Joe
On Aug 24, 2005, at 11:49 AM, Arno Lehmann wrote:
Hello,
Joe Stump wrote:
Sorry for the last post ... I guess I'm missing something now.
I've changed my volume retention to 5 days (I run tapes Mon-Fri
and have a different pool for the weekend when I'm not around)
and bacula still refuses to write over the data. Am I missing
something? Doesn't "Volume Retention = 5 days" mean "Keep this
volume for 5 days, but after that it's stale and overwrite it."?
Right, but the pool default only applies to newly created volumes.
I have also ran "update pool". No luck it refuses to overwrite
the old volume despite it being over a week old.
You need to update the volume information. See the update command
in the manual, or simply try it on the console.
To see the result, you can use the prune command.
Arno
--Joe
On Aug 24, 2005, at 3:34 AM, Arno Lehmann wrote:
Hi,
Joe Stump wrote:
Bacula gives me this error:
23-Aug 14:06 camus-sd: Job
camus-weekly-tape-job.2005-08-23_14.05.34 waiting. Cannot find
any appendable volumes.
Please use the "label" command to create a new Volume for:
Storage: tape-storage
Media type: DDS-4
Pool: camus-weekly-tape-pool
This is no exactly an error.
It simply means that bacula needs more volume space.
Despite me doing a mt -f /dev/st0 weof in my RunBefore script
as well as having the following in my Pool:
Erm. No.
Sorry.
I think you misunderstood part of bacula.
First, bacula doesn't know that the tape is cleared with your
model. You'd need at least to tell it that a new volume is in
the changer.
Second, bacula is not intended to blindly overwrite tapes. It
manages the volume use itself.
Pool {
Name = "camus-weekly-tape-pool"
Pool Type = Backup
Recycle = yes
AutoPrune = yes Volume Retention = 80 days
Accept Any Volume = yes
Maximum Volume Jobs = 1
Maximum Volume Bytes = 0
Label Format = "camus-weekly-tape-"
Maximum Volumes = 5
}
If you really want to overwrite the tape in the drive - which is
something I consider wrong - you should set a very short
retention time and let bacula itself decide hat the volume can
be overwritten.
Now, I can't help you with automatic labeling etc., but there
were some discussions on the list about how to implement a
backup scheme like you want it.
I wouldn't try that.
Arno
I also have LabelMedia = yes
# Tape drive
Device {
Name = tape-storage
Media Type = DDS-4
Archive Device = /dev/st0
AutomaticMount = yes;
AlwaysOpen = yes;
RemovableMedia = yes;
RandomAccess = no;
Close on Poll = yes;
LabelMedia = yes
}
What the heck am I missing?
--Joe
--
Joe Stump, CTO
Enotes.com, LLC
http://www.enotes.com
--
IT-Service Lehmann [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development
Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
Joseph C. Stump
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.joestump.net
--
IT-Service Lehmann [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Arno Lehmann http://www.its-lehmann.de
--
Joseph C. Stump
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.joestump.net
--
IT-Service Lehmann [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
Agile & Plan-Driven Development * Managing Projects & Teams *
Testing & QA
Security * Process Improvement & Measurement *
http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
<mailto:Bacula-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/bacula-users
--
Joseph C. Stump
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.joestump.net
--
IT-Service Lehmann [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Arno Lehmann http://www.its-lehmann.de
--
Joseph C. Stump
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
http://www.joestump.net
--
IT-Service Lehmann [EMAIL PROTECTED]
Arno Lehmann http://www.its-lehmann.de
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users