Am 2016-06-30 um 17:28 schrieb Jason L Tibbitts III:

You don't actually say what kind of library you have so you aren't going
to get any responses like "I have the same one and it works OK for me;
here's my config."

Yes, you are right. For now I can only look at /proc/scsi/ :

Vendor: HP       Model: 1x8 G2 AUTOLDR   Rev: 4.30

For detailled model info I have to ask the admin who is at home already, I assume (evening time here)

I will say that I used to have the problem where amanda wouldn't trust
the barcode reader and would instead scan all 24 tapes in my library the
hard way when all of the tapes had been used.  There's a brief
discussion about that on this list, and the solution was to change to
chg-robot.  But you're already using that, so I've no idea.

The only relevant thing that's missing from your setup that I have is a
changerfile definition:

define changer magnum {
        tpchanger "chg-robot:/dev/sg8"
        property "tape-device" "0=tape:/dev/nst0"
        device-property "LEOM" "TRUE"
        device-property "BLOCK_SIZE" "512k"
        changerfile "/var/lib/amanda/chg-robot-dev-sg8"
}/var/amanda/chg-robot-dev-sg0.

So you might want to find where the changer program is storing its state
and post that file.  (And make sure that it's actually storing some
state.)

I looked at the manpage, it told me the default is /var/amanda/chg-robot-dev-sg0 .... which does not exist on the server.

So now I configured it according to your example:

changerfile "/var/lib/amanda/$myconf/chg-robot-dev-sg1"

After amcheck it contains something, I attach it.

I assume the missing labels will be scanned step by step when the tapes are used and rotated? Or do we miss some step?

Thanks to Jason, greets, Stefan

$STATE = {
           'last_status' => 1467314912,
           'drive_lru' => [
                            '0'
                          ],
           'drives' => {
                         '0' => {
                                  'barcode' => 'CMR921L6',
                                  'label' => 'CMR921',
                                  'state' => 1,
                                  'orig_slot' => 1
                                }
                       },
           'slots' => {
                        '1' => {
                                 'label' => 'CMR921',
                                 'barcode' => 'CMR921L6',
                                 'state' => 1,
                                 'loaded_in' => '0',
                                 'device_error' => undef,
                                 'f_type' => bless( {
                                                      'value' => [
                                                                   1
                                                                 ],
                                                      'sign' => '+'
                                                    }, 'Math::BigInt' ),
                                 'device_status' => bless( {
                                                             'sign' => '+',
                                                             'value' => [
                                                                          0
                                                                        ]
                                                           }, 'Math::BigInt' )
                               },
                        '7' => {
                                 'device_status' => undef,
                                 'loaded_in' => undef,
                                 'f_type' => undef,
                                 'device_error' => undef,
                                 'state' => 1,
                                 'barcode' => 'CMR919L6',
                                 'ie' => 0,
                                 'label' => undef
                               },
                        '6' => {
                                 'f_type' => undef,
                                 'device_error' => undef,
                                 'state' => 1,
                                 'barcode' => 'CMR917L6',
                                 'ie' => 0,
                                 'label' => undef,
                                 'device_status' => undef,
                                 'loaded_in' => undef
                               },
                        '5' => {
                                 'loaded_in' => undef,
                                 'device_status' => undef,
                                 'state' => 1,
                                 'ie' => 0,
                                 'label' => undef,
                                 'barcode' => 'CMR918L6',
                                 'device_error' => undef,
                                 'f_type' => undef
                               },
                        '4' => {
                                 'device_status' => undef,
                                 'loaded_in' => undef,
                                 'f_type' => undef,
                                 'device_error' => undef,
                                 'state' => 1,
                                 'barcode' => 'CMR924L6',
                                 'label' => undef,
                                 'ie' => 0
                               },
                        '2' => {
                                 'device_status' => undef,
                                 'loaded_in' => undef,
                                 'state' => 1,
                                 'barcode' => 'CMR922L6',
                                 'label' => undef,
                                 'ie' => 0,
                                 'f_type' => undef,
                                 'device_error' => undef
                               },
                        '3' => {
                                 'label' => undef,
                                 'ie' => 0,
                                 'barcode' => 'CMR923L6',
                                 'state' => 1,
                                 'device_error' => undef,
                                 'f_type' => undef,
                                 'loaded_in' => undef,
                                 'device_status' => undef
                               },
                        '8' => {
                                 'device_status' => undef,
                                 'loaded_in' => undef,
                                 'f_type' => undef,
                                 'device_error' => undef,
                                 'barcode' => 'CMR920L6',
                                 'ie' => 0,
                                 'label' => undef,
                                 'state' => 1
                               }
                      },
           'last_operation_time' => 1467314829,
           'last_operation_delay' => 0,
           'current_slot' => {
                               'myconf' => 1
                             },
           'bc2lb' => {
                        'CMR921L6' => 'CMR921'
                      }
         };

Reply via email to