[Drbd-dev] Get dump even with no valid resource

Mario Wolff wolfshoehle at googlemail.com
Fri Jan 16 13:11:24 CET 2009


I need it to get all used hosts to auto-distribute the configuration
from a management system with no running drbd!
Now you can force a dump(-xml) with -f

*** drbdadm_main.c.orig 2009-01-16 13:46:19.000000000 +0100
--- drbdadm_main.c      2009-01-16 13:50:03.000000000 +0100
***************
*** 2903,2909 ****
         * but command is dump / dump-xml, so implitict "all",
         * or an explicit "all" argument is given */
        all_resources = 1;
!       die_if_no_resources();
        /* verify ips first, for all of them */
          for_each_resource(res,tmp,config) {
          verify_ips(res);
--- 2903,2911 ----
         * but command is dump / dump-xml, so implitict "all",
         * or an explicit "all" argument is given */
        all_resources = 1;
!       if(!is_dump||force==0){
!         die_if_no_resources();
!       }
        /* verify ips first, for all of them */
          for_each_resource(res,tmp,config) {
          verify_ips(res);


More information about the drbd-dev mailing list