I am trying to move some drives from an old pool to another one but it looks like after deleting the old pool, if I try to wipe the drives to add them to the new pool I get the following error.
“Device or resource busy”
I have checked if one of the drives is mounted somewhere else but no. I don’t see what process could be using those drives either.
In the “disks” tab, Rockstor is still seeing the drives with BTRFS partition on them, and propose to import it.
Brief description of the problem
I want to move the drives from one pool to another, but they appear as “busy”.
Detailed step by step instructions to reproduce the problem
- Deleted old pool.
- Removed all scheduled tasks related to that pool.
- Try to wipe the drives so I can add them to another pool not working.
Error Traceback provided on the Web-UI
Traceback (most recent call last): File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 921, in _role_disk return self._wipe(disk.id, request) File "/opt/rockstor/eggs/Django-1.8.16-py2.7.egg/django/utils/decorators.py", line 145, in inner return func(*args, **kwargs) File "/opt/rockstor/src/rockstor/storageadmin/views/disk.py", line 616, in _wipe wipe_disk(disk_name) File "/opt/rockstor/src/rockstor/system/osi.py", line 865, in wipe_disk return run_command([WIPEFS, '-a', disk_byid_withpath]) File "/opt/rockstor/src/rockstor/system/osi.py", line 121, in run_command raise CommandException(cmd, out, err, rc) CommandException: Error running a command. cmd = /usr/sbin/wipefs -a /dev/disk/by-id/ata-WDC_WD40EFRX-68N32N0_WD-WCC7K6VCA7JV. rc = 1. stdout = ['']. stderr = ['wipefs: error: /dev/disk/by-id/ata-WDC_WD40EFRX-68N32N0_WD-WCC7K6VCA7JV: probing initialization failed: Device or resource busy', '']
Thank you for your support!