Stefan,
Try the attached aggregate-slots.diff patch.
Jean-Louis
On 25/11/16 03:29 AM, Stefan G. Weichinger wrote:
Am 2016-11-24 um 17:52 schrieb Jean-Louis Martineau:
But amcheck fails:
$ amcheck vtape -t
Amanda Tape Server Host Check
-----------------------------
mount: can't find UUID=5a5a9927-995f-4f0f-98ff-d222561f84ff
This is the output of: mount /mnt/externaldisk2
Do you have an idea why the mount fail?
Check system log
Not, that UUID is disk1:
UUID=5a5a9927-995f-4f0f-98ff-d222561f84ff /mnt/externaldisk1 ext4
relatime,noauto,user 0 1
UUID=fae458a3-da30-43c5-81f1-be2d49215b09 /mnt/externaldisk2 ext4
relatime,noauto,user 0 1
diff --git a/perl/Amanda/Changer/aggregate.pm b/perl/Amanda/Changer/aggregate.pm
index a2bd962..ecf9d28 100644
--- a/perl/Amanda/Changer/aggregate.pm
+++ b/perl/Amanda/Changer/aggregate.pm
@@ -391,7 +391,10 @@ sub info_key {
my $kid = 0;
for (@$kid_results) {
my ($err, %kid_info) = @$_;
- next unless exists($kid_info{'slots'});
+ if (!exists($kid_info{'slots'})){
+ $kid++;
+ next;
+ }
my $kid_slots = $kid_info{'slots'};
push @slots, map "$kid:$_", @{$kid_slots};
$kid++;