Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
On Mon, Aug 30, 2010 at 03:02:52PM -0400, Mathieu Gagné wrote:
> Hi,
>
> I'm using "drbdadm dump-xml" to dump, edit and rewrite a DRBD
> configuration file.
Really. Why? How?
> However, I'm having an issue when there's no resource configured:
> # drbdadm dump-xml
> no resources defined!
> # drbdadm --force dump-xml
> no resources defined!
>
> I found 2 posts on the drbd-dev list about a fix:
> http://lists.linbit.com/pipermail/drbd-dev/2009-January/001006.html
> http://lists.linbit.com/pipermail/drbd-dev/2009-February/001010.html
>
> Unfortunately, I still cannot call "drbdadm dump-xml" if there's no
> resource configured in the configuration file.
>
> Is it the correct behavior?
At least it is what I would expect.
> Was the fix supposed to correct this
nope.
> particular situation or did I misinterpret the post?
>
> As a quick fix, I had to create an empty resource named "_" to make
> "dump-xml" works which is far from optimal:
> resource _ {
> }
>
> Can someone look at it and see if it could be fixed or if it was the
> intended behavior? Thanks!
what output would you expect (or like to see) from
* an empty config file
* some config file with some sections, but no resources
* no config file at all
--
: 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.
__
please don't Cc me, but send to list -- I'm subscribed