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.

*) 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.

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
}

Reply via email to