Koozali.org: home of the SME Server

Quotas don't add up after adding new drive

Offline oitdmser

  • *
  • 7
  • +0/-0
Quotas don't add up after adding new drive
« on: September 18, 2008, 10:37:43 AM »
I recently added an additional hard disk to my sme 7.2 box using this guide:
http://wiki.contribs.org/AddExtraHardDisk

I migrated my ibay "itunes" to the new drive and my user folder "mike" as well.
Before the migration, the user "mike" was using approx 25gigs across both those folders. after the migration the user "mike" shows zero usage in the quota pane of the server-manger.

Is there a way to force a recalculation of those stats? I tried disabling, then re-enabling the quotas for that user and it did not work.

Thank you!

mike
« Last Edit: September 18, 2008, 01:27:00 PM by oitdmser »

Offline oitdmser

  • *
  • 7
  • +0/-0
Re: Quotas don't add up
« Reply #1 on: September 18, 2008, 11:11:14 AM »
OK so I figured out a bit more...

I had recalculated the quota for the new drive as per the HowTo, but I needed to recalculate the quota for the original drive as well. Perhaps this is because I mounted the new drive on /mnt/ and used symlinks from /home/e-smith/files ?

I ran:

quotaoff -vgu /dev/hda3  <-- original drive
quotacheck -vugc /dev/hda3
quotaon -vgu /dev/hda3

WARNING: This resets the quota limits for all the users!! I have only a few users, so its not big deal...

Now the reading in the quota pane shows the amount used on the original drive (I THINK, not sure but its close), it doesn't include the total from the new drive. Running quotacheck on the new drive does not solve this, nor does a reboot. Its as if Quota isn't configured to add the totals from the new drive, despite the fact the new drive is configured to use quotas in /etc/fstab

output from quota:
[root@morpheous ~]# quota -v mike
Disk quotas for user mike (uid 5000):
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda3 2500748  367001600 398458880            1526       0       0       
      /dev/sda1 27293620       0       0           79289       0       0   

there is no quota enabled for the new drive (/dev/sda1)
« Last Edit: September 18, 2008, 01:27:15 PM by oitdmser »

Offline oitdmser

  • *
  • 7
  • +0/-0
Re: Quotas don't add up after adding new drive
« Reply #2 on: September 18, 2008, 01:44:21 PM »
Further information...

It is possible to edit the quota information manually using edquota, and this allows me to edit the quota for the new drive, but this info does not appear in the web interface.

It appears as though the bug is in the web interface; it only edits and reports quotas for one filesystem, not all of them.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Quotas don't add up after adding new drive
« Reply #3 on: September 18, 2008, 02:42:10 PM »
It appears as though the bug is in the web interface; it only edits and reports quotas for one filesystem, not all of them.

Base SME server has no support for any additional filesystems. If you add additional file systems, you have modified your system, and you shouldn't expect it to work exactly the same as an unmodified system.

Offline oitdmser

  • *
  • 7
  • +0/-0
Re: Quotas don't add up after adding new drive
« Reply #4 on: September 18, 2008, 02:46:50 PM »
Despite the HowTo on the support page telling us how to add a disk?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Quotas don't add up after adding new drive
« Reply #5 on: September 18, 2008, 02:48:38 PM »
Despite the HowTo on the support page telling us how to add a disk?

there is an howto also for a game..

an howto doesn't mean that web interface will accomodate to the "new" system.. ;-)

Ciao
Stefano

Offline oitdmser

  • *
  • 7
  • +0/-0
Re: Quotas don't add up after adding new drive
« Reply #6 on: September 18, 2008, 02:51:53 PM »
Yeah, good point.

i guess the quotas don't matter that much for my application anyway.

Is there any thought of supporting mulitiple file systems in the future?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Quotas don't add up after adding new drive
« Reply #7 on: September 18, 2008, 03:02:20 PM »
Is there any thought of supporting mulitiple file systems in the future?

raise a NFR in bugzilla

Ciao
Stefano