CIFS Mount Used Size descrepancy
Subsystems (2)
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #2 from Terrance <[email protected]> ---
Just checked with Ubuntu 20.04 LTS and it too has the exact same issue even with a newer version:
apt-cache policy cifs-utils
cifs-utils:
Installed: 2:6.9-1ubuntu0.1
Candidate: 2:6.9-1ubuntu0.1
Version table:
*** 2:6.9-1ubuntu0.1 500
500 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64
Packages
100 /var/lib/dpkg/status
2:6.9-1 500
500 http://us.archive.ubuntu.com/ubuntu focal/main amd64 PackagesSignature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
Terrance <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Product|CifsVFS |Samba 4.1 and newer
Version|2.6 |4.15.9
Component|kernel fs |File servicesSignature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #3 from Terrance <[email protected]> --- Still occurring in Ubuntu 22.04 LTS
smbd --version
Version 4.15.9-Ubuntu
apt-cache policy cifs-utils
cifs-utils:
Installed: 2:6.14-1ubuntu0.1
Candidate: 2:6.14-1ubuntu0.1
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #4 from Enzo Matsumiya <[email protected]> ---
Hi Terrance. Can you provide a network trace of the timeframe when you do a "df -h" please?
This way we can check if:
- the server sends unexpected info and the client just pass it on as-is to userspace
- the server sends expected info, but the client modifies it somehow
- the server sends unexpected info and the client modifies it to something else even
Thanks!
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #5 from Terrance <[email protected]> --- Hi Enzo!
What command output are you looking for? I don't think I am familiar with doing a network trace of the timeframe for df. Can you please tell me a command that I can run so that I can get you that output?
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #6 from Enzo Matsumiya <[email protected]> --- You can do something like this, with tcpdump package installed:
<in terminal 1>
Quoted 1 line
$ sudo mount.cifs <...mount options...> //10.0.0.220/storage /cifs/server
<in terminal 2>
Quoted 1 line
$ sudo tcpdump -i eth0 -s 0 -w wrong-df.pcap port 445
(of course, replace "eth0" with the network interface that connects to 10.0.0.220)
<back to terminal 1>
Quoted 1 line
$ df -h
<go back to terminal 2>
Quoted 1 line
press ctrl-c to terminate tcpdump capture
Then you attach the new file "wrong-df.pcap" here please, along with the size shown by "df -h" in terminal 1, and the size you expected to see.
A "df -h" output from the server side at the same time you see the discrepancy would be nice as well.
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #7 from Terrance <[email protected]> --- Created attachment 17506
--> https://bugzilla.samba.org/attachment.cgi?id=17506&action=edit
Incorrect Space when using Samba share being reported
File containing incorrect Space when using Samba share being reported
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #8 from Terrance <[email protected]> ---
Top line is the Samba mounted share and the bottom line is the exact same share mounted on NFS.
Filesystem Size Used Avail Use% Mounted on
{..}
//10.0.0.220/storage 15T 9.1T 5.5T 63% /media/Samba 10.0.0.220:/media/storage 15T 8.3T 5.5T 61% /media/NAS
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #9 from Terrance <[email protected]> --- Sorry, NFS share is correct.
terrance@terrance-ubuntu:~$ ssh 10.0.0.220 'df -h' Filesystem Size Used Avail Use% Mounted on tmpfs 368M 3.3M 364M 1% /run /dev/md0 455G 320G 112G 75% / tmpfs 1.8G 16K 1.8G 1% /dev/shm tmpfs 5.0M 4.0K 5.0M 1% /run/lock /dev/md1p1 15T 8.3T 5.5T 61% /media/storage tmpfs 368M 120K 367M 1% /run/user/1000
Signature · 2 lines
You are receiving this mail because: You are the QA Contact for the bug.
Tom Talpey
reviewer[resend including linux-cifs]
Quoted 22 lines · Tom Talpey
[I don't have a Samba-bugzilla account, so replying directly]
This is clearly just a TB/TiB discrepancy in reporting.
9.1 TB * 10e12 / 2e16 == 8.3 TiB
Odd that the "Size" and "Avail" numbers are the same, that's maybe worth looking into. I bet this is some sort of ancient compatibility behavior for a Windows-style API.
Quoted 11 lines · On 9/3/2022 5:55 PM, [email protected] wrote:
https://bugzilla.samba.org/show_bug.cgi?id=13570
--- Comment #8 from Terrance <[email protected]> ---
Top line is the Samba mounted share and the bottom line is the exact same share mounted on NFS.Filesystem Size Used Avail Use% Mounted on {..}
//10.0.0.220/storage 15T 9.1T 5.5T 63% /media/Samba 10.0.0.220:/media/storage 15T 8.3T 5.5T 61% /media/NAS