Error running a command. cmd = /usr/sbin/btrfs qgroup assign 0/262 2015/67 /mnt2/NAS. rc = 1. stdout = ['']. stderr = ['ERROR: unable to assign quota group: File exists', '']

Brief description of the problem

Attempted to resize a share and got an error message

Detailed step by step instructions to reproduce the problem

Logged into Rockstore
Went to Rock-Ons and turned off my Emby Server
Clicked “Shares” on the left hand vertical menu
Clicked on the “Emby” name
Usage for “Emby” came up
Clicked button marked “Resize”
Current size is 5GB
Entered 20GB in the field maked “new size”
Clicked button marked “save”
Error appears

Web-UI screenshot

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 279, in put share_pqgroup_assign(share.pqgroup, share) File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 1403, in share_pqgroup_assign return qgroup_assign(share.qgroup, pqgroup, share.pool.mnt_pt) File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 1472, in qgroup_assign raise e CommandException: Error running a command. cmd = /usr/sbin/btrfs qgroup assign 0/262 2015/67 /mnt2/NAS. rc = 1. stdout = ['']. stderr = ['ERROR: unable to assign quota group: File exists', '']

@greyson1973 welcome to the Rockstor community.

Do you currently have quotas turned on? Also, which version of Rockstor are you running on?

I have no idea if quotas are on or off. To my knowledge, quotas are disabled on Rockstor (though I would like to know how to check) and the version is

System is running Rockstor version: 4.5.8-0

You can check under the Pools Page, there is a column about the quotas, and under the Shares page you can also see whether quotas are enabled for a given share.

1 Like

On the Pool Page quotas were enabled. Thanks to you telling me where to look, I have disabled the quotas for now. As I understand quotas, turning it off will allow the share to grow beyond the originally designated size (should they need to) and, considering WHY I was looking to resize

Screenshot 2025-01-21 204418

turning it off will give me flexibility and time to determine what to do next

On a side note - turning off the quota allowed me to resize. So, I think I just fixed my own problem

Yes, that is correct about turning off quotas. However, at this time Rockstor does not enforce quotas when they are turned on, as historically there have been issues with it in the btrfs upstream. In one of the future Rockstor release the enforcement will likely be turned on again.

The error you received during resizing while quotas are on is something that is likely addressed in one of the later test channel updates, soon to be become the next stable release.

For now, having quotas on, you essentially just receive a warning about overconsumption of a given quota.

2 Likes