I have run into tape libraries that require the tape to be unloaded from the 
drive before performing an unload command.   

The mtx-changer script supports  this feature.  You need to change the 
.../etc/mtx-changer.conf file, specifically the line

# Set to 1 if you want to do offline before unload
offline=0

In the example from below

mtx -f /dev/sg3 load 1 0
mtx -f /dev/sg3 unload 1 0

add a command to unload the tape from the drive between the two lines

mt  -f <tape device> offline

-----Original Message-----
From: Sebastian Suchanek <bac...@suchanek.de> 
Sent: Friday, January 11, 2019 12:53 PM
To: bacula-users@lists.sourceforge.net
Subject: Re: [Bacula-users] mtx and mtx-changer not functioning

◆ This message was sent from a non-UWYO address. Please exercise caution when 
clicking links or opening attachments from external sources.


Am 11.01.2019 um 14:49 schrieb Richard Couture:

>> Does mtx work when you explicitly specify the slots? I.e.:
>>
>> mtx -f /dev/sg3 load 1 0
>> mtx -f /dev/sg3 unload 1 0
>
> No

Then, in my opinion, the problem is somewhere outside of Bacula.
My best guess is that either your library and your version of mtx are 
incompatible or your library is broken (e.g. faulty firmware).


Best regards

Sebastian



_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to