Mailing List Archive

ioctl() failed
Hi

I tried again start an HA environment, and I get errors.
I'm trying make a mirror between two nodes, two slackware boxes. One of
them is a Netfinity server, with SCSI disks and raid-0, and the other is
a PC with normal IDE. Does it can be a problem?
Last time, I've got the "Input/output error". Now, the PC freeze. I try
find why, and I find this error log:
drbd0: SYNC_LOG_S too small
ll_rw_block: Trying to read nonexistent

I found in list archives this error, so I change SYNC_LOG_S in drbd.c to
120 (was 80), and rebuild it. So when I try start I got this error:

root@backup1:~# drbdsetup /dev/nb0 disk /dev/hdc1
ioctl() failed: Invalid argument
Filedescriptor for lower device is invalid.

What's happen? I use kernel 2.2.19, and a patch for hds found in
linux-ide.org, ide.2.2.19.05042001.patch. Can you help me?

--
Sulamita Garcia Alta Disponibilidade em Linux
Analista de Suporte http://ha.underlinux.com.br
sulamita.garcia@example.com
ICQ 16465301 Grupo de Usuárias de Linux
http://linuxchix-br.nl.linux.org
Re: ioctl() failed [ In reply to ]
Please use drbd-0.6.1-pre7

(and patch your kernel to export the wake_up_process symbol)

-Philipp

* Sulamita Garcia <sulamita.garcia@example.com> [011112 13:18]:
> Hi
>
> I tried again start an HA environment, and I get errors.
> I'm trying make a mirror between two nodes, two slackware boxes. One of
> them is a Netfinity server, with SCSI disks and raid-0, and the other is
> a PC with normal IDE. Does it can be a problem?
> Last time, I've got the "Input/output error". Now, the PC freeze. I try
> find why, and I find this error log:
> drbd0: SYNC_LOG_S too small
> ll_rw_block: Trying to read nonexistent
>
> I found in list archives this error, so I change SYNC_LOG_S in drbd.c to
> 120 (was 80), and rebuild it. So when I try start I got this error:
>
> root@backup1:~# drbdsetup /dev/nb0 disk /dev/hdc1
> ioctl() failed: Invalid argument
> Filedescriptor for lower device is invalid.
>
> What's happen? I use kernel 2.2.19, and a patch for hds found in
> linux-ide.org, ide.2.2.19.05042001.patch. Can you help me?
>
> --
> Sulamita Garcia Alta Disponibilidade em Linux
> Analista de Suporte http://ha.underlinux.com.br
> sulamita.garcia@example.com
> ICQ 16465301 Grupo de Usuárias de Linux
> http://linuxchix-br.nl.linux.org
>
> _______________________________________________
> DRBD-devel mailing list
> DRBD-devel@example.com
> https://lists.sourceforge.net/lists/listinfo/drbd-devel
Re: ioctl() failed [ In reply to ]
>Last time, I've got the "Input/output error". Now, the PC freeze. I try
>find why, and I find this error log:
>drbd0: SYNC_LOG_S too small
>ll_rw_block: Trying to read nonexistent

The is a parameter in drbd.conf could help you

1. disk-size

place here the size of the partition (each drive has to contain such
an amount of block with 4096 blocksize)

e.g

node 1 /dev/hda1 fdisk -l /dev/hda says : 574400 block for hda1
node 2 /dev/sda1 fdisk -l /dev/sda says : 474500 block for sda1

you have to set disk-size : 474500

else you may get an error on sda1 cause its smaller then the partion
on the other node.

So the 2 error-messies seems to be one. Caused by the fact, that one
partition is smaller the prepared sync-log is to small when reading
over the limit of blocks on that partition.

Le me know if i were right.

>What's happen? I use kernel 2.2.19, and a patch for hds found in
>linux-ide.org, ide.2.2.19.05042001.patch. Can you help me?

What the patch will do ?

Michael Appeldorn
Re: ioctl() failed [ In reply to ]
Philipp Reisner wrote:
>
> Please use drbd-0.6.1-pre7

I can't compile... I using Slackware 8.0, kernel 2.2.19, no SMP, and
modified Makefile.var (KAF_i386 := -fno-strict-aliasing
#-mpreferred-stack-boundary=2), but it returns

root@metallica:~/drbd# make
make[1]: Entering directory `/root/drbd/user'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/drbd/user'
make[1]: Entering directory `/root/drbd/drbd'
gcc -c -g -D__KERNEL__ -DMODULE -O2 -Wall -fno-strict-aliasing
-I/usr/src/linux/include -DEXPORT_SYMTAB -DAPI_VERSION=58
-DPRO_VERSION=60 -DREL_VERSION=\"0.6.1-pre7\" drbd_receiver.c
In file included from drbd_receiver.c:49:
drbd_int.h:412: warning: `init_waitqueue_entry' redefined
/usr/src/linux/include/linux/wait.h:26: warning: this is the location
of
the previous definition
drbd_receiver.c: In function `receive_data':
drbd_receiver.c:635: `NR_REQUESTS' undeclared (first use in this
function)
drbd_receiver.c:635: (Each undeclared identifier is reported only once
drbd_receiver.c:635: for each function it appears in.)
drbd_receiver.c: At top level:
/usr/src/linux/include/linux/blk.h:461: warning: `do_nbd_request'
declared `static' but never defined
make[1]: *** [drbd_receiver.o] Error 1
make[1]: Leaving directory `/root/drbd/drbd'
make: *** [all] Error 2


> (and patch your kernel to export the wake_up_process symbol)

Sorry, but what does it mean???

>
> -Philipp

--
Sulamita Garcia Alta Disponibilidade em Linux
Analista de Suporte http://ha.underlinux.com.br
sulamita.garcia@example.com
ICQ 16465301 Grupo de Usuárias de Linux