[DRBD-user] drbd-overview and stacked resources

Vladislav Bogdanov bubble at hoster-ok.com
Mon Jan 16 12:30:01 CET 2012

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


Hi all,

Following patch fixes output information in drbd-overview for resource
stacked on top of drbd0 (^^0 is not shown).

--- drbd-8.3.12.orig/scripts/drbd-overview.pl   2011-07-20
08:19:51.000000000 +0000
+++ drbd-8.3.12/scripts/drbd-overview.pl        2012-01-12
07:44:50.588649947 +0000
@@ -260,7 +260,7 @@ for my $m (sort { $a <=> $b } keys %drbd

        $out[$line] = [
                sprintf("%3u:%s", $m, $t->{name} || "??not-found??"),
-               $t->{ll_dev} ? "^^$t->{ll_dev}" : "",
+               exists $t->{ll_dev} ? "^^$t->{ll_dev}" : "",
                split(/\s+/, $t->{state}),
                @used_by
        ];


Best,
Vladislav



More information about the drbd-user mailing list