hi there,


i have a problem with bacula wanting to use a tape i removed from the tape
library.

steps i did were:
- label 8 tapes by their barcode (label barcode, 000001L3 to 000008L3)
- remove 6 of those tapes
- made backups on the remaining 2 tapes 000001L3 and 000002L3 (only one
tape was needed)
- after a week removed the two tapes from the lib
bconsole <<EOFI
wait
umount
1 # 1 is the tape lib, 2 would be "file" storage
EOFI
mtx -f /dev/sg1 eject

- inserted two other volumes (000003L3 and 000004L3) from the previously
labeled (pool default), updated slots
##update slots
#The defined Storage resources are:
#     1: PV-124T
#     2: File
#Select Storage resource (1-2): Unexpected question has been received.
#1
#Connecting to Storage daemon PV-124T at nas01:9103 ...
#3306 Issuing autochanger "slots" command.
#Device "PV-124T" has 8 slots.
#Connecting to Storage daemon PV-124T at nas01:9103 ...
#3306 Issuing autochanger "list" command.
#Catalog record for Volume "000004L3" updated to reference slot 1.
#Catalog record for Volume "000003L3" updated to reference slot 8.
##

still bacula wants to write to the first tape (000001L3) and blocks new
jobs.
InChanger flag is set for tapes 000003L3 and 000004L3
##list volumes
#Pool: Default
#+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+----------#-+-------------+---------------------+

#| MediaId | VolumeName | VolStatus | Enabled | VolBytes        | VolFiles
| VolRetention | Recycle | Slot | InChanger #| MediaType   | LastWritten
|
#+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+----------#-+-------------+---------------------+

#|       1 | 000001L3   | Append    |       1 | 472,767,740,928 |      475
|    2,592,000 |       1 |    6 |         0 #| ULTRIUM-TD3 | 2007-04-26
23:14:37 |
#|       2 | 000002L3   | Append    |       1 |          64,512 |        0
|    2,592,000 |       1 |    4 |         0 #| ULTRIUM-TD3 | 0000-00-00
00:00:00 |
#|       3 | 000003L3   | Append    |       1 |          64,512 |        0
|    2,592,000 |       1 |    8 |         1 #| ULTRIUM-TD3 | 0000-00-00
00:00:00 |
#|       4 | 000004L3   | Append    |       1 |          64,512 |        0
|    2,592,000 |       1 |    1 |         1 #| ULTRIUM-TD3 | 0000-00-00
00:00:00 |
#|       5 | 000005L3   | Append    |       1 |          64,512 |        0
|    2,592,000 |       1 |    5 |         0 #| ULTRIUM-TD3 | 0000-00-00
00:00:00 |
#|       6 | 000006L3   | Append    |       1 |          64,512 |        0
|    2,592,000 |       1 |    6 |         0 #| ULTRIUM-TD3 | 0000-00-00
00:00:00 |
#|       7 | 000007L3   | Append    |       1 |          64,512 |        0
|    2,592,000 |       1 |    7 |         0 #| ULTRIUM-TD3 | 0000-00-00
00:00:00 |
#|       8 | 000008L3   | Append    |       1 |          64,512 |        0
|    2,592,000 |       1 |    8 |         0 #| ULTRIUM-TD3 | 0000-00-00
00:00:00 |
#+---------+------------+-----------+---------+-----------------+----------+--------------+---------+------+----------#-+-------------+---------------------+


but still
#Device status:
#Autochanger "PV-124T" with devices:
#   "ULTRIUM-TD3" (/dev/nst0)
#Device "ULTRIUM-TD3" (/dev/nst0) is not open.
#    Device is BLOCKED waiting for media.
#    Drive 0 status unknown.
#====
#
#In Use Volume status:
#000001L3 on device "ULTRIUM-TD3" (/dev/nst0)
#====

in summary: 8 tapes are in the dafault pool, i want to use 2 of them in
weekly cycle
( tape 1&2 at week 1, tape 3&4 at week 2.... ).
how can i tell bacula only to write to volumes it finds with "InChanger"
flag set in the db and not to try to write to a volume that has been
removed from the lib?

regards,
Christoph A. Mikusch
BG Nahrungsmittel
Dynamostr. 7-11
Telefon: 0621/4456-3127
Abt. KVM/DV - DB Administration


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to