Re: [Vserver] Re: quota problem

From: Jarek Dylag <jarek.dylag_at_gmail.com>
Date: Fri 09 Feb 2007 - 08:48:19 GMT
Message-ID: <64a616a10702090048q796aeb03ve63c5e22a5d78029@mail.gmail.com>

Hi,

> question is, on what filesystem, and with what options
>
> IIRC, ext3 is kind of hairy, as it supports two different
> kinds of quote, a journaled one and the 'normal' ext2
> quota stuff ...

ext3 with mount options: rw,noatime,usrquota,grpquota

i checked also ext2,

strace output after quotaon command shows:
quotactl(Q_QUOTAON|USRQUOTA, "/dev/hdv1", 2, {7022360269181497135,
491328337198, 210453397504, 7018986666877744431, 7809632559044715890,
3408187388784029541, 4707197592648237900, 7161402270843880775}) = -1
ENODEV (No such device)

> > I think my issue was that /etc/mtab and /etc/fstab have to be correct.
> > To get that i put them in /etc/vserver/<name>/apps/init/ (As far as i
> > remember, only mail access ehre now).
>
> yes, it _is_ essential to get proper values at mount
> (real mount time) and mtab (for the guest)

my configuration:

host fstab:
/dev/hdc6 /vservers ext3 noatime,usrquota,grpquota 0 2

host mtab:
/dev/hdc6 /vservers ext3 rw,noatime,usrquota,grpquota 0 0

host /proc/mounts:
/dev/hdc6 /vservers ext3 rw,noatime,usrquota,grpquota 0 0

guest apps/init/mtab:
/dev/hdv1 / ufs noatime,usrquota,grpquota 0 2

guest /proc/monts:
/dev/root / ext3 rw,noatime,usrquota,grpquota 0 0

guest fstab:
/dev/hdv1 / ext3 defaults,usrquota,grpquota 1 1

guest mtab:
/dev/hdv1 / ufs noatime,usrquota,grpquota 0 2

Jarek Dylag
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Feb 9 12:12:32 2007

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 09 Feb 2007 - 12:12:38 GMT by hypermail 2.1.8