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
[email protected]
http://list.linux-vserver.org/mailman/listinfo/vserver

Reply via email to