Samba version 4.1.1 not reporting correct size on clients

Issues related to applications and software problems
Post Reply
llcooljayr
Posts: 6
Joined: 2006/12/08 01:01:07

Samba version 4.1.1 not reporting correct size on clients

Post by llcooljayr » 2014/10/24 21:41:18

I have been working with samba version 4.1.1 on centOS7 and been having size reporting issues when a quota is set for a share on the client side (Windows 7 / MAC 10.9/Mac 10.10).

I have checked my /etc/fstab (using xfs for my filesystem) and the quotas are enabled and working.

For the share, centOS7, I set my disk quota to be 5GB. When I mount the share on Windows 7 or MAC 10.9/10.10, the Capacity shows up as 10GB. The disk usage is also being reported incorrectly. There are more than 6MB in that share. If I get rid of the disk quota, the capacity and usage are correct. Can someone please shine some light on this issue please. Thank you.

/etc/fstab

Code: Select all

/dev/sda1                           /                       xfs     defaults        1 1
/dev/sdb1         /array1             xfs     grpquota,suid,dev,usrquota,exec 0 0
/etc/samba/smb.conf

Code: Select all

[global]
        workgroup = WORKGROUP
        printcap name = /dev/null
        load printers = no
        unix extensions = no
        server string = CentOS7
        force directory mode = 0777
        force create mode = 0777
        encrypt passwords = yes
        disable spoolss = yes
        max log size = 50
        client max protocol = SMB3
        nt acl support = no

[centos7]
        writeable = yes
        read list = administrator,user4
        path = /array1/centos7
        write list = user10,user2
        force group = centos7
        valid users = administrator,user4,user10,user2
repquota -g /array1

Code: Select all

 
[root@centOS7 ~]# repquota -g /array1
*** Report for group quotas on device /dev/sdb1
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --       4       0       0              4     0     0
users     --      12       0       0              4     0     0
centos7   -- 3486184       0 5242880              4     0     0
What Windows7 Displays
What Windows7 Displays
smb_quota.png (31.21 KiB) Viewed 2005 times

llcooljayr
Posts: 6
Joined: 2006/12/08 01:01:07

Re: Samba version 4.1.1 not reporting correct size on client

Post by llcooljayr » 2014/10/27 21:06:05

help anyone?

cheuk3
Posts: 1
Joined: 2015/04/16 05:38:27

Re: Samba version 4.1.1 not reporting correct size on client

Post by cheuk3 » 2015/04/16 05:39:50

im having this problem also, did you get any solution? Thanks

llcooljayr
Posts: 6
Joined: 2006/12/08 01:01:07

Re: Samba version 4.1.1 not reporting correct size on client

Post by llcooljayr » 2015/04/23 20:57:18

I had to update my kernel to 3.19 to resolve the issue.

Here is a link that helped me out.

http://wiki.mikejung.biz/CentOS_7#Upgra ... el_to_3.17

Post Reply