Brief description of the problem
Running ROCKSTOR 3.9.1-16 Testing Updates
Linux: 4.12.4-1.el7.elrepo.x86_64
Can’t rescan disks to add new drive.
Error running a command. cmd = /usr/bin/ls -l /dev/disk/by-id. rc = 2. stdout = [‘’]. stderr = [‘/usr/bin/ls: cannot access /dev/disk/by-id: No such file or directory’, ‘’]
Detailed step by step instructions to reproduce the problem
On my qemu hypervisor i created small qcow2 disk image that hosts installation of rockstor system, some time later after installation i created large lvm group and passed it to virtual machine so it is visible as separate disk inside vm.
So the problem is that the script thats executed when i press ‘Rescan’ button in Storage → Disks menu is searching only for /dev/disk/by-id directory witch is not populated (i guess it’s udev thing) in my setup, other device identification methods are still available
https://imgur.com/a/5llRKG6
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/disk.py", line 383, in post
return self._update_disk_state()
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 86, in _update_disk_state
byid_name_map = get_byid_name_map()
File "/opt/rockstor/src/rockstor/system/osi.py", line 1617, in get_byid_name_map
throw=True)
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/bin/ls -l /dev/disk/by-id. rc = 2. stdout = ['']. stderr = ['/usr/bin/ls: cannot access /dev/disk/by-id: No such file or directory', '']