[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 <mvw@planets.ow.nl> Johan Ekenberg <johan@ekenberg.nu> Jan Kara <jack@suse.cz> Distribution: openSUSE 11.0 (i586) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
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 <syseng@adnovum.ch> 2009-06-10 03:35:53 MDT --- Specifying my own home directory with "quota -f ~" also does not work. It only works for the other user who is listed first with "quota -A". bernd@linuxhost:~> quota -f ~ quota: Mountpoint (or device) /home/bernd not found or has no quota enabled. quota: Not all specified mountpoints are using quota. bernd@linuxhost:~> quota -A Disk quotas for user bernd (uid 3031): Filesystem blocks quota limit grace files quota limit grace netappfiler:/vol/home/benny 10752 52428800 52428800 286 500000 500000 netappfiler:/vol/home/bernd 10752 52428800 52428800 286 500000 500000 bernd@linuxhost:~> quota -f /home/benny Disk quotas for user bernd (uid 3031): Filesystem blocks quota limit grace files quota limit grace netappfiler:/vol/home/benny 10752 52428800 52428800 286 500000 500000 Bye, Bernd -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
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 <meissner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |mseben@novell.com |ovo.novell.com | --- Comment #2 from Marcus Meissner <meissner@novell.com> 2009-06-25 12:09:37 MDT --- -> quota maintainer -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
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 <mseben@novell.com> 2009-07-07 01:36:23 MDT --- Hi Bernd I can confirm this bug, quota didn't correctly show "Filesystem" array, rest numbers are displayed and used properly. This issue is present also in Factory. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
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 <mseben@novell.com> 2009-09-21 10:20:14 MDT --- about Comment #2 : jack (quota maintainer) already fix this bug, so i will push this fix to factory -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
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 <mseben@novell.com> 2009-09-21 10:26:15 MDT --- uups .. of course Comment #1 describe problem with "quota -f", and THIS bug is fixed in factory -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=511513 http://bugzilla.novell.com/show_bug.cgi?id=511513#c6 Michal Seben <mseben@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |NEEDINFO Version|Final |Factory InfoProvider| |jack@novell.com Component|Basesystem |Basesystem AssignedTo|mseben@novell.com |bnc-team-screening@forge.pr | |ovo.novell.com Product|openSUSE 11.0 |openSUSE 11.3 Target Milestone|--- |Factory OS/Version|openSUSE 11.0 |openSUSE 11.3 --- Comment #6 from Michal Seben <mseben@novell.com> 2010-06-14 13:50:10 UTC --- Hi Jack, Would you be so kind and post your opinion here ? I found in launchpad same bugreport (like in Comment 0): https://bugs.launchpad.net/ubuntu/+source/quota/+bug/120490 Should I open new ticket in https://features.opensuse.org/ for this issue ? thanks -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=511513 http://bugzilla.novell.com/show_bug.cgi?id=511513#c7 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW CC| |jack@novell.com InfoProvider|jack@novell.com | --- Comment #7 from Jan Kara <jack@novell.com> 2010-06-14 14:18:42 UTC --- Hmm, the suggestion there looks reasonable. OK, I'll have a look into implementing it in the latest upstream version. You can open a new ticket for this, if you wish to track the feature (might be good for community etc.), I personally don't need it. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=511513 http://bugzilla.novell.com/show_bug.cgi?id=511513#c8 --- Comment #8 from Jan Kara <jack@novell.com> 2010-06-14 15:39:26 UTC --- 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. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
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 <mseben@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |mseben@novell.com InfoProvider| |jack@novell.com AssignedTo|bnc-team-screening@forge.pr |mseben@novell.com |ovo.novell.com | --- Comment #9 from Michal Seben <mseben@novell.com> 2010-06-21 08:46:59 UTC --- (In reply to comment #8) then, I will have to close this bug as WONTFIX ... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=511513 http://bugzilla.novell.com/show_bug.cgi?id=511513#c10 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mseben@novell.com |jack@novell.com --- Comment #10 from Jan Kara <jack@novell.com> 2010-06-21 12:08:35 UTC --- You know what, I'll write a wrapper script around quota(1) that will implement the requested behavior and include it in quota-tools. Admins can then tweak the script for their environment. That's a solution which should make most of the requesters happy... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=511513 https://bugzilla.novell.com/show_bug.cgi?id=511513#c Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|jack@novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=511513 https://bugzilla.novell.com/show_bug.cgi?id=511513#c11 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lpechacek@novell.com --- Comment #11 from Jan Kara <jack@novell.com> 2010-09-02 15:23:54 UTC --- *** Bug 636537 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=636537 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=511513 https://bugzilla.novell.com/show_bug.cgi?id=511513#c12 Jan Kara <jack@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FEATURE --- Comment #12 from Jan Kara <jack@novell.com> 2010-09-14 19:45:45 UTC --- OK, I've written a wrapper script (and added some options to quota(1) to make that easier). Everything is committed in quota-tools upstream repository. So at least for next openSUSE we should have a good solution for this problem. I'm closing this bug as FEATURE as the change is out of scope of openSUSE 11.3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com