Am 2016-11-14 um 17:12 schrieb Jean-Francois Malouin:

> I'm just starting experimenting with amanda-3.4 new feature set so I
> can't really say anything relevant at the moment. I'm still curious at
> the new 'storage' and 'policy' stuff and will experiment with them later
> this week.
> 
> Regarding your problem, I usually have the tapedev enclosed in a define
> section like:
> 
> define device "lto6-drive" {
>   tapedev "tape:/dev/nst1"
>   device-property "BLOCK_SIZE" "2 mbytes"
> }
> 
> and then have tpchanger reference it like this:
> 
> define changer "neo-t48" {
>   tpchanger "chg-robot:/dev/changer"
>   changerfile "/opt/amanda/etc/amanda/neo-t48-state"
>   property "tape-device" "1=lto6-drive"
>   property "use-slots" "1-48"
>   property "eject-before-unload" "yes"
>   property "eject-delay" "20s"
>   property "unload-delay" "2s"
>   property "load-poll" "5s poll 20s until 180s"
>   property "status-interval" "5s"
> }
> 
> tpchanger "neo-t48"
> 
> amcheck seems happy with those.

thanks for providing this example.

I am looking for a more basic setup: no changer, just a single tape
drive. Most of my customers servers are set up this way, I will approach
the changer-setups later (doing it with vtapes already, btw)

-

As always I try to follow the documentation ;-)

It says ( http://wiki.zmanda.com/man/amanda.conf.5.html ):

> tapedev string
> 
>     Default: "null:". This parameter can either specify a device (explicitly 
> or by referencing a device definition

[..]

> tpchanger string
> 
>     Default: not set. (deprecated)

so I have:

tapedev "tape:/dev/nst0"

in /etc/amanda/daily/amanda.conf

and no string/parameter "tpchanger" anywhere in that file.

But amcheck gives:

$ amcheck daily
Amanda Tape Server Host Check
-----------------------------
NOTE: Holding disk '/mnt/amhold/daily': 112 GB disk space available,
using 111 GB
ERROR: You must specify the storage 'tpchanger'

*maybe* a bug, maybe my fault somewhere.

I even tried to define and use a storage section like that:

define storage tpchanger {
    runtapes 1 # just set something for tests
}

storage tpchanger

... didn't change a thing.

Reply via email to