diff --git a/PVE/CephTools.pm b/PVE/CephTools.pm index d80e2b65..8ee34d14 100644 --- a/PVE/CephTools.pm +++ b/PVE/CephTools.pm @@ -379,7 +379,11 @@ sub is_any_mds_active { } my $active_mds = $fs->[0]->{mdsmap}->{info}; - return scalar(keys %$active_mds) > 0; + for my $mds (values %$active_mds) { + return 1 if $mds->{state} eq 'up:active'; + } + + return 0; } sub create_mds {