[Samba] samba over nfs mount and free space problem
Alex Mestiashvili
alex at biotec.tu-dresden.de
Tue Mar 20 03:08:05 MDT 2012
On 03/19/2012 10:30 PM, Alex Mestiashvili wrote:
> On 03/19/2012 08:35 PM, Volker Lendecke wrote:
>> On Mon, Mar 19, 2012 at 03:55:44PM +0100, Alex Mestiashvili wrote:
>>> "dfree command" also didn't help.
>> The dfree command should always help. You could fake 100GB
>> free space always.
>>
>> Volker
> Hi,
>
> that is my dfree command ( I added simple logging )
>
> #!/bin/sh
> /usr/sbin/df -k $1 | /usr/bin/tail -1 | /opt/csw/bin/gawk '{print $2"
> "$4}'
> /bin/echo $1 | /usr/bin/logger -t smbd_dfree_args -p local7.notice
> /bin/echo `pwd` | /usr/bin/logger -t smbd_dfree_cwd -p local7.notice
>
> the output is like that :
> $/usr/local/bin/dfree
> 629145600 354102404
>
> df output for nfs share looks like that:
>
> df -k |head-1
> Filesystem kbytes used avail capacity Mounted on
>
> cd /home/mygroup/myuser
> df -k .
> nfsserver:/users/myuser
> 629145600 275043196 354102404 44%
> /home/mygroup/myuser
>
>
> df -k for local fs:
>
> localzfs/users/myuser
> 1948778496 42750990 914183310 5%
> /home/mygroup/myuser
>
>
> nevertheless when I access nfs share via samba I get no free space .
> with local fs it is ok .
> The same happens in windows when one maps a network drive.
>
> I will check again tomorrow, but may be I am missing something simple
> and obvious ?
>
> Thank you,
> Alex
I changed dfree script to the very simple one:
#cat dfree
#!/bin/sh
echo 524150168 524150168
now if I access a share which is a local filesystem to the samba server
I get with df -h :
Size 500G Used 0B Available 500Gi
so dfree works fine in that case.
if I access via smb nfs mounted filesystem I get totally different result:
Size 186M Used 186M Available 0B
So obviously dfree doen't work in this case .
What else mechanism is used to determine share size ?
Thank you,
Alex
More information about the samba
mailing list