[Bug 532701] New: Quota can be enabled for root partition / only after remounting it with "mount -v -o remount /"
http://bugzilla.novell.com/show_bug.cgi?id=532701 User alexei.anisimov@gmail.com added comment http://bugzilla.novell.com/show_bug.cgi?id=532701#c1 Summary: Quota can be enabled for root partition / only after remounting it with "mount -v -o remount /" Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i686 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: alexei.anisimov@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729) After enabling and setting up quota for / and /home partitions we have noticed that after reboot quota is enabled only for /home partition, root partition had quota off. Testing showed that quota cannot be enabled on / partition until it is remounted. After that quotaon works just fine. Adding "mount -v -o remount /" to /etc/init.d/boot.quota helps to enable quota during boot-up. Reproducible: Always Steps to Reproduce: 1. Install and configure SuSe 11.1 and enable quota support for / partition: /etc/fstab: /dev/sda6 / ext3 acl,user_xattr,usrquota 1 1 /dev/sda7 /home ext3 acl,user_xattr,usrquota 1 2 # quotacheck -avugm 2. Reboot. 3. Check quota status 4. Try to enable quota with "quotaon /" or with "/etc/init.d/boot.quota restart" Actual Results: Quota is not enabled on / but enabled on /home # quotaon -p -a group quota on / (/dev/sda6) is off user quota on / (/dev/sda6) is off group quota on /home (/dev/sda7) is off user quota on /home (/dev/sda7) is on Enabling quota on / fails with: # quotaon / quotaon: using //aquota.user on /dev/sda6 [/]: Invalid argument quotaon: Maybe create new quota files with quotacheck(8)? # /etc/init.d/boot.quota restart Turning off quota /dev/sda6 [/]: user quotas turned off /dev/sda7 [/home]: user quotas turned off Turning quota on Checking quotas. This may take some time. quotaon: using //aquota.user on /dev/sda6 [/]: Invalid argument quotaon: Maybe create new quota files with quotacheck(8)? /dev/sda7 [/home]: user quotas turned on Expected Results: It should not fail and should enable quota for / partition since everything is configured properly. This might be a configuration problem, but I doubt so, because both partitions (/ and /home) were configured in the same way and - it works OK after remounting the partition. So it seems like remount does something which I guess should be done automatically by quotaon. Basically the "solution" looks like this: # mount -o remount / # # quotaon -v / /dev/sda6 [/]: user quotas turned on # That's it - after that quota seem ot work OK, nothing was changed in the configuration between mount and quotaon commands. For now I also added this remount to boot.quota initscript, this can be considered as a workaround: # diff /root/boot.quota /etc/init.d/boot.quota 87a88,90 > echo "Remounting / partition" > mount -v -o remount / > echo "Running quotaon:" Absolutely the same issue is described here: http://forums.opensuse.org/install-boot-login/419389-problem-turning-quota.h... Somewhat similar issue was resolved during this bug (but they had reiserfs): https://bugzilla.novell.com/show_bug.cgi?id=375179 System information: # cat /etc/*release openSUSE 11.1 (i586) VERSION = 11.1 LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-2.0-ia32:core-3.2-ia32" # uname -a Linux localhost 2.6.27.7-9-pae #1 SMP 2008-12-04 18:10:04 +0100 i686 i686 i386 GNU/Linux # rpm -q quota quota-3.16-50.7 -- 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=532701
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=532701
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=532701#c1
--- Comment #1 from Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=532701
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=532701#c2
--- Comment #2 from Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=532701
User mseben@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=532701#c3
Michal Seben
http://bugzilla.novell.com/show_bug.cgi?id=532701
http://bugzilla.novell.com/show_bug.cgi?id=532701#c
Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=532701
http://bugzilla.novell.com/show_bug.cgi?id=532701#c5
Michal Marek
http://bugzilla.novell.com/show_bug.cgi?id=532701
http://bugzilla.novell.com/show_bug.cgi?id=532701#c6
--- Comment #6 from Alexei Anisimov
participants (1)
-
bugzilla_noreply@novell.com