Amanda-Users

Re: Dilog Libra 8 - experience anyone?

2007-01-24 17:46:47
Subject: Re: Dilog Libra 8 - experience anyone?
From: Jean-Louis Martineau <martineau AT zmanda DOT com>
To: sgw AT amanda DOT org
Date: Wed, 24 Jan 2007 17:38:11 -0500
device priority use by mtx:
  the -f argument
  CHANGER environment variable
  TAPE environment variable
  /dev/changer

chg-zd-mtx set the TAPE environment variable, mtx use it unless you have the CHANGER variable set.

maybe we should set CHANGER too.

I don't know why it doesn't use -f, but I think for compatibility with older mtx version.

Jean-Louis

Stefan G. Weichinger wrote:
chg-zd-mtx works fine now after:

ln -s /dev/sg2 /dev/changer
chgrp tape /dev/sg2

This allowed the user amanda, which is member of the group tape, to
access the changer-device sg2 by simply running "mtx status", without
using "-f /dev/sg2". (mtx defaults to use /dev/changer, without "-f")

Right now amtape scans my inserted tapes without problems, and without
doing an amlabel-run (this wouldn't make much sense, relabel every tape
after each cartridge-change ...).

So I suggest a patch to the chg-zd-mtx-script:

instead of "mtx status"

it should be

"mtx -f /dev/$changerdev status"

Ok?

Greets, Stefan.



<Prev in Thread] Current Thread [Next in Thread>