What was on that disk before? Either Rockstor thinks some partition on that drive is mounted/in use because it doesn’t have access to it (can sometimes happen depending on what the disk was previously formatted with).
There is a small section in the documentation about this:
wipefs can erase filesystem, raid or partition-table signatures
(magic strings) from the specified device to make the signatures
invisible for libblkid. wipefs does not erase the filesystem
itself nor any other data from the device.
If you want to ensure the data on the disk is absolutely, positively destroyed then you might want to go with the wiping process described in the Rockstor help section above.
What was on the disk before
Chia farm data store through Truenas
Ran the command on 4 drives with same issue and get the screenshots. But when try to configure drive Role / Wipe existing Filesystem, I still get the same error.
Also when I do a disk Rescan, I get the below error.
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/disk.py”, line 522, in post
return self._update_disk_state()
File “/opt/rockstor/.venv/lib/python2.7/site-packages/django/utils/decorators.py”, line 185, in inner
return func(*args, **kwargs)
File “/opt/rockstor/src/rockstor/storageadmin/views/disk.py”, line 376, in _update_disk_state
p_info = dev_pool_info[dev_name]
KeyError: ‘/dev/sdcd’
I think I have seen somewhere that for a prior TrueNAS drive you might have to actively wipe the drive at the lower level I think (using something like ShredOS or Darik’s Boot and Nuke)
or use dd (and that could be dangerous if you don’t pick the right drive to delete).