Brief description of the problem
When trying to change the quota from a share (on a hard drive pool that is not the ROOT pool) from the share size to something else, I get the error. I believe when I initially created the share I had assigned a quota to it, but at that time quota were not working. And now I can’t resize that quota?
Error Traceback provided on the Web-UI
Traceback (most recent call last):
File "/opt/rockstor/src/rockstor/rest_framework_custom/generic_view.py", line 41, in _handle_exception
yield
File "/opt/rockstor/src/rockstor/storageadmin/views/share.py", line 247, in put
share_pqgroup_assign(share.pqgroup, share)
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 1335, in share_pqgroup_assign
return qgroup_assign(share.qgroup, pqgroup, share.pool.mnt_pt)
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 1404, in qgroup_assign
raise e
CommandException: Error running a command. cmd = /usr/sbin/btrfs qgroup assign 0/258 2015/43 /mnt2/Main. rc = 1. stdout = ['']. stderr = ['ERROR: unable to assign quota group: File exists', '']
More info
The share is mounted to the nextcloud rockon, and nextcloud reports a volume size of 3.5TB, which sounds about accurate for what I had initially set the quota as. However, according to the rockstor UI there are only about 900GB of data on the share (with a share quota of 9.1 TB; the entire pool), so the nextcloud share free space calculation must be off, too. If I run df
via SSH, it agrees that the share has 3.5TB used and is 100% full. It also agrees, though, that the share size is 9.1TB. I believe the listing shows the state of the entire pool, which it somehow seems to think is 100% full, even though only about 30% are used. But that’s only a secondary and tertiary issue, uncovered by the first.