I have 2 chg-disk changers defined and aggregated via chg-aggregate:

define changer disk1 {
        tpchanger "chg-disk:/mnt/nas01_vtapes"
                property "num_slot" "12"
                property "auto-create-slot" "yes"
                property "removable" "yes"
                property "MOUNT" "yes"
                property "UMOUNT" "yes"
                property "UMOUNT-LOCKFILE" "/etc/amanda/vtape/nas01.lock"
                property "UMOUNT-DELAY" "1"
}

define changer disk2 {
        tpchanger "chg-disk:/mnt/nas02_vtapes"
                property "num_slot" "12"
                property "auto-create-slot" "yes"
                property "removable" "yes"
                property "MOUNT" "yes"
                property "UMOUNT" "yes"
                property "UMOUNT-LOCKFILE" "/etc/amanda/vtape/nas02.lock"
                property "UMOUNT-DELAY" "1"
}

define changer aggregate {
        tpchanger "chg-aggregate:{disk1,disk2}"
                property "state_filename" "/etc/amanda/vtape/aggregate.stats"
                property "allow-missing-changer" "yes"
}


When I run amrecover I tried to set the device to

chg-aggregate:{disk1,disk2}

but this failed.

"Got no header and data from server, check in amidxtaped.*.debug and amandad.*.debug files on server"

When I "manually" choose a file and check which changer the vtape is located on, I can successfully restore after setting the device to

chg-disk:/mnt/nas01_vtapes

for example.

Does anyone know how to use the aggregate changer here?

Ideally somehow set that as default, because junior admins also should be able to restore things here.


Reply via email to