[DRBD-user] drbd 0.7.2 and /dev/drbd2
Pavel Semerad
semerad at ss1000.ms.mff.cuni.cz
Thu Aug 12 17:45:40 CEST 2004
> 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).
You must give option (minor_count=XX) when loadning drbd module. Default
is 2, so it isn't surprise, that only 2 devices works :-)
Pavel Semerad
>
> # 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
> _______________________________________________
> 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