[DRBD-user] ioctl(,GET_VERSION,) failed: Invalid argument

Jens Ott mailinglists at freelister.de
Mon Jul 12 22:36:37 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.


Hi,

I just installed drbd 0.7-pre10 on a gentoo-box with 2.6.7 kernel.
Loading the module seems to work properly as I have /dev/nbd available
and find a "nbd: registered device at major 43" in dmesg.

But when I try to setup a drbd-volume, with drbdadm I receive the
followig output:

> webnode1 root # drbdadm up all
> ioctl(,GET_VERSION,) failed: Invalid argument
> Command line was '/sbin/drbdsetup /dev/nbd/0 disk /dev/md2 internal 
-1 > --on-io-error=detach'
> drbdsetup exited with code 20

Also stracing does not give me anymore idea:

> fstat64(3, {st_mode=S_IFBLK|0600, st_rdev=makedev(43, 0), ...}) = 0
> ioctl(3, 0x80044400, 0xbfffed44)        = -1 EINVAL (Invalid argument)
> write(2, "ioctl(,GET_VERSION,) failed: ", 29ioctl(,GET_VERSION,)
> failed: ) = 29


/dev/nbd/0 seems to be with correct rights:

> webnode1 root # ls -l /dev/nbd/0
> brw-------  1 root root 43, 0 Jan  1  1970 /dev/nbd/0

As I'm running absolutely out of ideas now, I hope someone on the list
can give me a hint how to get it up.

Thanx and best regards
Jens




More information about the drbd-user mailing list