Re: [Vserver] [OPoll] BME inclusion into next stable release

2006-01-09 Thread Raoul Bhatia [IPAX]

Herbert Poetzl wrote:OPINION POLL


please check (X) all points which apply ...
(according to your opinion)

 [x]  I had no idea about this issue/deficiency
 [ ]  I did already know about it

 [ ]  I'm already using BME (or similar) patches
 [ ]  I will start using BME patches now
 [x]  I do not need/use this 'feature' at all

 [ ]  I think this SHOULD get into the next
  stable Linux-VServer release because ...

  [ ]  I am using it/want to use it
  [ ]  It's more a bugfix than a feature
  [x]  I like the idea of ro --bind mounts

 [x]  I think this should NOT be included into
  the next stable release because ...

  [ ]  it is not thoroughly tested
  [ ]  it is not mature enough
  [ ]  it adds unnecessary code
  [x]  it should better be fixed in
   the mainline Linux Kernel

--

raoul bhatia  email.[EMAIL PROTECTED]
ipax  web.http://www.ipax.at
- chief technician, support - irc.  #ipax (quakenet)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] VServer logo?

2006-01-09 Thread Raoul Bhatia [IPAX]

Benedikt Boehm wrote:

Three suggestions at http://dev.gentoo.org/~hollow/vserver-logos.png


these are nice logos and i guess that you inspired some of our readers
here! :)

kind regards,
raoul bhatia
--

raoul bhatia  email.[EMAIL PROTECTED]
ipax  web.http://www.ipax.at
- chief technician, support - irc.  #ipax (quakenet)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver



Re: [Vserver] VServer logo?

2006-01-09 Thread Raoul Bhatia [IPAX]

Daniel Kraft wrote:

http://www.spotlite.de/stuff/vserver-logos.png
License: http://creativecommons.org/licenses/by/2.0/


now these are the kind of logo i prefere! nice work! :)

kind regards,
raoul bhatia
--

raoul bhatia  email.[EMAIL PROTECTED]
ipax  web.http://www.ipax.at
- chief technician, support - irc.  #ipax (quakenet)

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Assigning a virtual console to a given vserver

2006-01-09 Thread Herbert Poetzl
On Mon, Jan 09, 2006 at 04:02:42PM -0600, Michael S. Zick wrote:
> On Mon January 9 2006 15:49, Bruno wrote:
> > On Sunday 08 January 2006 14:01, Bodo Eggert wrote:
> > > On Sun, 8 Jan 2006, Bruno wrote:
> > > > I would like to assign a virtual console to one or more vservers running
> > > > on my box.
> > > >
> > > > e.g.
> > > >  vc0 - vc6 for host system
> > > >  vc7 for first vserver
> > > >  vc8 for second vserver
> > > >  none for third vserver
> > > >  ...
> > >
> > > [...]
> > >
> > > > Is this possible?
> > >
> > > You need the console device file in the vserver dev directory, and you
> > > need to tweak the vserver inittab.
> > 
> > This worked.
> > 
> > For my example I will let the guest start on tty8 and spawn gettys on tty8 
> > and 
> > tty9.
> > 
> > Steps:
> > - create /dev/tty8 (major 4, minor 8)
> > - create /dev/tty9 (major 4, minor 9)
> > - create /dev/console (major 4, minor 8)
> >
> A bit obscure unless one recalls that the kernel uses major-minor
> numbers rather than names.

"What's in a name? That which we call a rose
 By any other word would smell as sweet." 
-- Shakespeare, W, R&J

> Could not the same thing be done with a sym-link?
> ln -s /dev/tty8 console

yep, should work fine, as long as the target
exists ...

