[DRBD-user] drbdadm dump-xml with no resource

Mathieu Gagné mgagne at iweb.com
Mon Aug 30 21:02:52 CEST 2010

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


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:

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!



More information about the drbd-user mailing list