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, Apr 23, 2007 at 11:01:09AM -0400, Doug Knight wrote:
> Hi all,
> This is a thread I've been working from the Linux-HA side, which I'm now seeing
> issues with drbd that I thought should be better addressed on the drbd-users
> email list. I can provide more information if necessary.
> > [root at arc-dknightlx xml]# /sbin/drbdadm -c /etc/drbd.conf state pgsql
> > Secondary/Unknown
> > [root at arc-dknightlx xml]# cat /proc/drbd
> > version: 8.0.1 (api:86/proto:86)
> > SVN Revision: 2784 build by root at arc-dknightlx, 2007-04-09 11:30:31
> > 0: cs:Unconfigured
would this patch help?
similar patches need to be made for cstate and dstate...
Index: drbdsetup.c
===================================================================
--- drbdsetup.c (revision 2859)
+++ drbdsetup.c (working copy)
@@ -1079,7 +1079,12 @@
{
drbd_state_t state;
consume_tag_int(T_state_i,rtl,(int*)&state.i);
- printf("%s/%s\n",roles_to_name(state.role),roles_to_name(state.peer));
+ if ( state.conn == StandAlone &&
+ state.disk == Diskless) {
+ printf("Unconfigured\n");
+ } else {
+ printf("%s/%s\n",roles_to_name(state.role),roles_to_name(state.peer));
+ }
return 0;
}
--
: Lars Ellenberg Tel +43-1-8178292-0 :
: LINBIT Information Technologies GmbH Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe http://www.linbit.com :
__
please use the "List-Reply" function of your email client.