-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[EMAIL PROTECTED] wrote:
>
>
>
> 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?
If I'm reading this, all you're missing is a mount command. It doesn't
need to get that media, that's just what it's asked for. To be fair, it
could try only asking for media that have the InChanger flag set, but...
give it a shot.
- --
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Systems Programmer III
|$&| |__| | | |__/ | \| _| |[EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/AST - NJMS Medical Science Bldg - C630
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGOJdQmb+gadEcsb4RApEIAKCL9YEes4VvyY7JFsxPSkG/WjElRQCgzEXw
3Aoc9svIk7iDaBW2ZJG8Z24=
=AcRg
-----END PGP SIGNATURE-----
begin:vcard
fn:Ryan Novosielski
n:Novosielski;Ryan
org:UMDNJ;IST/AST
adr;dom:MSB C630;;185 South Orange Avenue;Newark;NJ;07103
email;internet:[EMAIL PROTECTED]
title:Systems Programmer III
tel;work:(973) 972-0922
tel;fax:(973) 972-7412
tel;pager:(866) 20-UMDNJ
x-mozilla-html:FALSE
version:2.1
end:vcard
-------------------------------------------------------------------------
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