Hi,

I'm using "drbdadm dump-xml" to dump, edit and rewrite a DRBD configuration file.

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? Was the fix supposed to correct this 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!

Regards,

--
Mathieu
_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to