[DRBD-user] Drbd 0.7.12 - Buffer I/O error on device drbd0

Poyner, Brandon bpoyner at ccac.edu
Thu Sep 1 14:49:43 CEST 2005

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


Could we please get Lars' patch committed?  I personally think it's
helpful.

Thanks,

Brandon Poyner
Network Engineer III
CCAC - College Office
412-237-3086
 
 

> -----Original Message-----
> From: drbd-user-bounces at linbit.com 
> [mailto:drbd-user-bounces at linbit.com] On Behalf Of Lars Ellenberg
> Sent: Friday, August 26, 2005 12:34 PM
> To: drbd-user at linbit.com
> Subject: Re: [DRBD-user] Drbd 0.7.12 - Buffer I/O error on 
> device drbd0
> 
> / 2005-08-26 11:56:10 -0400
> \ Poyner, Brandon:
> > > > 1) what tried to access the device 2) was the IO request read or
> > write 
> > > 
> > > #1: we could log the current comm and pid, if that helps.
> > > #2: see below.
> > 
> > That would be perfect.  With everything else you explained, 
> that would
> > do nicely.
> 
> 
> Index: drbd_req.c
> ===================================================================
> --- drbd_req.c	(Revision 1934)
> +++ drbd_req.c	(Arbeitskopie)
> @@ -196,8 +196,11 @@
>  	if (mdev->state != Primary &&
>  		( !disable_bd_claim || rw == WRITE ) ) {
>  		if (DRBD_ratelimit(5*HZ,5)) {
> -			ERR("Not in Primary state, no %s 
> requests allowed\n",
> -					disable_bd_claim ? 
> "WRITE" : "IO");
> +			ERR("Not in Primary state, no %s 
> requests allowed "
> +			    "(%s[%u]; %s)\n",
> +			    disable_bd_claim ? "WRITE" : "IO",
> +			    current->comm, current->pid,
> +			    (rw & WRITE) ? "WRITE" : "READ" );
>  		}
>  		drbd_bio_IO_error(bio);
>  		return 0;
> 
> 
> output now looks like
> head -c1 < /dev/drbd0 
> drbd0: Not in Primary state, no IO requests allowed (head[927]; READ)
> 
> dd if=/dev/drbd0 bs=1 count=1
> drbd0: Not in Primary state, no IO requests allowed (dd[928]; READ)
> 
> cheers,
> 
> -- 
> : Lars Ellenberg                                  Tel 
> +43-1-8178292-0  :
> : LINBIT Information Technologies GmbH            Fax 
> +43-1-8178292-82 :
> : Schoenbrunner Str. 244, A-1120 Vienna/Europe   
> http://www.linbit.com :
> __
> please use the "List-Reply" function of your email client.
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 



More information about the drbd-user mailing list