Re: What is amvault really telling me?

Winston Sorfleet <[email protected]>
Newsgroups gmane.comp.archivers.amanda.user
Message-ID <[email protected]>
It's telling you that amanda 3.5.1 isn't as friendly to amvault as
preceding versions.  So has been my experience.  However, here is my
working excerpt from my /etc/amanda/vtl/amanda.conf. 

|vault-storage "tape_storage" ||
||
||define changer LTO-2 {||
||    tpchanger "chg-single:/dev/nst0"||
||    device-property "LEOM" "TRUE" ||
||}||
||
||define policy HP_Robot {||
||    retention-tapes 5||
||}||
||
||
||define storage "tape_storage" {||
||    erase-on-failure yes||
||    policy "HP_Robot"||
||    runtapes 1||
||    set-no-reuse no||
||    tapedev "LTO-2"||
||    tapetype "LTO2"||
||    tapepool "$r"||
||    labelstr "Vault-[1-7]"||
||    autolabel "Vault-%" any||
||}||
|

And invocation:

|/usr/sbin/amvault -q --latest-fulls --dest-storage "tape_storage" vtl|

In your case, you have no "storage" element defined, just a changer element.

On 2021-04-04 9:56 a.m., Robert Heller wrote:
> I am using the stock AMANDA packages on an Ubuntu 18.04 system: 3.5.1.  I am 
> getting this error message from amvault:
>
> backup@sauron:~$ /usr/sbin/amvault --dest-storage vault_changer --src-timestamp 20210404001017 deepsoft-vault
> Storage 'vault_changer' not found
> amreport: RuntimeError Usage: debug(msg); at /usr/lib/x86_64-linux-gnu/amanda/perl/Amanda/Report/human.pm line 439.
>
> backup@sauron:~$ cat /etc/amanda/deepsoft-vault/amanda.conf 
> includefile "/etc/amanda/deepsoft-normal/amanda.conf"
>
> vault-storage "vault_changer"
>
> autolabel "deepsoft-vault-%%%" volume-error empty
> backup@sauron:~$ cat /etc/amanda/deepsoft-normal/amanda.conf
> includefile "/etc/amanda/deepsoft-common/amanda.conf"
> define tapetype HARDDISK {
>     comment "Virtual Tapes"
>     part_size 1432 mbytes
>     part_cache_type none
>     length 4300 mbytes
> }
>
> tapetype HARDDISK 
>
>
> runtapes 20             # number of tapes to be used in a single run of amdump
>
> And in /etc/amanda/deepsoft-common/amanda.conf I have:
>
> define changer vault_changer {
>     tpchanger "chg-disk:/backupdisk/deepsoft_vault/slots"
>     changerfile "/etc/amanda/deepsoft-common/vault_changer"
>     property "num-slot" "30"
> }
>
> What am I missing?
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.