Web lists-archives.com

Re: [Samba] Problem with quota




Hai, 

Now, i must say, i dont know much about ZFS and freeBSD. 

But hits might help you. 
http://stanislavs.org/reporting-correct-space-usage-for-samba-shared-zfs-volumes/  

And/or
https://www.xigmanas.com/forums/viewtopic.php?t=12000


Greetz, 

Louis



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces@xxxxxxxxxxxxxxx] Namens 
> Gerard Seibert via samba
> Verzonden: vrijdag 21 december 2018 10:05
> Aan: samba@xxxxxxxxxxxxxxx
> CC: Gerard Seibert
> Onderwerp: Re: [Samba] Problem with quota
> 
> On Thu, 20 Dec 2018 16:59:54 -0800, Jeremy Allison stated:
> 
> >On Thu, Dec 20, 2018 at 12:08:02PM +0000, Gerard Seibert via 
> samba wrote:
> >> Samba version 4.8.7, running on a FreeBSD 12.0-RELEASE 
> amd64 system with a
> >> ZFS file system.
> >> 
> >> I have a Windows 10 machine configured to do automatic 
> backups to my
> >> FreeBSD machine on a daily basis. Since updating FreeBSD, 
> the following
> >> errors are displayed when the backup begins. This is a 
> truncated list.
> >> 
> >> Dec 19 06:29:01 scorpio smbd[56795]: [2018/12/19 06:29:01.413635,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:29:01
> >> scorpio smbd[56795]:   failed to get quota for user ID 1001 on
> >> Gerard/HP-ENVY/Data: No such file or directory Dec 19 
> 06:29:01 scorpio
> >> smbd[56795]: [2018/12/19 06:29:01.434179,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:29:01
> >> scorpio smbd[56795]:   failed to get quota for group ID 1001 on
> >> Gerard/HP-ENVY/Data: No such file or directory Dec 19 
> 06:29:01 scorpio
> >> smbd[56795]: [2018/12/19 06:29:01.458440,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:29:01
> >> scorpio smbd[56795]:   failed to get quota for user ID 1001 on
> >> Gerard/HP-ENVY/Data: No such file or directory Dec 19 
> 06:29:01 scorpio
> >> smbd[56795]: [2018/12/19 06:29:01.458879,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:29:01
> >> scorpio smbd[56795]:   failed to get quota for group ID 1001 on
> >> Gerard/HP-ENVY/Data: No such file or directory Dec 19 
> 06:32:50 scorpio
> >> smbd[56795]: [2018/12/19 06:32:50.434704,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:32:50
> >> scorpio smbd[56795]:   failed to get quota for user ID 1001 on
> >> Gerard/HP-ENVY/Data/C/Users/Gerard/ClipCache/ClipCache (2018_12_19
> >> 11_28_59 UTC).db: No such file or directory Dec 19 06:32:50 scorpio
> >> smbd[56795]: [2018/12/19 06:32:50.435502,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:32:50
> >> scorpio smbd[56795]:   failed to get quota for group ID 1001 on
> >> Gerard/HP-ENVY/Data/C/Users/Gerard/ClipCache/ClipCache (2018_12_19
> >> 11_28_59 UTC) .db: No such file or directory Dec 19 
> 06:33:44 scorpio
> >> smbd[56795]: [2018/12/19 06:33:44.283479,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:33:44
> >> scorpio smbd[56795]:   failed to get quota for user ID 1001 on
> >> Gerard/HP-ENVY/Data: No such file or directory Dec 19 
> 06:33:44 scorpio
> >> smbd[56795]: [2018/12/19 06:33:44.284743,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:33:44
> >> scorpio smbd[56795]:   failed to get quota for group ID 1001 on
> >> Gerard/HP-ENVY/Data: No such file or directory Dec 19 
> 06:33:47 scorpio
> >> smbd[56795]: [2018/12/19 06:33:47.358120,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:33:47
> >> scorpio smbd[56795]:   failed to get quota for user ID 1001 on
> >> Gerard/HP-ENVY/Configuration/Catalog1.edb: No such file or 
> directory Dec
> >> 19 06:33:47 scorpio smbd[56795]: [2018/12/19 06:33:47.358359,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B) Dec 
> 19 06:33:47
> >> scorpio smbd[56795]:   failed to get quota for group ID 1001 on
> >> Gerard/HP-ENVY/Configuration/Catalog1.edb: No such file or 
> directory Dec
> >> 19 06:33:47 scorpio smbd[56795]: [2018/12/19 06:33:47.404124,
> >> 0] ../source3/lib/sysquotas_4B.c:148(sys_quotactl_4B)
> >> 
> >> The backup priceeds correctly and no data is apparently 
> lost. Is there some
> >> way I can get samba to stop filling up my screen, and 
> system log, with this
> >> useless info?  
> >
> >You're getting this due to the error code being returned in errno
> >not being one that Samba expects. Here's the underlying code:
> >
> >       ret = quotactl(path, cmd, id, qblk);
> >        if (ret == -1) {
> >                /* ENOTSUP means quota support is not 
> compiled in. EINVAL
> >                 * means that quotas are not configured (commonly).
> >                 */
> >                if (errno != ENOTSUP && errno != EINVAL) {
> >                        DEBUG(0, ("failed to %s quota for %s 
> ID %u on %s:
> > %s\n", (cmd & QCMD(Q_GETQUOTA, 0)) ? "get" : "set",
> >                                    (cmd & QCMD(0, 
> GRPQUOTA)) ? "group" :
> > "user", (unsigned)id, path, strerror(errno)));
> >                }
> >
> >
> >Looks like your system is returning ENOENT here in errno, 
> not ENOTSUP or
> >EINVAL.
> 
> Excuse me, but I am sort of a beginner here. Is this problem 
> something that I
> can fix or is it a bug in Samba that I should report?
> 
> Thanks!
> 
> -- 
> Gerard
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba