Re: DLM & RedHat Enterprise Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christos Triantafillou wrote:
> Hello Patrick,
> 
> Thanks a lot for your reply.
> 
> I have created the devices like this:
>> la /dev/misc
> total 0
> drwxrwxrwx   2 root root     80 May 30 21:32 .
> drwxr-xr-x  11 root root   5820 May 30 21:33 ..
> crwxrwxrwx   1 root root 10, 62 May 30 21:32 dlm-control
> crwxrwxrwx   1 root root 10, 61 May 30 21:32 dlm_default
> 
> Now I can run dlmtest as root but as non-root I get this:
>> dlmtest abcd
> locking abcd EX ...
> lock: Operation not permitted
> 
> Is it possible to use DLM as non-root?
>

Yes, if you create the lockspace as root beforehand.

so: root needs to run a program (lstest would do) to create the lockspace.
Then you change the permissions on the dlm_<lockspace> device, either in the
same script or using udev config files.

You can't currently do this for the default lockspace, because it is removed
when it is no longer in use. That bug will be fixed in a future update.

-- 

patrick

--

Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux