On Friday 26 June 2009 12:27:12 Philipp Reisner wrote:
> On Friday 26 June 2009 09:49:06 Pierre LEBRECH wrote:
> > Well, I've just tried drbd-8.3.2rc2 but I got the same symptom :
> >
> > drbdadm[19884]: segfault at 4 ip 0804e91a sp bfa9ce80 error 4 in
> > drbdadm[8048000+1d000]
> >
> > output of "/sbin/drbdadm sh-nop" (example) :
> >
> > zsh: segmentation fault  /sbin/drbdadm sh-nop
> >
> > > and post your drbd.conf.
>
> Please provide your drbd.conf.
> Please provide your drbd.conf.
> Please provide your drbd.conf.
>

[ Got the drbd.conf by prive mail ]

Thanks!
It stacking support got broken with all the changed in
drbdadm. Attached is a patch that applies to rc2, that
fixes the issue.

-Phil
-- 
: Dipl-Ing Philipp Reisner
: LINBIT | Your Way to High Availability
: Tel: +43-1-8178292-50, Fax: +43-1-8178292-82
: http://www.linbit.com

DRBD(R) and LINBIT(R) are registered trademarks of LINBIT, Austria.

commit 06438050032643c43ca3ef2be620d55c43987957
Author: Philipp Reisner <philipp.reis...@linbit.com>
Date:   Fri Jun 26 14:42:40 2009 +0200

    Do not set the disk of a stacked resource if the lower is ignored here.
    
    Otherwise we will SIGSEGV.

diff --git a/user/drbdadm_parser.c b/user/drbdadm_parser.c
index a64d6c5..3c88da9 100644
--- a/user/drbdadm_parser.c
+++ b/user/drbdadm_parser.c
@@ -1308,6 +1308,9 @@ void set_disk_in_res(struct d_resource *res)
 				config_valid = 0;
 			}
 
+			if (host->lower->ignore)
+				continue;
+
 			if (host->lower->me->device)
 				m_asprintf(&host->disk, "%s", host->lower->me->device);
 			else
_______________________________________________
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to