Re: [vserver] quota

From: Daniel Hokka Zakrisson <daniel_at_hozac.com>
Date: Fri 28 Mar 2008 - 05:48:09 GMT
Message-ID: <36430.192.168.101.12.1206683289.squirrel@intranet>

Barbara Nowak wrote:
> Hi,
>
> I'm trying setup quota into my vserver, but I have'nt luck :(
>
> I've created LVM partitions follow up to: http://tinyurl.com/pnatc
>
> But it no working...
>
> v1:/# edquota root
> No filesystems with quota detected.
>
> I have 3 partitions:
>
> marvin:/dev/mapper# ls -la
> total 0
> drwxr-xr-x 2 root root 120 2008-03-20 17:31 .
> drwxr-xr-x 16 root root 3.5K 2008-03-14 16:45 ..
> crw-rw---- 1 root root 10, 63 2008-03-06 22:42 control
> brw-rw---- 1 root disk 253, 0 2008-03-06 22:42 vg0-v1
> brw-rw---- 1 root disk 253, 1 2008-03-06 22:42 vg0-v2
> brw-rw---- 1 root disk 253, 2 2008-03-06 22:42 vg0-v3
>
>
> and now I trying to setup vserver v1
> partition was mounted on mainserver (marinv):
> /dev/mapper/vg0-v1 on /vhost/v1 type ext3 (rw,usrquota,grpquota)
>
> I've copied vg0-v1 as hdv1 into /dev/ v1's vserver.

That's terribly insecure. You want to use vroot here.

> In this solutions edquota say: No filesystems with quota detected.

Did you change /etc/vservers/<guest>/apps/init/mtab to include
usrquota,grpquota, and specify ufs?

> I'm tryied someting else... (vserver fstab change), followed line was
> added into fstab into /etc/vserver/v1
>
> /dev/hdv1 / ext3 rw,usrquota,grpquota,dev 0 0
> But when I've started vserver, then I have:
> marvin:~# vserver v1 start
> secure-mount: mount(): No such file or directory
> /etc/vservers/v1/fstab:1:1: failed to mount fstab-entry

Yep, the first path in the fstab is relative to the host.

> [....]
> It started, but no quota system was found.
> On vserver v1 I have always:
>
> v1:/# mount
> /dev/hdv1 on / type ufs (defaults)
> none on /proc type proc (defaults)
> none on /tmp type tmpfs (size=16m,mode=1777)
> none on /dev/pts type devpts (gid=5,mode=620)
>
> I've use kernel 2.6.22 (amd64) with vserver v: 2.2.0.4 (on debian lenny)
>
> --
> Barbara

You might want to look at http://linux-vserver.org/Standard_non-shared_quota

-- 
Daniel Hokka Zakrisson
Received on Fri Mar 28 20:32:05 2008
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 28 Mar 2008 - 20:32:08 GMT by hypermail 2.1.8