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

Lars Ellenberg Lars.Ellenberg at linbit.com
Fri Aug 26 18:34:20 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.


/ 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.



More information about the drbd-user mailing list