Hi everyone, on my server, i have quota set on /home partition (ext3). mount says: root at zen:/var/log# mount |grep quo /dev/sda8 on /home type ext3 (rw,noatime,usrquota) /dev/sda7 on /tmp type ext3 (rw,noatime,usrquota,data=writeback) System is debian/stable (distribution 2.6.8-3-686-smp kernel), quotas are working: root at zen:/var/log# quota ax Disk quotas for user ax (uid 506): Filesystem blocks quota limit grace files quota limit grace /dev/sda8 148064 250000 300000 7066 0 0 /dev/sda7 16 10000 300000 5 0 0 but dovecot has trouble with them: root at zen:/var/log# grep ax mail.err |tail -n 4 Feb 26 15:02:27 zen dovecot: IMAP(ax): quotactl(Q_GETQUOTA, /dev/sda8) failed: Invalid argument Feb 26 15:02:27 zen dovecot: IMAP(ax): Dovecot was compiled with Linux quota v2 support, try changing it (--with-linux-quota configure option) Feb 26 15:03:28 zen dovecot: IMAP(ax): quotactl(Q_GETQUOTA, /dev/sda8) failed: Invalid argument Feb 26 15:03:28 zen dovecot: IMAP(ax): Dovecot was compiled with Linux quota v2 support, try changing it (--with-linux-quota configure option) In sheer desperation I compiled dovecot with v1 quotas, but that fails too. Can anyone point me into right direction? Ax -- V?clav H?la, spr?vce unixov?ch server? P??rodov?deck? fakulta Univerzita Karlova v Praze
On Mon, 2007-02-26 at 15:06 +0100, V?clav H?la wrote:> Feb 26 15:02:27 zen dovecot: IMAP(ax): quotactl(Q_GETQUOTA, /dev/sda8) > failed: Invalid argument > Feb 26 15:02:27 zen dovecot: IMAP(ax): Dovecot was compiled with Linux > quota v2 support, try changing it (--with-linux-quota configure option)Maybe the quota headers aren't matching what the kernel is running. I've no idea really, the fs quota code either seems to work or it doesn't.. You could try checking with strace what's the difference between Dovecot's quotactl() call and "quota" command's quotactl() call. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20070228/e5d109d4/attachment.bin>
Hi El Lunes, 26 de Febrero de 2007 15:06, V?clav H?la escribi?:> > root at zen:/var/log# grep ax mail.err |tail -n 4 > Feb 26 15:02:27 zen dovecot: IMAP(ax): quotactl(Q_GETQUOTA, /dev/sda8) > failed: Invalid argument > Feb 26 15:02:27 zen dovecot: IMAP(ax): Dovecot was compiled with Linux > quota v2 support, try changing it (--with-linux-quota configure option) > Feb 26 15:03:28 zen dovecot: IMAP(ax): quotactl(Q_GETQUOTA, /dev/sda8) > failed: Invalid argument > Feb 26 15:03:28 zen dovecot: IMAP(ax): Dovecot was compiled with Linux > quota v2 support, try changing it (--with-linux-quota configure option) > > In sheer desperation I compiled dovecot with v1 quotas, but that fails > too. Can anyone point me into right direction?May be a silly idea, but have you forced quota v2 support? I had a similar problem -I can't remeber if exactly the same, though-, and solved it with --with-linux-quota=2. Try it. Aaaaaaaaaagur. -- Joseba Torre. CIDIR Bizkaia.