Re: diskless enbd-client/enbd on initrd

Rudolph Bott <[email protected]> Thu, 23 Feb 2006 12:47:04 +0100
Newsgroups gmane.linux.enbd.general
Organization Megabit Informationstechnik GmbH
Message-ID <[email protected]>
Peter T. Breuer wrote:
> "Also sprach Rudolph Bott:"
> 
>>does anyone have experience with enbd-client on an initrd?
> 
> 
> Never ... I suppose it would be possible, but difficult, since a bit of
> userspace needs to be set up ... how do you chroot while the client is
> still running on the old root?
> 
Well what do you mean by "a bit"?

btw, I forgot to mention that I'm using enbd-2.4.33pre.tar.gz

As I mentioned before, the whole thing was working with nbd (v 2.6.0).

Here is the structure of my ramdisk:

inst/
|-- bin
|   |-- enbd-client
|   `-- insmod
|-- dev
|   |-- @console,c,5,1
|   |-- @nda,b,43,0
|   |-- @nda1,b,43,1
|   |-- @nda2,b,43,2
|   `-- @nda3,b,43,3
|-- linuxrc
|-- mnt
|   `-- initrd
|-- modules
|   `-- enbd.ko
`-- var
     |-- run
     `-- state
         `-- nbd

I don't know how much you're involved into building initrd; the 
@nda,b,43,0-syntax advices genromfs to create the corresponding device 
nodes inside the /dev directory.

Do you have any hints what files/directorys/devices enbd-client might 
require to exist in the initrd-tree? I took a glimpse at the sourcecode 
but wasn't able to find out much (actually I prefered writing to the 
mailing list ;)

-- 
Mit freundlichen Gruessen / with kind regards
  Rudolph Bott

-------------------------------------------------------------------
Megabit Informationstechnik GmbH  Karstr.25  41068 Moenchengladbach
Tel: 02161/308980   mailto:[email protected]       ftp://megabit.net
Fax: 02161/3089818  mailto:[email protected]   http://megabit.net
-------------------------------------------------------------------