OLVM: Storage Domain Creation Fails with Error "'Sanlock lockspace write failure', 'Permission denied'"
(Doc ID 2939929.1)
Last updated on APRIL 23, 2023
Applies to:
Linux OS - Version Oracle Linux 8.7 with Unbreakable Enterprise Kernel [5.15.0] and laterInformation in this document applies to any platform.
Symptoms
Unable to add a new storage domain. The task fails with permission denied errors during sanlock operations.
/var/log/vdsm/vdsm.log:
2023-03-07 01:08:53,738-0500 INFO (jsonrpc/1) [storage.SANLock] Initializing sanlock for domain 8c0095c2-5325-4958-be8c-############# path=/dev/8c0095c2-5325-4958-be8c-#############/ids alignment=1048576 block_size=512 io_timeout=10 (clusterlock:345) 2023-03-07 01:08:53,738-0500 ERROR (jsonrpc/1) [storage.SANLock] Cannot initialize lock for domain 8c0095c2-5325-4958-be8c-############# (clusterlock:364) Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/vdsm/storage/clusterlock.py", line 354, in initLock sector=self._block_size) sanlock.SanlockException: (13, 'Sanlock lockspace write failure', 'Permission denied') 2023-03-07 01:08:53,739-0500 INFO (jsonrpc/1) [storage.LVM] Deactivating lvs: vg=8c0095c2-5325-4958-be8c-############# lvs=['metadata', 'leases', 'ids', 'inbox', 'outbox', 'xleases', 'master'] (lvm:1802) 2023-03-07 01:08:53,934-0500 INFO (jsonrpc/1) [vdsm.api] FINISH createStorageDomain error=Could not initialize cluster lock: () from=::ffff:10.18.#.###,56960, flow_id=162c3d87, task_id=d4614415-e468-43b1-bcb4-############# (api:52) 2023-03-07 01:08:53,935-0500 ERROR (jsonrpc/1) [storage.TaskManager.Task] (Task='d4614415-e468-43b1-bcb4-#############') Unexpected error (task:877) Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/vdsm/storage/clusterlock.py", line 354, in initLock sector=self._block_size) sanlock.SanlockException: (13, 'Sanlock lockspace write failure', 'Permission denied')
Changes
Applied security profile for the KVM hosts.
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Changes |
Cause |
Solution |