> That would be a little more obvious when you listed the /dev/*
> at some later date.

best,
Herbert

> Mike
> 
> > - add "c8:2345:respawn:sbin/getty 38400 tty8 linux" to inittab
> > - add "c9:2345:respawn:sbin/getty 38400 tty9 linux" to inittab
> > 
> > Then start/restart the guest and output appears as expected.
> > 
> > Guest is configured using init style "plain"
> > 
> > Bruno
> > ___
> > Vserver mailing list
> > Vserver@list.linux-vserver.org
> > http://list.linux-vserver.org/mailman/listinfo/vserver
> > 
> > 
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Assigning a virtual console to a given vserver

2006-01-09 Thread Michael S. Zick
On Mon January 9 2006 15:49, Bruno wrote:
> On Sunday 08 January 2006 14:01, Bodo Eggert wrote:
> > On Sun, 8 Jan 2006, Bruno wrote:
> > > I would like to assign a virtual console to one or more vservers running
> > > on my box.
> > >
> > > e.g.
> > >  vc0 - vc6 for host system
> > >  vc7 for first vserver
> > >  vc8 for second vserver
> > >  none for third vserver
> > >  ...
> >
> > [...]
> >
> > > Is this possible?
> >
> > You need the console device file in the vserver dev directory, and you
> > need to tweak the vserver inittab.
> 
> This worked.
> 
> For my example I will let the guest start on tty8 and spawn gettys on tty8 
> and 
> tty9.
> 
> Steps:
> - create /dev/tty8 (major 4, minor 8)
> - create /dev/tty9 (major 4, minor 9)
> - create /dev/console (major 4, minor 8)
>
A bit obscure unless one recalls that the kernel uses major-minor
numbers rather than names.

Could not the same thing be done with a sym-link?
ln -s /dev/tty8 console

That would be a little more obvious when you listed the /dev/*
at some later date.

Mike

> - add "c8:2345:respawn:sbin/getty 38400 tty8 linux" to inittab
> - add "c9:2345:respawn:sbin/getty 38400 tty9 linux" to inittab
> 
> Then start/restart the guest and output appears as expected.
> 
> Guest is configured using init style "plain"
> 
> Bruno
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
> 
> 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Assigning a virtual console to a given vserver

2006-01-09 Thread Bruno
On Sunday 08 January 2006 14:01, Bodo Eggert wrote:
> On Sun, 8 Jan 2006, Bruno wrote:
> > I would like to assign a virtual console to one or more vservers running
> > on my box.
> >
> > e.g.
> >  vc0 - vc6 for host system
> >  vc7 for first vserver
> >  vc8 for second vserver
> >  none for third vserver
> >  ...
>
> [...]
>
> > Is this possible?
>
> You need the console device file in the vserver dev directory, and you
> need to tweak the vserver inittab.

This worked.

For my example I will let the guest start on tty8 and spawn gettys on tty8 and 
tty9.

Steps:
- create /dev/tty8 (major 4, minor 8)
- create /dev/tty9 (major 4, minor 9)
- create /dev/console (major 4, minor 8)
- add "c8:2345:respawn:sbin/getty 38400 tty8 linux" to inittab
- add "c9:2345:respawn:sbin/getty 38400 tty9 linux" to inittab

Then start/restart the guest and output appears as expected.

Guest is configured using init style "plain"

Bruno
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] VServer-2.1.0-Patch changed vfs_mkdir, etc. - breaks unionfs

2006-01-09 Thread Herbert Poetzl
On Mon, Jan 09, 2006 at 12:50:35PM +0100, Wilhelm Meier wrote:
> Hi,
> 
> the developement-pachset 2.1.0 modified the interface to the vfs-operations 
> (vfs_mkdir, ...). This breaks the compilation of other vfs-modules, e.g. 
> unionfs. Why was this neccessary? How to fill the new parameter struct 
> nameidata?

this is mainliny 'broken' by the BME patches, which
are basically a 'fix' to mainline kernels ...

have a look at this patch and try to 'adapt' your
vfs module to pass the correct informations ...

http://www.13thfloor.at/vserver/d_rel26/v2.1.0/split-2.6.14.4-vs2.1.0/36_2.6.14.4_bme.diff.hl

best,
Herbert

> --
> Wilhelm Meier
> email: [EMAIL PROTECTED]
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] mountpoint blocked even with all context shutdown

2006-01-09 Thread Herbert Poetzl
On Mon, Jan 09, 2006 at 09:49:07AM +0100, Oliver Welter wrote:
> Hi Herbert,
> Hi Christian,
> 
> >you have to start 'thinking' in namespaces and avoid leftovers
> >and unwanted 'copies' or duplicate mounts ...
> 
> I do !!
> But as mentioned in my OP
> 1) The mount is done inside the namespace of the guest - it is not
> visible outside in the root and is not copied into later started
> servers. At least I can confirm this with issuing "mount" inside the
> guest (vserver www1 enter and then >mount) inside the namespace
> (vnamespace -e www1 mount)

mount only shows the contents of /etc/mtab (local root)
so it does not give valuable information, check with

 vnamespace --enter  -- cat /proc/mounts

> Neither one shows the mount !
> 
> 2) I shutdown ALL virtual servers, so I assume that all namespaces are
> destroyed. At least vserver-stat does not show anything beside the root
> server and "vps ax" does not show any process running with another ID
> than "main"...

doesn't mean that there are 'other' processes which
have a reference to the mount

> So, I see two possible approaches on the probleme:
> 1) drbd keeps its own "mount" table that is not freed correctly

I really doubt that ...

> 2) the kernel blocks mounts from a not longer active namespace

could be, at least for some short interval (e.g. 30s), 
but more important, what kernel/patch version do you
use?

> I dont have any idea how to debug, and to make it even harder, the
> problem shows not on all mounts/guest, which are basically configured
> all identical.

> It might be a problem that the mount inside the namespavce is not
> cleanly freed when the startup/shutdown of the guest fails/hangs
> somewhere, but this is only a wild guess :(

well, we could do some bug hunting on the IRC channel
if you find some time ...

best,
Herbert

> Oliver
> 
> -- 
> Diese Nachricht wurde digital unterschrieben
> oliwel's public key: http://www.oliwel.de/oliwel.crt
> Basiszertifikat: http://www.ldv.ei.tum.de/page72



> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] mountpoint blocked even with all context shutdown

2006-01-09 Thread Oliver Welter

Hi Herbert,
Hi Christian,


you have to start 'thinking' in namespaces and avoid leftovers
and unwanted 'copies' or duplicate mounts ...


I do !!
But as mentioned in my OP
1) The mount is done inside the namespace of the guest - it is not 
visible outside in the root and is not copied into later started 
servers. At least I can confirm this with issuing "mount" inside the 
guest (vserver www1 enter and then >mount) inside the namespace 
(vnamespace -e www1 mount)

Neither one shows the mount !

2) I shutdown ALL virtual servers, so I assume that all namespaces are 
destroyed. At least vserver-stat does not show anything beside the root 
server and "vps ax" does not show any process running with another ID 
than "main"...


So, I see two possible approaches on the probleme:
1) drbd keeps its own "mount" table that is not freed correctly
2) the kernel blocks mounts from a not longer active namespace

I dont have any idea how to debug, and to make it even harder, the 
problem shows not on all mounts/guest, which are basically configured 
all identical.
It might be a problem that the mount inside the namespavce is not 
cleanly freed when the startup/shutdown of the guest fails/hangs 
somewhere, but this is only a wild guess :(


Oliver

--
Diese Nachricht wurde digital unterschrieben
oliwel's public key: http://www.oliwel.de/oliwel.crt
Basiszertifikat: http://www.ldv.ei.tum.de/page72


smime.p7s
Description: S/MIME Cryptographic Signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] Getting the namespace of processes

2006-01-09 Thread Bodo Eggert
On Mon, 9 Jan 2006, Wilhelm Meier wrote:

> Hi,
> 
> I want to extract the namespace-attribute of a specific/all process(es). Some 
> time ago there was a discussion about this topic, but I think the essence was 
> that there are no tools to get this information. Or am I wrong?
> 
> Is it possible to extract this information via /proc/...? I didn't find any 
> hints about that.

AFAIK, /proc/$PID/root is supposed to be a link to the namespce root. 
Since namespaces are anonymous, I can't think of anything better than 
this.

-- 
Top 100 things you don't want the sysadmin to say:
2. We had to format some tracks, and we seem to have hit an inode track.
Half the files are still there though...
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] mountpoint blocked even with all context shutdown

2006-01-09 Thread Oliver Welter

Hi Grzegorz


It might be a problem that the mount inside the namespavce is not
cleanly freed when the startup/shutdown of the guest fails/hangs
somewhere, but this is only a wild guess :(


If you stop your guest in an unclean way (e.g. vwait times out), the
namespace stays there (or at least it used to be when I was playing
with them). You can clear it with vnamespace -c  but do check the
syntax so that you don't wipe your root namespace :)



vnamespace --help
--cleanup|-c  ...  remove all mounts from the namespace of the
   current context

So it does not take a XID as arguement...

vnamespace -e  with statically asigend xid of the formerly used 
namespace die's with "vnamespace: vc_enter_namespace(): No such process"


Any other ideas ?
Is there a way to list namespaces known to the kernel and "kill" them ?

Oliver
--
Diese Nachricht wurde digital unterschrieben
oliwel's public key: http://www.oliwel.de/oliwel.crt
Basiszertifikat: http://www.ldv.ei.tum.de/page72


smime.p7s
Description: S/MIME Cryptographic Signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] VServer-2.1.0-Patch changed vfs_mkdir, etc. - breaks unionfs

2006-01-09 Thread Wilhelm Meier
Hi,

the developement-pachset 2.1.0 modified the interface to the vfs-operations 
(vfs_mkdir, ...). This breaks the compilation of other vfs-modules, e.g. 
unionfs. Why was this neccessary? How to fill the new parameter struct 
nameidata?

--
Wilhelm Meier
email: [EMAIL PROTECTED]
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] mountpoint blocked even with all context shutdown

2006-01-09 Thread Grzegorz Nosek
2006/1/9, Oliver Welter <[EMAIL PROTECTED]>:
> It might be a problem that the mount inside the namespavce is not
> cleanly freed when the startup/shutdown of the guest fails/hangs
> somewhere, but this is only a wild guess :(
>
> Oliver
>

Hello

If you stop your guest in an unclean way (e.g. vwait times out), the
namespace stays there (or at least it used to be when I was playing
with them). You can clear it with vnamespace -c  but do check the
syntax so that you don't wipe your root namespace :)

Best regards,
 Grzegorz Nosek
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] [OPoll] BME inclusion into next stable release

2006-01-09 Thread Thomas Hug
On Fri, 06 Jan 2006 23:15, Herbert Poetzl wrote:
 
> OPINION POLL
> 
> 
> please check (X) all points which apply ...
> (according to your opinion)
> 
>  [ ]  I had no idea about this issue/deficiency
>  [x]  I did already know about it
> 
>  [ ]  I'm already using BME (or similar) patches 
>  [x]  I will start using BME patches now
>  [ ]  I do not need/use this 'feature' at all
> 
>  [ ]  I think this SHOULD get into the next
>   stable Linux-VServer release because ...
> 
>   [ ]  I am using it/want to use it
>   [ ]  It's more a bugfix than a feature
>   [ ]  I like the idea of ro --bind mounts
> 
>  [x]  I think this should NOT be included into
>   the next stable release because ...
>   
>   [ ]  it is not thoroughly tested
>   [ ]  it is not mature enough
>   [ ]  it adds unnecessary code 
>   [x]  it should better be fixed in
>the mainline Linux Kernel


-thomas

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] mountpoint blocked even with all context shutdown

2006-01-09 Thread Oliver Welter

Hi Herbert,
Hi Christian,


you have to start 'thinking' in namespaces and avoid leftovers
and unwanted 'copies' or duplicate mounts ...


I do !!
But as mentioned in my OP
1) The mount is done inside the namespace of the guest - it is not
visible outside in the root and is not copied into later started
servers. At least I can confirm this with issuing "mount" inside the
guest (vserver www1 enter and then >mount) inside the namespace
(vnamespace -e www1 mount)
Neither one shows the mount !

2) I shutdown ALL virtual servers, so I assume that all namespaces are
destroyed. At least vserver-stat does not show anything beside the root
server and "vps ax" does not show any process running with another ID
than "main"...

So, I see two possible approaches on the probleme:
1) drbd keeps its own "mount" table that is not freed correctly
2) the kernel blocks mounts from a not longer active namespace

I dont have any idea how to debug, and to make it even harder, the
problem shows not on all mounts/guest, which are basically configured
all identical.
It might be a problem that the mount inside the namespavce is not
cleanly freed when the startup/shutdown of the guest fails/hangs
somewhere, but this is only a wild guess :(

Oliver

--
Diese Nachricht wurde digital unterschrieben
oliwel's public key: http://www.oliwel.de/oliwel.crt
Basiszertifikat: http://www.ldv.ei.tum.de/page72


smime.p7s
Description: S/MIME Cryptographic Signature
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] Getting the namespace of processes

2006-01-09 Thread Wilhelm Meier
Hi,

I want to extract the namespace-attribute of a specific/all process(es). Some 
time ago there was a discussion about this topic, but I think the essence was 
that there are no tools to get this information. Or am I wrong?

Is it possible to extract this information via /proc/...? I didn't find any 
hints about that.

--
Wilhelm Meier
email: [EMAIL PROTECTED]
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver