[Samba] samba over nfs mount and free space problem

Alex Mestiashvili alex at biotec.tu-dresden.de
Mon Mar 19 15:30:40 MDT 2012


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


More information about the samba mailing list