Can anybody confirm "update slots" is working (regarding ALL drives) correctly for them in a multidrive autochanger environment? If yes, could you share your mtx-changer script and bacula-*.conf please?


Thanks,
Sebastian

On 08.03.2006, at 14:45, Sebastian Stark wrote:


On 08.03.2006, at 13:49, Dan Langille wrote:

On 8 Mar 2006 at 12:53, Sebastian Stark wrote:

If I use the update slots command in bconsole it asks for a drive
number:

*update slots
Automatically selected Storage: neo4000
Enter autochanger drive[0]:

Regardless what I type here it always tries to unload drive0. How do
I get it to unload drive1 as well?

As I read in the archives "update slots" is the only way to resolve
conflicts of the type "drive0 wants tape #14 but it's in drive1 at
the moment".

Please always tell us what version of Bacula you are using.

The place I'd look at is your autochanger script.  Does it work
flawlessly?  Perhaps the drive number is not being passed/processed
properly.

I'm using 1.38.5. The mtx-changer script work's well, I can use it to load/unload tapes to/from both drives.
If I issue the following command:

sudo /usr/local/bacula/etc/mtx-changer /dev/scsi/changer/ c4t2100001086119230d0 loaded 1 /dev/rmt/1cbn 1

it does what it should (basically grep for "Data Transfer Element 1:Full").

Seems the update slots command that does not ask drive1 if it has a tape in it or not. If I'm right "update slots" should empty all drives. Now, the output of "update slots" looks like:

*update slots
Automatically selected Storage: neo4000
Enter autochanger drive[0]: 1
Connecting to Storage daemon neo4000 at yangtse:9103 ...
3306 Issuing autochanger "slots" command.
Device "neo4000" has 119 slots.
Connecting to Storage daemon neo4000 at yangtse:9103 ...
3301 Issuing autochanger "loaded drive 0" command.
3302 Autochanger "loaded drive 0", result: nothing loaded.
3306 Issuing autochanger "list" command.
Catalog record for Volume "000042" updated to reference slot 1.
Catalog record for Volume "000031" updated to reference slot 2.
Catalog record for Volume "000079" updated to reference slot 3.
Catalog record for Volume "000125" updated to reference slot 4.
Catalog record for Volume "000049" updated to reference slot 5.
[...]

Bacula does not even try to find out if it must unload drive1 or not but according to status storage it still has a tape in it:


Device status:
Autochanger "neo4000" with devices:
   "Drive0" (/dev/rmt/0cbn)
   "Drive1" (/dev/rmt/1cbn)
Device "Drive0" (/dev/rmt/0cbn) open but no Bacula volume is mounted.
    Device is BLOCKED waiting for media.
    Drive 0 is not loaded.
    Total Bytes Read=0 Blocks Read=0 Bytes/block=0
    Positioned at File=0 Block=0
Device "Drive1" (/dev/rmt/1cbn) is mounted with Volume="000001" Pool="Default"
    Slot 46 is loaded in drive 1.
    Total Bytes=26,885,026,430 Blocks=416,749 Bytes/block=64,511
    Positioned at File=30 Block=0



-Sebastian



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel? cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to