2012/10/23 Cristian Falcas <cristi.falcas@gmail.com>
Hi,

I didn't do any sanlock configuration or touch it in any way. Is this
required for local storage?

Bellow you can find the info you asked for:

Package versions:

sanlock-lib-2.4-2.fc17.x86_64
sanlock-python-2.4-2.fc17.x86_64
sanlock-2.4-2.fc17.x86_64
libvirt-lock-sanlock-0.10.2-1.fc17.x86_64
vdsm-4.10.1-0.52.git1c10d06.fc17.x86_64


Dir permissions:

ls -la /media/ceva2/Ovirt/Storage/
total 12
drwxrwxr-x. 3 vdsm kvm 4096 Oct 23 09:37 .
drwxr-xr-x. 4 vdsm kvm 4096 Oct 23 09:00 ..
drwxr-xr-x. 4 vdsm kvm 4096 Oct 23 09:37 a6d7a944-4807-474d-89b0-df9e74dd2cd0

Sanlock errors:
2012-10-23 10:31:49+0300 891 [2813]: s20 lockspace
a6d7a944-4807-474d-89b0-df9e74dd2cd0:1:/rhev/data-center/mnt/_media_ceva2_Ovirt_Storage/a6d7a944-4807-474d-89b0-df9e74dd2cd0/dom_md/ids:0
2012-10-23 10:31:49+0300 891 [16423]: open error -13
/rhev/data-center/mnt/_media_ceva2_Ovirt_Storage/a6d7a944-4807-474d-89b0-df9e74dd2cd0/dom_md/ids
2012-10-23 10:31:49+0300 891 [16423]: s20 open_disk
/rhev/data-center/mnt/_media_ceva2_Ovirt_Storage/a6d7a944-4807-474d-89b0-df9e74dd2cd0/dom_md/ids
error -13


Best regards,



On Tue, Oct 23, 2012 at 12:01 PM, Vered Volansky <vered@redhat.com> wrote:
> Hi Cristian,
>
> Can you please share your SanLock and VDSM versions and the permissions of the directory you're attempting to use for the storage domain.
>
> It doesn't happen in my environment, and I'm trying to understand if it's something in your environment or an issue in a specific build.
>
> Regards,
> Vered
>
> ----- Original Message -----
>> From: "Cristian Falcas" <cristi.falcas@gmail.com>
>> To: users@ovirt.org
>> Sent: Tuesday, October 23, 2012 9:26:27 AM
>> Subject: [Users] local storage problems
>>
>> I'm trying to play with engine and vdsm on the same machine, but I
>> can't add a local storage. This is the last error from vdsm:
>>
>> 7e6c31db-abc0-4d6c-baff-d78e9c47d7a2::ERROR::2012-10-23
>> 10:22:02,454::task::833::TaskManager.Task::(_setError)
>> Task=`7e6c31db-abc0-4d6c-baff-d78e9c47d7a2`::Unexpected error
>> Traceback (most recent call last):
>>   File "/usr/share/vdsm/storage/task.py", line 840, in _run
>>     return fn(*args, **kargs)
>>   File "/usr/share/vdsm/storage/task.py", line 307, in run
>>     return self.cmd(*self.argslist, **self.argsdict)
>>   File "/usr/share/vdsm/storage/sp.py", line 269, in startSpm
>>     self._upgradePool(expectedDomVersion, __securityOverride=True)
>>   File "/usr/share/vdsm/storage/securable.py", line 68, in wrapper
>>     return f(self, *args, **kwargs)
>>   File "/usr/share/vdsm/storage/sp.py", line 409, in _upgradePool
>>     self._convertDomain(self.masterDomain, str(targetDomVersion))
>>   File "/usr/share/vdsm/storage/sp.py", line 1027, in _convertDomain
>>     domain.getRealDomain(), isMsd, targetFormat)
>>   File "/usr/share/vdsm/storage/imageRepository/formatConverter.py",
>> line 252, in convert
>>     converter(repoPath, hostId, imageRepo, isMsd)
>>   File "/usr/share/vdsm/storage/imageRepository/formatConverter.py",
>> line 99, in v3DomainConverter
>>     newClusterLock.acquireHostId(hostId, async=False)
>>   File "/usr/share/vdsm/storage/safelease.py", line 175, in
>>   acquireHostId
>>     raise se.AcquireHostIdFailure(self._sdUUID, e)
>> AcquireHostIdFailure: Cannot acquire host id:
>> ('a6d7a944-4807-474d-89b0-df9e74dd2cd0', SanlockException(19,
>> 'Sanlock
>> lockspace add failure', 'No such device'))
>>
>>
>> If I make the DC a NFS one, I can add nfs paths.
>>
>> Best regards,
>> _______________________________________________
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
>>
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Is SELinux sanlock flag set to 1 (on)?

Alex