Subject: Re: [vserver] Quota problem
From: Peter Mann <Peter.Mann@tuke.sk>
Date: Tue, 5 Feb 2008 10:08:19 +0100

On Sat, Jan 26, 2008 at 09:17:42PM +0100, Herbert Poetzl wrote:
> > > On Wed, Jan 09, 2008 at 09:13:22AM +0100, Olav Schwering wrote:
> > >>
> > >>>> e2fsck -p /dev/partition
> > >>>> mount /dev/partition /vserver/vs1
> > >>>> rm -f /vservers/vs1/dev/hdv1
> > >>>> vrsetup /dev/vroot1 /dev/partition
> > >>>> cp -fa /dev/vroot1 /vservers/vs1/dev/hdv1
> > >>>> echo "quota_ctl" >>/etc/vservers/vs1/ccapabilities
> > >>>> echo "dev/hdv1 / ufs rw,usrquota,grpquota 0 0"
> > > 	~~~~~~~~~~~
> > > should be /dev/hdv1
> > > 
> > 
> > >>>>>> /etc/vservers/vs1/apps/init/mtab
> > >>>> vserver vs1 start
> > >>>> vserver vs1 enter
> > >> vs1>quotacheck -maugv -> build the usual quota files
> > >> vs1>quotaon -va returned -> "Invalid argument"
> > >>
> > >> Tried it multiple ways and time, using a LVM or harddrive partition etc.
> > >> It doesn't matter what I'm doing it fails  :-(
> > >>
> > >> Anyone out there who has it working and can give me some input what I'm
> > >> doing wrong?
> > > 
> > > try mounting the filesystem with quota support i.e. 
> > > mount -o grpquota,usrquota /dev/partition /vserver/vs1
> > > mount -o quota /dev/partition /vserver/vs1
> > 
> > Made a couple of tests and both options are working for me. The thing is
> > you have to do follow up the right procedure and don't forget to edit
> > the mtab. Would say that should be updated in the wiki...
> 
> please do that then ..

I have some question about vserver quota:

- I want quota on separate partition
- I'm using Debian 4.0 Etch - kernel 2.6.18 + vserver patch 2.0.3
- (I can compile my own new kernel or recompile default Debian kernel
  because of CONFIG_BLK_DEV_VROOT or install backported 2.6.22 vserver
  enabled kernel + recompile because of CONFIG_BLK_DEV_VROOT)
- I'm using XFS filesystem - quota on host works fine, but I can use
  ext3 too ...
- I can use util-vserver 0.30.212 (Etch) or 0.30.214 (Etch backports)
- I can test it online and talk on IRC

What versions and configurations are suggested?
Do I need CONFIG_BLK_DEV_VROOT=y or CONFIG_BLK_DEV_VROOT=m is sufficient?
Do I need quota utilities on host or only on guest or on both?
Do I need mounting filesystem with quota support on host? (I assume yes,
but ... "try mounting" isn't "you must")

And YES, I read mailing list archives, web pages and I tried many
attempts, but maybe I'm doing something wrong ;-(


Linux-VServer Test [V0.17] Copyright (C) 2003-2006 H.Poetzl
chcontext is working.
chbind is working.
Linux 2.6.18-uvt #1 SMP Sun Jan 27 17:58:50 CET 2008 x86_64
Ea 0.30.214 236/glibc (DSa) <v13,net,v21,v22,v23,netv2>
VCI: 0002:0002 236 03000076 (TbLgnPHi)
---
[000]# succeeded.
[001]# succeeded.
[011]# succeeded.
[031]# succeeded.
[101]# succeeded.
[102]# succeeded.
[201]# succeeded.
[202]# succeeded.


testfs.sh-0.17 -t -D /dev/loop0 -M /mnt
Linux-VServer FS Test [V0.17] Copyright (C) 2005-2007 H.Poetzl
Linux 2.6.18-uvt x86_64/0.30.214
VCI:  0002:0002 236 03000076 (ID24)
---
testing ext2 filesystem ...
[000]. [001]. [002]. [999].
---
testing ext3 filesystem ...
[000]. [001]. [002]. [999].
---
testing xfs filesystem ...
[000]. [001]. [002]. [999].
---
testing reiser filesystem ...
[000]* (reiserfs format failed)
---
testing jfs filesystem ...
[000]* (jfs format failed)


i have my own recompiled kernel without support for reiserfs and jfs


-- 

5o   Peter.Mann at tuke.sk