[DRBD-user] Problem with IOCTL on centos? [config problem]

Lars Ellenberg Lars.Ellenberg at linbit.com
Mon Sep 19 19:32:38 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-09-19 19:27:13 +0200
\ Lars Ellenberg:
> / 2005-09-19 16:06:40 +0100
> \ John Moylan:
> > Hi,
> > 
> > I'm new to DRBD, but I am trying to set up up as a replacment for an Netapp NAS.
> > 
> > I am having difficulties starting drbd. I am using 0.7.13 on Centos4 (2.6.9-11.ELsmp)
> > 
> > I compiled am RPM using make rpm, installed it and tweeked the conf
> > file. But when I run "drdbadm up all" or  "drbdadm adjust export" the
> > commands just exit with "ioctl(,GET_VERSION,) failed: Invalid
> > argument"
> > 
> > Has anyone any ideas as to what could be causing this problem?
> 
> 64bit kernel mode, 32bit user space and a misconfigured kernel source
> tree could show these symptoms.

ah, no. much easier than that...

> [root at prompt]# modprobe drbd; drbdadm up all; dmesg | tail; cat /proc/drbd
>  | NOTE: we now have officially asigned device name and major number.
>  | Please use /dev/drbd*; if neccessary create the device nodes first.
>  | To do so: for i in `seq 0 15` ; do mknod -m 0660 /dev/drbd$i b 147 $i; done
> ioctl(,GET_VERSION,) failed: Invalid argument
> Command '/sbin/drbdsetup /dev/sdb2 disk /dev/drbd0 /dev/sdb1 0 --on-io-error=detach' terminated with exit code 20
                           ^^^^^^^^^      ^^^^^^^^^^

you mixed up the "device" and "disk", sorry.
so the drbd ioctl is done on the scsi device, which of course tells you
"what the    are you talking about"

	:)


-- 
: 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