[svlug] vserver, df and "nfs"

Ivan Sergio Borgonovo mail at webthatworks.it
Wed Oct 14 09:08:45 PDT 2009

On Tue, 13 Oct 2009 17:55:43 +0200
Ivan Sergio Borgonovo <mail at webthatworks.it> wrote:

> Hi,
> I just remained orphan of the mailing list of my LUG and it is time
> to renew my home server.
> When Linux was not that popular and there weren't too many mailing
> list, this one was very active and useful, so while our ML is on
> holiday I decided to come back here.
> I'd like to put all the services I need for my lan in a vserver but
> I've a couple of problems.
> 1) it looks that nfs inside a vserver guest is a pain, so I'm
> looking for a "nfs" that:
> - play nice inside a vserver guest
> - is easy to set up
> - inherit users/groups from passwd/users
> - can be fstab mounted
> - looks as similar as possible as a local fs (locking trouble?)

OK this is partially solved... Samba + pam_mount seems to work
reasonably well even for auto-mounting homes
I'll see if all *nix programs play nice with Samba.

But the following is still unsolved:

> 2) I've mounted other disks to offer extra storage to one of the
> vserver.
> [host]
> ~400Gb HD LVM / on HW RAID
> +
> ~500Gb as:
> mount /dev/md0 /etc/vserver/lan/vdir/mnt/nfs
> [guest-lan]
> df -h just report 400Gb
> ivan at lan:~$ df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/hdv1             443G   18G  403G   5% /
> none                   16M     0   16M   0% /tmp
> When I write inside the guest... things get properly written in
> md0... but still df report just 400Gb.
> How am I going to add "space" inside the vserver so that df can see
> it?

> thanks for the hospitality and help

Ivan Sergio Borgonovo

More information about the svlug mailing list