Re: DLM & RedHat Enterprise Linux

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

 



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?

Strace shows this at the end:
write(2, "locking abcd EX ...", 19)     = 19
brk(0)                                  = 0x502000
brk(0x523000)                           = 0x523000
open("/dev/misc/dlm_default", O_RDWR)   = -1 ENODEV (No such device)
stat("/dev/misc/dlm-control", {st_mode=S_IFCHR|0766, st_rdev=makedev(10, 62), ...}) = 0
open("/proc/misc", O_RDONLY)            = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a9565b000
read(3, " 62 dlm-control\n183 hw_random\n 6"..., 1024) = 67
close(3)                                = 0
munmap(0x2a9565b000, 4096)              = 0
open("/dev/misc/dlm-control", O_RDWR)   = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
write(3, "\3\0\0\0\0\0\0\0\0\0\0\0\4\0\0\0\1\0\0\0\177\0\0\0defa"..., 143) = -1 EPERM (Operation not permitted)
write(2, "\n", 1)                       = 1
write(2, "lock: Operation not permitted\n", 30) = 30
exit_group(-1)                          = ?

Regards,
Christos


--

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