This is what I have in my 3.4 config for a single tape drive:
---
tapetype "LTO6"
define tapetype LTO6 {
comment "Created by amtapetype; compression disabled"
length 2459879424 kbytes
filemark 2684 kbytes
speed 154767 kps
blocksize 256 kbytes
}
define changer "tape_drive" {
tpchanger "chg-single:tape:/dev/nst0"
device-property "BLOCK_SIZE" "256 kbytes"
}
tpchanger "tape_drive"
---
It works for me. I have made backups and recovered from them.
-Sandro
-----Original Message-----
From: [email protected] [mailto:[email protected]] On
Behalf Of Stefan G. Weichinger
Sent: Monday, November 14, 2016 9:36 AM
To: Jean-Francois Malouin <[email protected]>;
[email protected]
Subject: Re: amanda-3.4: new parameters etc
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.