[Bug 511513] New: Quota reports wrong NFS filesystem
http://bugzilla.novell.com/show_bug.cgi?id=511513
User syseng@adnovum.ch added comment
http://bugzilla.novell.com/show_bug.cgi?id=511513#c1
Summary: Quota reports wrong NFS filesystem
Classification: openSUSE
Product: openSUSE 11.0
Version: Final
Platform: Other
OS/Version: openSUSE 11.0
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@forge.provo.novell.com
ReportedBy: syseng@adnovum.ch
QAContact: qa@suse.de
Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.7)
Gecko/2009021906 Firefox/3.0.7
Setup: We have a Netapp filer where our NFS user homes are. The Netapp filer
has user quota enabled. User homes are mounted on /home with automount tables
in LDAP.
Expected behaviour (Solaris)
----------------------------
Type "quota -v" and your own quota usage is printed:
bernd@solarishost:~> quota -v
Disk quotas for bernd (uid 3031):
Filesystem usage quota limit timeleft files quota limit timeleft
/home/bernd 10748 52428800 52428800 286 -1 -1
bernd@solarishost:~> df -h .
Filesystem size used avail capacity Mounted on
adnnfsbe01.be.adnovum.ch:/vol/home_be/bernd
64G 25G 39G 40% /home/bernd
Wrong behaviour (Linux)
-----------------------
User types "quota" and sees the quota of someone else's directory. The command
"quota -A" reveals that in fact always the first entry in the list of mounted
/home directories is listed with always the same quota (the quota of the user
that typed that command):
bernd@linuxhost:~> quota
Disk quotas for user bernd (uid 3031):
Filesystem blocks quota limit grace files quota limit grace
adnnfsbe01.be.adnovum.ch:/vol/home_be/fedor
10748 52428800 52428800 286 4294967295
4294967295
bernd@linuxhost:~> quota -v
Disk quotas for user bernd (uid 3031):
Filesystem blocks quota limit grace files quota limit grace
adnnfsbe01.be.adnovum.ch:/vol/home_be/fedor
10748 52428800 52428800 286 4294967295
4294967295
bernd@linuxhost:~> quota -u
Disk quotas for user bernd (uid 3031):
Filesystem blocks quota limit grace files quota limit grace
adnnfsbe01.be.adnovum.ch:/vol/home/fedor
10748 52428800 52428800 286 4294967295
4294967295
bernd@linuxhost:~> quota -A
Disk quotas for user bernd (uid 3031):
Filesystem blocks quota limit grace files quota limit grace
netappfiler:/vol/home/fedor
10748 52428800 52428800 286 4294967295
4294967295
netappfiler:/vol/home/toms
10748 52428800 52428800 286 4294967295
4294967295
netappfiler:/vol/home/bernd
10748 52428800 52428800 286 4294967295
4294967295
bernd@linuxhost:~> df -h .
Filesystem Size Used Avail Use% Mounted on
netappfiler:/vol/home/bernd
64G 26G 39G 40% /home/bernd
The quota command works fine on Solaris and I remember that many years ago it
also worked fine on HP-UX. Why not Linux? Are we the only company that users
Linux as desktop OS?
Reproducible: Always
Steps to Reproduce:
1. Setup Netapp NFS server with user home and quota
2. Login as user1 on Linux client and type "quota"
3. Login as user2 on Linux client and type "quota"
Actual Results:
One sees the quota entry of user1, the first in the list.
Expected Results:
User should only see its own home directory with the quota command. Everything
else is confusing.
uname -a
Linux adnwsbe08 2.6.25.18-0.2-pae #1 SMP 2008-10-21 16:30:26 +0200 i686 i686
i386 GNU/Linux
rpm -qi quota
Name : quota Relocations: (not relocatable)
Version : 3.16 Vendor: SUSE LINUX Products
GmbH, Nuernberg, Germany
Release : 24.1 Build Date: Fri 06 Jun 2008
11:35:13 PM CEST
Install Date: Wed 10 Jun 2009 10:02:08 AM CEST Build Host: belana.suse.de
Group : System/Filesystems Source RPM: quota-3.16-24.1.src.rpm
Size : 1187273 License: GPL v2 only
Signature : DSA/SHA1, Fri 06 Jun 2008 11:38:28 PM CEST, Key ID
a84edae89c800aca
Packager : http://bugs.opensuse.org
URL : http://sourceforge.net/projects/linuxquota/
Summary : Disk Quota System
Description :
The quota subsystem allows a system administrator to set soft and hard
limits on used space and the number of inodes used for users and
groups. The kernel must be compiled with disk quota support enabled
(SUSE kernels have this support).
Authors:
--------
Marco van Wieringen
http://bugzilla.novell.com/show_bug.cgi?id=511513
User syseng@adnovum.ch added comment
http://bugzilla.novell.com/show_bug.cgi?id=511513#c1
--- Comment #1 from Bernd Nies
http://bugzilla.novell.com/show_bug.cgi?id=511513
User meissner@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=511513#c2
Marcus Meissner
http://bugzilla.novell.com/show_bug.cgi?id=511513
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=511513#c3
--- Comment #3 from Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=511513
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=511513#c4
--- Comment #4 from Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=511513
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=511513#c5
--- Comment #5 from Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=511513
http://bugzilla.novell.com/show_bug.cgi?id=511513#c6
Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=511513
http://bugzilla.novell.com/show_bug.cgi?id=511513#c7
Jan Kara
http://bugzilla.novell.com/show_bug.cgi?id=511513
http://bugzilla.novell.com/show_bug.cgi?id=511513#c8
--- Comment #8 from Jan Kara
On a second thought, it's not that great idea as it seemed. What if e.g. mail directories (like /var/mail/<user>) are automounted the same way? So in the end I still believe that (with fixed -f option) admin written script which generates a list of mountpoints and runs "quota -f <mountpoints>" is the best way. hm .. so If I understand correctly: you will not include this feature in new release ?
http://bugzilla.novell.com/show_bug.cgi?id=511513
http://bugzilla.novell.com/show_bug.cgi?id=511513#c9
Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=511513
http://bugzilla.novell.com/show_bug.cgi?id=511513#c10
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=511513
https://bugzilla.novell.com/show_bug.cgi?id=511513#c
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=511513
https://bugzilla.novell.com/show_bug.cgi?id=511513#c11
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=511513
https://bugzilla.novell.com/show_bug.cgi?id=511513#c12
Jan Kara
participants (1)
-
bugzilla_noreply@novell.com