* [Drbd-dev] Get dump even with no valid resource
@ 2009-01-16 12:11 Mario Wolff
[not found] ` <9bb5e33f0902102307qa1a41c3hbbd2346bd64edf94@mail.gmail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Mario Wolff @ 2009-01-16 12:11 UTC (permalink / raw)
To: drbd-dev
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Drbd-dev] Re: Get dump even with no valid resource
[not found] ` <9bb5e33f0902102307qa1a41c3hbbd2346bd64edf94@mail.gmail.com>
@ 2009-02-12 10:29 ` Lars Ellenberg
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ellenberg @ 2009-02-12 10:29 UTC (permalink / raw)
To: drbd-dev
On Wed, Feb 11, 2009 at 08:07:48AM +0100, Mario Wolff wrote:
> 2009/1/16 Mario Wolff <wolfshoehle@googlemail.com>:
> > 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
>
> Found it in the git repository. A litle note/feedback like
> merged!
> would be great next time!
Thought I did.
Sorry for that.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-02-12 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-16 12:11 [Drbd-dev] Get dump even with no valid resource Mario Wolff
[not found] ` <9bb5e33f0902102307qa1a41c3hbbd2346bd64edf94@mail.gmail.com>
2009-02-12 10:29 ` [Drbd-dev] " Lars Ellenberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox