[Please complete the below template with details of the problem reported on your Web-UI. Be as detailed as possible. Community members, including developers, shall try and help. Thanks for your time in reporting this issue! We recommend purchasing commercial support for expedited support directly from the developers.]
Brief description of the problem
Can’t remove a device from the pool due to a rebalance in progress, but I don’t think a rebalance is actually in progress.
One of my hard drives has failed. I have a RAID 1 setup containing 6x2TB and 2x6TB drives. I’m attempting to remove 2 of the 2TB drives, the failed one and one other one to keep the RAID configuration happy. When I attempt to do that, I get the error message shown below. However, if I run “btrfs balance status /mnt2/main_pool” at bash, I see “No balance found on ‘/mnt2/main_pool’”
My pool has been mounted using the command “mount -t btrfs -o degraded /dev/sdb /mnt2/main_pool”
From the last time I performed a balance, I recall that it didn’t handle progress indication well. however, I think it just said it was at 0% progress until it was completed and then it jumped to 100%. So this doesn’t match what I recall happening in the past.
Should I unmount and remount the pool and try again? Should I reboot? I’m just worried about interrupting a rebalance and causing everything to fail.
Detailed step by step instructions to reproduce the problem
[write here]
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/pool.py", line 461, in put
resize_pool(pool, dnames, add=False)
File "/opt/rockstor/src/rockstor/fs/btrfs.py", line 201, in resize_pool
return run_command(resize_cmd)
File "/opt/rockstor/src/rockstor/system/osi.py", line 110, in run_command
raise CommandException(cmd, out, err, rc)
CommandException: Error running a command. cmd = /sbin/btrfs device delete /dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YFG4B0HA /mnt2/main_pool. rc = 1. stdout = ['']. stderr = ["ERROR: error removing device '/dev/disk/by-id/ata-Hitachi_HUA723020ALA641_YFG4B0HA': add/delete/balance/replace/resize operation in progress", '']