[ENBD] 2.5.64 port?
Ciprian Paunescu
enbd@lists.community.tummy.com
Wed, 26 Mar 2003 10:09:48 +0200
2.5.64 had a problem with NFS mounts, fixed in 2.5.65.
I am writing this message without direct access to the
machine I've worked on, so most of this is from memory.
Files and other names are only aproximative, sorry for
the lack of precision.
I tried to compile agains the 2.5.65, and there are
some errors generated from the inclusion of linux/fs.h
As far as I can tell, all is needed from that file are
the ioctl defines.
Once I got those, I got most of the enbd-2.4.31 to
compile, but I gave up on the raid utilities, it wants
some defines that aren't anywhere.
I also copied the "linux-2.5.65" directory over the
2.5.65 source tree, and compiled the enbd in the kernel,
with NBD turned off, ENBD on and ENBD-IOCTL off.
The enbd-ioctl and enbd-main seem to have a linux_version
variable duplication problem, so the enbd-ioctl doesn't
link.
Another problem was a register_devblk call, that had an
extra argument.
I also have devfs on, after rebooting with the new kernel,
the /dev/nb/a .... appeared.
So far so good! What I am trying to do is export a 3ware
RAID (/dev/sda), 1.725TB in size from raschal2 to raschal1.
I've executed
raschal2:enbd-server 4567 /dev/sda
raschal1:enbd-client raschal2:4567 /dev/nb/a
This seems to work for a little while, the client dumps a
few messages, including the fact that the imported disk
is the proper size.
Once I try a "fsdisk /dev/nb/a/0", the client crashes.
So, what did I do wrong? I didn't apply the 2.5.64 patch,
since the kernel I had was 2.5.65, I just copied the
"nbd/linux-2.5.64" subtree over /usr/src/linux, an unpatched
2.5.65 kernel tree.
Anticipated thanks!
Cipi
------------------------------
K Free E-mail http://www.k.ro/
Sarbatorile de Pasti, vacante pentru toti prin http://www.romaniantourism.ro/