Re: [Vserver] NFS recommendations?

2006-09-29 Thread Corey Wright
On Fri, 29 Sep 2006 15:57:42 +0200
Herbert Poetzl <[EMAIL PROTECTED]> wrote:

> On Fri, Sep 29, 2006 at 03:03:13PM +0200, Laurent Vallar - aka Val wrote:
> > If you plan to serve NFS from a guest nfs-user-server work fine but
> > without lock support.
> 
> is that missing lock support an nfs-user-server issue or
> is that some restriction of the guest which keeps it from
> using/having proper locking?

i presume it is irregardless of vserver.

"There is currently no support for file locking."
- http://packages.debian.org/unstable/net/nfs-user-server

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


Re: [Vserver] NFS recommendations?

2006-09-29 Thread Peter Sabaini
On Friday 29 September 2006 14:21, Tim Mecking wrote:
> Hi Peter,
>
> Peter Sabaini wrote:
> > * NFS on hosts: export / mount network drives on hosts, have vservers use
> > them * NFS on host and vservers: export on host, mount in vserver
> > * NFS between vservers: export / mount in vservers
> > * Userspace NFS? I usually use nfs-kernel-server, but maybe for
> > linux-vserver the userspace NFS daemon is the more adequate approach?
>
> The kernel-space NFS server isn't available in the vservers for obvious
> reasons. So I suggest to use the kernel-space nfs server in the root
> server.

I suspected as much, but thought I'd ask anyway. And what do you know, right 
now I stumbled across the FAQ entry stating this... vserver docs are still a 
little confusing for me :-)

> Mounting directories from the root server into a vserver running on the
> same physical machine can be done by using the bind feature. So a
> network file system isn't necessary. Just add the following line to
> /etc/vservers//fstab:
>
>   none bind,rw 0 0
> e.g.
> /home /home none bind,rw 0 0
>
> Remote directories are mounted into the each vserver which needs access
> using nfs.  This is done by adding the following line to
> /etc/vservers//fstab.remote:
>
> :  nfs defaults,rw 0 0
> e.g.
> 192.168.0.1:/home /home nfs defaults,rw 0 0

Yep that works great! Thanks!

 - peter.

>
> Ciao
> Tim

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


Re: [Vserver] NFS recommendations?

2006-09-29 Thread Herbert Poetzl
On Fri, Sep 29, 2006 at 03:03:13PM +0200, Laurent Vallar - aka Val wrote:
> Hi,
> 
> On Fri,Sep,29,2006, Tim Mecking wrote:
> > 
> > Peter Sabaini wrote:
> > > 
> > > * NFS on hosts: export / mount network drives on hosts, have vservers
> > >   use them 
> > > * NFS on host and vservers: export on host, mount in vserver
> > > * NFS between vservers: export / mount in vservers
> > > * Userspace NFS? I usually use nfs-kernel-server, but maybe for
> > >   linux-vserver the userspace NFS daemon is the more adequate approach?
> > 
> > The kernel-space NFS server isn't available in the vservers for obvious
> > reasons. So I suggest to use the kernel-space nfs server in the root server.
> > 
> 
> You can use /etc/vservers//fstab.remote to mount NFS inside
> guest.
>
> If you plan to serve NFS from a guest nfs-user-server work fine but
> without lock support.

is that missing lock support an nfs-user-server issue or
is that some restriction of the guest which keeps it from
using/having proper locking?

TIA,
Herbert

> Regards,
> Val.
> 
> -- 
>  .''`.
> : :' : Laurent Vallar - aka Val - Network & System Staff Engineer
> `. `'  GPG Key: 1024D/C4F38417 - http://www.zbla.net
>   `-
> ___
> 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] NFS recommendations?

2006-09-29 Thread Laurent Vallar - aka Val
Hi,

On Fri,Sep,29,2006, Tim Mecking wrote:
> 
> Peter Sabaini wrote:
> > 
> > * NFS on hosts: export / mount network drives on hosts, have vservers
> >   use them 
> > * NFS on host and vservers: export on host, mount in vserver
> > * NFS between vservers: export / mount in vservers
> > * Userspace NFS? I usually use nfs-kernel-server, but maybe for
> >   linux-vserver the userspace NFS daemon is the more adequate approach?
> 
> The kernel-space NFS server isn't available in the vservers for obvious
> reasons. So I suggest to use the kernel-space nfs server in the root server.
> 

You can use /etc/vservers//fstab.remote to mount NFS inside guest.

If you plan to serve NFS from a guest nfs-user-server work fine but without
lock support.

Regards,
Val.

-- 
 .''`.
: :' : Laurent Vallar - aka Val - Network & System Staff Engineer
`. `'  GPG Key: 1024D/C4F38417 - http://www.zbla.net
  `-
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] NFS recommendations?

2006-09-29 Thread Tim Mecking
Hi Peter,

Peter Sabaini wrote:
> 
> * NFS on hosts: export / mount network drives on hosts, have vservers use them
> * NFS on host and vservers: export on host, mount in vserver
> * NFS between vservers: export / mount in vservers
> * Userspace NFS? I usually use nfs-kernel-server, but maybe for linux-vserver 
> the userspace NFS daemon is the more adequate approach?

The kernel-space NFS server isn't available in the vservers for obvious
reasons. So I suggest to use the kernel-space nfs server in the root server.

Mounting directories from the root server into a vserver running on the
same physical machine can be done by using the bind feature. So a
network file system isn't necessary. Just add the following line to
/etc/vservers//fstab:

  none bind,rw 0 0
e.g.
/home /home none bind,rw 0 0

Remote directories are mounted into the each vserver which needs access
using nfs.  This is done by adding the following line to
/etc/vservers//fstab.remote:

:  nfs defaults,rw 0 0
e.g.
192.168.0.1:/home /home nfs defaults,rw 0 0


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