RE: [Samba] Samba and NFS quota problem

2006-12-18 Thread Steve Goodman \(lists\)
Hello,

I don't know if anyone has any ideas on how to solve this.

The same issue seems to occur in Red Hat EL 4 as well. CentOS 3.8 seems
to be normal with both 23d and built in 3.0.9, so does Fedora Core 6. 

It seems to be something to do with NFS; though I don't know what's
happening.

If I change the window size of the NFS mount, although everythings
normal on the underlying unix box samba changes the free space on the
drive wildly. I don't think it's related to quotas but disk space. This
occurs in any samba 3 I try it on.

I've put more examples below illustrating what is happening. Does anyone
have any ideas?


NFS Server space: 17GB, free 468MB

mount -o wsize=512 

Samba shows on windows: 54MB free of 2.07GB

mount -o wsize=1024

Samba shows on windows: 218MB free of 8.30GB

mount -o wsize=2048

Samba shows on windows: 109MB free of 4.15GB

Mount -o wsize=4096

Samba shows on windows: 54.6MB free of 2.07GB

mount -o wsize=8192

Samba shows on windows 27.3MB free of 1.03GB

mount -o wsize=16384

Samba shows on windows 13.6MB free of 531MB

Mount -o wsize=32768 (default?)

Samba shows on windows 6.8MB free of 265MB








> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Steve Goodman (lists)
> Sent: 16 December 2006 19:23
> To: samba@lists.samba.org
> Subject: RE: [Samba] Samba and NFS quota problem
> 
> Hi,
> 
> Just in case someone has any idea on how to solve this, I've done some
> further testing.
> 
> I get the same error below on both a fresh CentOS 4.4 install on x86
> (not x64, to rule that out) using built-in RHEL packages; and on the
> original x64 server when compiling from sources (with sys quotas and
> disk quotas enabled or disabled).
> 
> As I say I can see the quota correctly on the Samba server using the
> unix quota command but on the windows client the samba mapped drive
> shows entirely the wrong value as free/used. If I make the home
> directory on a local disk which doesn't use quotas all is fine.
> 
> Am I missing something really obvious?
> 
> Kind Regards,
> 
> Steve
> 
> > -Original Message-
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On
> > Behalf Of Steve Goodman (lists)
> > Sent: 15 December 2006 15:42
> > To: samba@lists.samba.org
> > Subject: [Samba] Samba and NFS quota problem
> >
> > Hello,
> >
> > I am mounting via NFS a number of volumes and re-sharing these as
> CIFS.
> > We have been using this arrangement successfully for a number of
> years.
> >
> > We are replacing the "CIFS>NFS" proxy servers (which are also
> PDC/BDCs
> > to OpenLDAP) and a weird problem seems to occur.
> >
> > The problem is the quota/disk size appears to be wrong. For example,
> if
> > I use the unix quota command on the SMB server, it shows correctly
> the
> > quota and usage. However on the windows machine this is showing
> > incorrectly. The NFS is mounted with no special options, and I have
> > tried against different NFS servers, different Samba versions and
can
> > replicate the problem on both the PDC and BDC servers (which are
> setup
> > identically)
> >
> > OS:
> > CentOS 4.4 x64
> >
> > Hardware:
> > Dell Poweredge 2950
> >
> > Current Samba version:
> > samba3-client-3.0.23d-30
> > samba3-3.0.23d-30
> >
> > (Also occurs on CentOS/RHEL Samba-3.0.10)
> >
> > NFS server:
> >
> > Solaris 9, default settings. Also it shows the wrong quota
> information
> > using another NFS server (EMC Celerra NAS 5.5)
> >
> > Quota shows correctly using quota command:
> >  Filesystem  blocks   quota   limit   grace   files   quota
> limit
> > grace
> > helios:/adm/d501
> >  359519  50  500500 668   0
> 0
> >
> > Disk usage on the windows system shows:
> >
> > 8.98MB free of 265MB - writing any file to this fails.
> >
> > Samba also appears to be compiled with quota options enabled:
> > # smbd -b| grep QUOTA
> >HAVE_SYS_QUOTA_H
> >HAVE_LINUX_XFS_QUOTAS
> >HAVE_QUOTACTL_LINUX
> >HAVE_SYS_QUOTAS
> >HAVE_XFS_QUOTAS
> >WITH_QUOTAS
> >WITH_QUOTAS
> >
> >
> >
> > Any thoughts on this problem would be greatly appreciated. I am
about
> > to
> > compile from source to see if this still occurs.
> >
> > Steve Goodman
> >
> >
> > --
> > To unsubscribe from this list go to the following URL and read the
> > instructions:  https://lists.samba.org/mailman/listinfo/samba
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] Samba and NFS quota problem

2006-12-16 Thread Steve Goodman \(lists\)
Hi,

Just in case someone has any idea on how to solve this, I've done some
further testing.

I get the same error below on both a fresh CentOS 4.4 install on x86
(not x64, to rule that out) using built-in RHEL packages; and on the
original x64 server when compiling from sources (with sys quotas and
disk quotas enabled or disabled).

As I say I can see the quota correctly on the Samba server using the
unix quota command but on the windows client the samba mapped drive
shows entirely the wrong value as free/used. If I make the home
directory on a local disk which doesn't use quotas all is fine.

Am I missing something really obvious?

Kind Regards,

Steve

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Steve Goodman (lists)
> Sent: 15 December 2006 15:42
> To: samba@lists.samba.org
> Subject: [Samba] Samba and NFS quota problem
> 
> Hello,
> 
> I am mounting via NFS a number of volumes and re-sharing these as
CIFS.
> We have been using this arrangement successfully for a number of
years.
> 
> We are replacing the "CIFS>NFS" proxy servers (which are also PDC/BDCs
> to OpenLDAP) and a weird problem seems to occur.
> 
> The problem is the quota/disk size appears to be wrong. For example,
if
> I use the unix quota command on the SMB server, it shows correctly the
> quota and usage. However on the windows machine this is showing
> incorrectly. The NFS is mounted with no special options, and I have
> tried against different NFS servers, different Samba versions and can
> replicate the problem on both the PDC and BDC servers (which are setup
> identically)
> 
> OS:
> CentOS 4.4 x64
> 
> Hardware:
> Dell Poweredge 2950
> 
> Current Samba version:
> samba3-client-3.0.23d-30
> samba3-3.0.23d-30
> 
> (Also occurs on CentOS/RHEL Samba-3.0.10)
> 
> NFS server:
> 
> Solaris 9, default settings. Also it shows the wrong quota information
> using another NFS server (EMC Celerra NAS 5.5)
> 
> Quota shows correctly using quota command:
>  Filesystem  blocks   quota   limit   grace   files   quota
limit
> grace
> helios:/adm/d501
>  359519  50  500500 668   0
0
> 
> Disk usage on the windows system shows:
> 
> 8.98MB free of 265MB - writing any file to this fails.
> 
> Samba also appears to be compiled with quota options enabled:
> # smbd -b| grep QUOTA
>HAVE_SYS_QUOTA_H
>HAVE_LINUX_XFS_QUOTAS
>HAVE_QUOTACTL_LINUX
>HAVE_SYS_QUOTAS
>HAVE_XFS_QUOTAS
>WITH_QUOTAS
>WITH_QUOTAS
> 
> 
> 
> Any thoughts on this problem would be greatly appreciated. I am about
> to
> compile from source to see if this still occurs.
> 
> Steve Goodman
> 
> 
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba