-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OC7&8] Wrong disk quota in OwnCloud (LVM) #14732
Comments
Is this related to #14298? |
Not really, in my topic I do get the wrong maximum quota. The actual used quota is not the problem. OwnCloud takes the maximum quota size from the root partition not from the actual partition where OC is installed on. |
Ah. Now I got it. Thanks for clarification. |
Yes. I believe someone asked the same question on IRC and it was the same conclusion. However I just had a quick test. I tried this on OC 8 and I see that the path used is in the format "$datadir/$user", for example: "/srv/www/htdocs/owncloud/data/myuser". You could have a quick test with a separate PHP script: <?php
echo disk_free_space('/srv/www/htdocs/owncloud/data/myuser'); and see whether it returns the correct value. |
In my case (similiar setup) |
For me it shows the 32.7 GB, not the 10 GB from my LV. |
@jlrag so either it's a bug in PHP or the way you configured LVM (note: I'm not familiar with LVM at all) doesn't work the same as regular partitions. |
OK, it was my fault. A noob fault from my part. It now works, the LVM was mounted on the wrong directory. Now it shows the right disk quota, a bit less than it is, but almost the exact quota. Thanks for your help. |
Hey there,
I've got multiple OwnCloud instances on my Server. The Server is partitioned with LVM.
For every new user/instance I do create a new logical volume which is mounted to the new owncloud /var/www/user folder. On every owncloud instance I do get the wrong disk quota. For example I do create a 10 GB logical volume for a new user, mount it, install new owncloud instance, but when I want to see how much free space is left I always get the maximum of the root paritition (here 32.7 GB) not the 10GB I did create with LVM.
So every one of my users do get the 32.7 GB as maximum space, not their set up 10 GB or 100 GB...
How can I change this? I want everyone to see his own maximum space.
The text was updated successfully, but these errors were encountered: