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/<vserver-name>/fstab: > > <root servers dir path> <vservers mount point path> 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/<vserver-name>/fstab.remote: > > <nfs server>:<path> <vservers mount point path> 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