Am 2017-01-06 um 02:32 schrieb Chaerin Kim:
> Thank you very much for your response, Stefan.
>
> You mean, according to this updates, Amanda can store backup data not in
> a single tape but in categorized tapes(storage) as user wants, right?
>
> I will test about these features to verify the behavior.
starting to test that as well, I thought I'd share my results ;-)
I have a host with a tape drive and want to add a 2nd storage with
vtapes on a NAS (mounted via NFS).
So I added a 2nd storage definition
DEFINE STORAGE vm {
COMMENT "implicit from global config"
POLICY "vm"
TAPEDEV "tape:/dev/nst0"
TPCHANGER ""
LABELSTR "^vm[0-9][0-9]*$"
AUTOLABEL "" VOLUME-ERROR EMPTY
META-AUTOLABEL ""
TAPEPOOL "vm"
RUNTAPES 1
TAPERSCAN ""
TAPETYPE "LTO4-amtapetype"
MAX-DLE-BY-VOLUME 1000000000
TAPERALGO LARGESTFIT
TAPER-PARALLEL-WRITE 1
EJECT-VOLUME no
ERASE-VOLUME no
DEVICE-OUTPUT-BUFFER-SIZE 4194304
AUTOFLUSH all
FLUSH-THRESHOLD-DUMPED 30
FLUSH-THRESHOLD-SCHEDULED 40
TAPERFLUSH 5
REPORT-USE-MEDIA yes
REPORT-NEXT-MEDIA yes
INTERACTIVITY ""
SET-NO-REUSE no
ERASE-ON-FAILURE no
ERASE-ON-FULL no
}
DEFINE STORAGE nas {
COMMENT ""
POLICY "vm"
TAPEDEV "tape:/dev/nst0"
TPCHANGER "nas1"
LABELSTR "^vm[0-9][0-9]*$"
AUTOLABEL "$m-$3s" OTHER-CONFIG NON-AMANDA VOLUME-ERROR
EMPTY
META-AUTOLABEL "$c-%%%"
TAPEPOOL "vm"
RUNTAPES 1
TAPERSCAN ""
TAPETYPE "HARD-DISK"
MAX-DLE-BY-VOLUME 1000000000
TAPERALGO LARGESTFIT
TAPER-PARALLEL-WRITE 1
EJECT-VOLUME no
ERASE-VOLUME no
DEVICE-OUTPUT-BUFFER-SIZE 4194304
AUTOFLUSH all
FLUSH-THRESHOLD-DUMPED 30
FLUSH-THRESHOLD-SCHEDULED 40
TAPERFLUSH 5
REPORT-USE-MEDIA yes
REPORT-NEXT-MEDIA yes
INTERACTIVITY ""
SET-NO-REUSE no
ERASE-ON-FAILURE no
ERASE-ON-FULL no
}
Please note that most of the above settings are just derived from the
defaults etc -> not yet tuned in any way!
- minor issue I had to figure out:
manpage says:
> storage string
Default: Same as the config name. The list of storages to use, the
dump will go to theses storages.
how to write that list?
I tried:
storage "vm nas"
and
storage "vm,nas"
aaah, it has to be:
storage vm nas
-
As far as I understand so far now all the dumps should go to both the
tapes and the vtapes.
As soon as that works and looks good I will try to make up a more
specific setup with defining "dump-selection" for the 2 storages.
Stefan