[DRBD-user] drbd 0.7.2 and /dev/drbd2

Michael Haverkamp mhaverkamp at kcp.com
Thu Aug 12 17:36:46 CEST 2004

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


I have been using drbd 0.7.2 for about a week now, and it has been 
working very well with 2 devices (/dev/drbd0, /dev/drbd1).  Today I 
tried to add a third device (/dev/drbd2), but I have not been able to 
get it to work.  It complains about /dev/drbd2 (see below).

# drbdadm adjust all
can not open /dev/drbd2: No such file or directory
can not open /dev/drbd2: No such file or directory
Command '/sbin/drbdsetup /dev/drbd2 disk /dev/myvg/vol2 internal -1 
--on-io-error=detach' terminated with exit code 20
drbdsetup exited with code 20


I noticed that there was no "drbd2" under /dev, so I tried creating one.

# ls -l /dev/drbd*
brw-rw----  1 root root 147, 0 Aug 11 11:49 /dev/drbd0
brw-rw----  1 root root 147, 1 Aug 11 11:49 /dev/drbd1
# mknod /dev/drbd2 b 147 2
# chown root:root /dev/drbd2 ; chmod 660 /dev/drbd2
# ls -l /dev/drbd*
brw-rw----  1 root root   147, 0 Aug 11 11:49 /dev/drbd0
brw-rw----  1 root root   147, 1 Aug 11 11:49 /dev/drbd1
brw-r--r--  1 root U60123 147, 2 Aug 12 10:32 /dev/drbd2
# drbdadm adjust all
can not open /dev/drbd2: No such device or address
can not open /dev/drbd2: No such device or address
Command '/sbin/drbdsetup /dev/drbd2 disk /dev/myvg/vol2 internal -1 
--on-io-error=detach' terminated with exit code 20
drbdsetup exited with code 20


I get a slightly different error, but still no go.  Does anyone have any 
idea what might be going on?


My system info:
distro: Gentoo
kernel: 2.6.7 (with udev)
drbd:   0.7.2 (manual install (not from portage))

-- 
Michael Haverkamp



More information about the drbd-user mailing list