From: Mario Wolff <wolfshoehle@googlemail.com>
To: drbd-dev@lists.linbit.com
Subject: [Drbd-dev] Get dump even with no valid resource
Date: Fri, 16 Jan 2009 13:11:24 +0100 [thread overview]
Message-ID: <9bb5e33f0901160411m5cb5efd7j1ee68e8f8b522308@mail.gmail.com> (raw)
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);
next reply other threads:[~2009-01-16 14:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-16 12:11 Mario Wolff [this message]
[not found] ` <9bb5e33f0902102307qa1a41c3hbbd2346bd64edf94@mail.gmail.com>
2009-02-12 10:29 ` [Drbd-dev] Re: Get dump even with no valid resource Lars Ellenberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9bb5e33f0901160411m5cb5efd7j1ee68e8f8b522308@mail.gmail.com \
--to=wolfshoehle@googlemail.com \
--cc=drbd-dev@lists.linbit.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox