[DRBD-user] DRBD 8.3.1: "1 is not a block device!" on one machine, not on the other

NM nico at altiva.fr
Mon May 18 20:27:03 CEST 2009

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


This is *really* weird:

I have two machines in a RedHat cluster sync'd with drbd. They're almost 
identical, have the same version of drbd, kernel and config file, and one 
of them starts drbd's service just fine, but the other one complains 
thusly: 

==8<---
[root at mac2 ~]# service drbd start
Starting DRBD resources: [ d(pg1) 1 is not a block device!

[pg1] cmd /sbin/drbdsetup 1 disk /dev/Data/pgdrbd1 /dev/Data/pgdrbd1 
internal --set-defaults --create-device --on-io-error=detach  failed - 
continuing!
 
s(pg1) 1 is not a block device!

[pg1] cmd /sbin/drbdsetup 1 syncer --set-defaults --create-device --
verify-alg=md5 --rate=100M  failed - continuing!
 
n(pg1) 1 is not a block device!

[pg1] cmd /sbin/drbdsetup 1 net 172.21.5.17:7789 172.21.5.44:7789 C --set-
defaults --create-device --shared-secret=xxx --cram-hmac-alg=sha1  failed 
- continuing!
 
]1 is not a block device!
.
==8<---

The other one takes those just fine:

[root at mac1 ~]#  /sbin/drbdsetup 1 disk /dev/Data/pgdrbd1 /dev/Data/
pgdrbd1 internal --set-defaults --create-device --on-io-error=detach
[root at mac1 ~]# 

mac2 doesn't like "1", but it likes /dev/drbd1:

[root at mac2 ~]# /sbin/drbdsetup /dev/drbd1 disk /dev/Data/pgdrbd1 /dev/
Data/pgdrbd1 internal --set-defaults --create-device --on-io-error=detach
[root at mac2 ~]# 

The only difference is that mac1 appears to have the /dev/drbd* nodes set 
up, while mac2 does not. But even if I create them by hand, it barfs:

[root at mac2 ~]# mknod /dev/drbd0 b 147 0
[root at mac2 ~]# /sbin/drbdsetup 1 disk /dev/Data/pgdrbd1 /dev/Data/pgdrbd1 
internal --set-defaults --create-device --on-io-error=detach
1 is not a block device!



[root at mac1 ~]# rpm -qa|grep drbd
drbd-8.3.1-3
drbd-km-2.6.18_128.1.10.el5-8.3.1-3
[root at mac2 ~]# rpm -qa|grep drbd
drbd-km-2.6.18_128.1.10.el5-8.3.1-3
drbd-8.3.1-3


Here's the config file:

==8<---
# cat /etc/drbd.conf 
global {
	usage-count no;
}

common {
	protocol C;
	startup {
		wfc-timeout 10;
		degr-wfc-timeout 10;
	}

	disk {
		on-io-error detach;
	}

	net {
		cram-hmac-alg "sha1";
		shared-secret "xxx";
	}

	syncer {
		rate 100M;
		verify-alg md5;
	}
}

resource pg1 {

	on mac1 {
		device /dev/drbd1;
		disk /dev/Data/pgdrbd1;
		address 172.21.5.44:7789;
		meta-disk	internal;
	}
	on mac2 {
		device /dev/drbd1;
		disk /dev/Data/pgdrbd1;
		address 172.21.5.17:7789;
		meta-disk	internal;
	}
}




More information about the drbd-user mailing list