[Users] NFS sanlock fails on Fedora 19 - 3.3RC (was add NFS Domain fails)
Markus Stockhausen
stockhausen at collogia.de
Sun Sep 8 14:29:03 EDT 2013
> Hello,
>
> after some further investigation I think I found the reason
> but do not know how to fix it best. On my Fedora 19 host
> sanlock is running as user sanlock (id 179). That user has
> no access to files created by user vdsm (id 36). See logs
> attached.
>
> The node installation was done the standard way through
> ovirt-engine 3.3. Maybe I missed some setp in the installation
> process but I would expect this to work out of the box.
>
> Can anyone tell me what the expected setup is. Should I file
> a bug for that?
>
> Markus
>
> [root at colovn1 etc]# ps -ef | grep sanlock
> sanlock 1125 1 0 10:19 ? 00:00:00 sanlock daemon -U sanlock -G sanlock
> root 1126 1125 0 10:19 ? 00:00:00 sanlock daemon -U sanlock -G sanlock
> root 1128 1 0 10:19 ? 00:00:00 wdmd -G sanlock
> root 2307 1401 0 10:39 pts/0 00:00:00 grep --color=auto sanlock
>
> strace -p 1125 -F
> ...
> 2094 mprotect(0x7fa020000000, 135168, PROT_READ|PROT_WRITE) = 0
> 2094 open("/rhev/data-center/mnt/10.10.30.251:_var_nas5_ovirt/4250f423-459c-40da-9a0e-d5b6fe853b1b/dom_md/ids", O_RDWR|O_SYNC|O_DIRECT) = -1 EACCES (Permission denied)
> 2094 gettid() = 2094
> ...
>
> [root at colovn1 etc]# cat /etc/sysconfig/sanlock
> # SANLOCKOPTS -- set the command line options for the sanlock daemon
> # See sanlock man page for full list of command line options.
> #
> # Include "-U sanlock -G sanlock" in the option string unless
> # also changing the SANLOCKUSER above.
> #
> # To disable use of watchdog via wdmd
> #SANLOCKOPTS="-U sanlock -G sanlock -w 0"
> #
> # To disable use of watchdog via wdmd and disable high priority features
> #SANLOCKOPTS="-U sanlock -G sanlock -w 0 -h 0"
>
Too stupid. In case someone else faces this problem. The error
comes from a missing "all_squash" parameter in /etc/exports
Markus
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: InterScan_Disclaimer.txt
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130908/4fffb58d/attachment.txt>
More information about the Users
mailing list