oVirt mount local file system
We are in process to setup a new tiny cloud, based on oVirt. We setup the first machine which is the Virtualization Manager and also has some resources to be host for this cloud. We have a quiet large disk space on the physical machine and we wanted to mount it as a storage domain. We went to
Storage -> Domains and then we clicked on “New Domain”.
Here we choose the Storage Type to POSIX compliant FS, in Path we set the path to the dev: /dev/sda4 and in VFS Type we filled ext4.
This ended with a strange error:
Permission settings on the specified path do not allow access to the storage. Verify permission settings on the specified storage path
In the vdsm.log (/var/log/vdsm/vdsm.log) we found:
2020-05-02 05:28:33,795+0300 WARN (jsonrpc/0) [storage.oop] Permission denied for directory: /rhev/data-center/mnt/_dev_sda4 with permissions:7 (outOfProcess:196) 2020-05-02 05:28:33,796+0300 INFO (jsonrpc/0) [storage.Mount] unmounting /rhev/data-center/mnt/_dev_sda4 (mount:212) 2020-05-02 05:28:33,818+0300 ERROR (jsonrpc/0) [storage.HSM] Could not connect to storageServer (hsm:2420) Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/storage/hsm.py", line 2417, in connectStorageServer conObj.connect() File "/usr/lib/python2.7/site-packages/vdsm/storage/storageServer.py", line 191, in connect six.reraise(t, v, tb) File "/usr/lib/python2.7/site-packages/vdsm/storage/storageServer.py", line 184, in connect self.getMountObj().getRecord().fs_file) File "/usr/lib/python2.7/site-packages/vdsm/storage/fileSD.py", line 89, in validateDirAccess raise se.StorageServerAccessPermissionError(dirPath) StorageServerAccessPermissionError: Permission settings on the specified path do not allow access to the storage. Verify permission settings on the specified storage path.: 'path = /rhev/data-center/mnt/_dev_sda4'
The solution so far was to mount the partition:
mount /dev/sda4 /mnt
Then set the permissions:
chown -R 36:36 /mnt chmod -R 777 /mnt
and then try to remount the partition into oVirt Virtualization Manager following the steps above, with /dev/sda4 as Path.