[ENBD] diskless enbd-client/enbd on initrd

Peter T. Breuer ptb at inv.it.uc3m.es
Fri Feb 24 02:20:57 MST 2006


"Also sprach Rudolph Bott:"
[Charset ISO-8859-1 unsupported, filtering to ASCII...]
> Peter T. Breuer wrote:
> > "Also sprach Rudolph Bott:"
> >>>Yes, but my question about how you chroot or umount the original root
> >>>while the clients are running on it stands.
> > 
> > You're not answering to this point (which I have put about three
> > or four times now :().

> What do you mean exactly? Neither the old root gets unmounted nor any 
> chroot'ing is done

That's what your script/program does. It doesn't matter exactly what
the commands used are, but that's their overall intent: to get rid of
the original root device and give you another one. How do you
expect that to happen while the client daemons are running on the old
root and have stuff open there?

> I really don't get that "set -x" thing? What script are you talking 
> about?

Whatever one you are using!  I don't mind if it's a script (which I
originally saw) or program (you later posted a linuxrc executable
source code) - for a program you'd want to run it under strace to
get good debugging info.

> > I didn't need anything clarified - I am trying (and failing miserably)
> > to direct your attention to the question of how you expect the mount or
> > chroot or pivot root or whatever it is to succeed when the client is
> > running on the old root and has several things open there!

> Since everything works fine

But it doesn't.

> I'm not trying to unmount anything (that would be like biting the hands 
> that feed you), it's just a call to pivot_root();

It doesn't matter. Please address the concern. When you've done that we
can look closely at yur programs.

Peter


More information about the ENBD mailing list