On 17/01/17 07:30 AM, Stefan G. Weichinger wrote:
Am 2017-01-13 um 11:13 schrieb Stefan G. Weichinger:

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.
*) How to handle 2 STORAGE definitions with different numbers of tapes?

I have >30 LTO4 tapes for my storage "lto4", but only space for 10
vtapes in my storage "nas". As far as I see there is only one global
"tapecycle" parameter. Right now I set it to 10 and it even fails then.
The tapecycle is used to set the policy retention-days
Each storage can have a different policy and each policy can have a different retention-days


*) I don't get the labelling fixed.
Amanda searches for "vm??" on the NAS, although it labels the slots
there with labels like "vm-001-008". Maybe somebody can help me to get
the label-parameters fixed.

tapepool is a set of volumes you want to share between storage (or even config), they must be for the same hardware. Some site have 2 config and they use slot 1-10 for the first config and slot 11-20 for the second, now it is possible for both config to use slot 1-20, and a tape with retention expired from config 1 can be reused by config 2.

In your case, you should use different tapepool.
Change the tapepool for one storage (in config file and tapelist)

Reading the output can be confusing, because you don't know which output line is for each storage (they are mixed), try to run them separately to see if the output make more sense.
$ amcheck vm -t -ostorage=lt04
$ amcheck vm -t -ostorage=nas

Jean-Louis

example amcheck (no LTO tape inserted):

$ amcheck vm
Amanda Tape Server Host Check
-----------------------------
NOTE: Holding disk '/mnt/amhold/vm': 495440 MB disk space available,
using 492368 MB
Searching for label 'vm17':Label 'vm17' not found
slot 8: volume 'vm-001-008' is still active and cannot be overwritten
slot 9: volume 'vm-001-009' is still active and cannot be overwritten
slot 10: volume 'vm-001-010' is still active and cannot be overwritten
slot 0: volume 'vm-001-000' is still active and cannot be overwritten
slot 1: volume 'vm-001-001' is still active and cannot be overwritten
slot 2: volume 'vm-001-002' is still active and cannot be overwritten
slot 3: volume 'vm-001-003' is still active and cannot be overwritten
slot 4: volume 'vm-001-004' is still active and cannot be overwritten
slot 5: volume 'vm-001-005' is still active and cannot be overwritten
slot 6: volume 'vm-001-006' is still active and cannot be overwritten
slot 7: volume 'vm-001-007' is still active and cannot be overwritten
all slots have been loaded
Taper scan algorithm did not find an acceptable volume.
     (expecting volume 'vm17' or a new volume)
ERROR: No acceptable volumes found
slot 1: Tape device /dev/nst0 is not ready or is empty
all slots have been loaded
Taper scan algorithm did not find an acceptable volume.
     (expecting volume 'vm17' or a new volume)
ERROR: No acceptable volumes found
Server check took 0.397 seconds
Amanda Backup Client Hosts Check
--------------------------------
Client check: 4 hosts checked in 5.120 seconds.  0 problems found.
(brought to you by Amanda 3.4.1)



--- part of config attached --->

storage nas lto4

define tapetype HARD-DISK {
         comment "Dump onto hard disk"
                 length 800 gbytes
                 }

define changer nas1 {
         tpchanger "chg-disk:/mnt/nas1_amanda_tapes/"
                 property "num_slot" "10"
                 property "auto-create-slot" "yes"
                 property "removable" "yes"
                 property "MOUNT" "yes"
                 property "UMOUNT" "no"
}
DEFINE POLICY vm {
       COMMENT             "implicit from global config"
       RETENTION-TAPES     24
       RETENTION-DAYS      0
       RETENTION-RECOVER   0
       RETENTION-FULL      0
}

DEFINE STORAGE lto4 {
       COMMENT             "implicit from global config"
       POLICY              "vm"
       TAPEDEV             "tape:/dev/nst0"
       TPCHANGER           ""
       LABELSTR            "^vm[0-9][0-9]*$"
       AUTOLABEL           ""
       META-AUTOLABEL      ""
       TAPEPOOL            "vm"
       RUNTAPES            1
       TAPERSCAN           ""
       TAPETYPE            "LTO4-amtapetype"
       MAX-DLE-BY-VOLUME   1000000000
       TAPERALGO           LARGESTFIT
       TAPER-PARALLEL-WRITE 1
       EJECT-VOLUME        yes
       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
       SET-NO-REUSE        no
       ERASE-ON-FAILURE    no
       ERASE-ON-FULL       no
       DUMP-SELECTION      ALL FULL
}

DEFINE STORAGE nas {
       TPCHANGER           "nas1"
       autolabel "$m-$3s" any
       meta-autolabel "$c-%%%"
       TAPEPOOL            "vm"
       RUNTAPES            1
       TAPETYPE            "HARD-DISK"
       MAX-DLE-BY-VOLUME   1000000000
       TAPERALGO           FIRST
       TAPER-PARALLEL-WRITE 2
       EJECT-VOLUME        no
       ERASE-VOLUME        no
       DEVICE-OUTPUT-BUFFER-SIZE 4194304
       AUTOFLUSH           all
       FLUSH-THRESHOLD-DUMPED 10
       FLUSH-THRESHOLD-SCHEDULED 20
       TAPERFLUSH          0
       REPORT-USE-MEDIA    yes
       REPORT-NEXT-MEDIA   yes
       SET-NO-REUSE        no
       ERASE-ON-FAILURE    no
       ERASE-ON-FULL       no
       DUMP-SELECTION    "vr_*" ALL
}


Disclaimer

The information contained in this communication from the sender is 
confidential. It is intended solely for use by the recipient and others 
authorized to receive it. If you are not the recipient, you are hereby notified 
that any disclosure, copying, distribution or taking action in relation of the 
contents of this information is strictly prohibited and may be unlawful.

This email has been scanned for viruses and malware, and may have been 
automatically archived by Mimecast Ltd, an innovator in Software as a Service 
(SaaS) for business. Providing a safer and more useful place for your human 
generated data. Specializing in; Security, archiving and compliance. To find 
out more visit the Mimecast website.

Reply via email to