Bauanga
September 13, 2021, 12:12pm
1
Dear Nextcloud Community,
I would like to allocate 1.4 TB of storage to my Nextcloud users. However, in GB I can only set up to 1000 and in TB I can’t set commas (so only 1 or 2 or 3 TB etc.)
Is it somehow possible to allocate 1.4 TB to the users? I’m runnung NC in version 22 on a Ubuntu server with Apache2 and MariaDB.
Greetings!
1 Like
bb77
September 13, 2021, 12:44pm
2
Hi @Bauanga
Just enter the desired value directly to the input field and ignore the dropdown menu that appears. I tested it on my instance and it works just fine.
Bauanga:
can’t set commas
Try using a period instead of a comma. Or you could enter 1400 GB
as value. This will then automatically be renamed to 1.4 TB
.
1 Like
Bauanga
September 19, 2021, 3:04pm
3
I’ve tried that. If I enter a number higher than 1000 G Nextcloud sets to unlimited. Same with TB that are not 1 or 2 or 3 and so on. As soon it set a comma (or period) Nextcloud goes back to unlimited. Same behavoir on 3 different instances. Maybe because the data folder is on a zfs mount?
1 Like
tflidd
September 20, 2021, 8:11am
4
With the decimal point, there is already a topic (also showing an alternative solution via command line: Cannot set user quota with decimal values in German locale · Issue #18468 · nextcloud/server · GitHub ).
The unlimited storage was addressed here:
opened 01:45PM - 09 Nov 20 UTC
enhancement
1. to develop
**Is your feature request related to a problem? Please describe.**
In our speci… fic Nextcloud instance we need unrounded quotas, for example 1.8 TB. But Nextcloud does not allow to set those values, Nextcloud currently only accept values like `2 TB` or `10 GB`.
<details>
<summary>Background, why such values could be useful</summary>
We have 2TB storage for our nextcloud instance (2TB disks in RAID1 each).
Our offsite backup also has a 2TB size. However, offsite backup also creates snapshots to allow versioning of the backups. These snapshots of course also need storage, since files that have been deleted will remain there for weeks.
We would like to deduct this storage space that these snapshots use from the quota in Nextcloud.
The problem should not only affect us, since most hard drives and rented storages have sizes of full TB.
</details>
**Describe the solution you'd like**
Please allow setting non-rounded quptas at `https://cloud.example.com/settings/users`
**Describe alternatives you've considered**
None.
**Additional context**
- Relevant database table: `oc_preferences` (`appid`: `files`, `configkey`: `quota`)
- The database structure allows values like `1.8 TB` (tested already), however the frontend does not allow entering non-rounded quotas. Tested with Nextcloud 20.0.1
However it is marked as an enhancement and something to develop??
1 Like
gas85
September 20, 2021, 8:40am
5
Try to use command line, you can set everything from there even TB, GB or whatever:
sudo -u www-data php /var/www/nextcloud/occ user:setting <UserName> files quota 1.4TB
1 Like
Bauanga
September 20, 2021, 9:03am
6
Thanks for your help everyone!
Workaround: I’ve set the language and local to german - > set both to english (US) helps.
1 Like