<br><br><div class="gmail_quote"><div dir="ltr">On Tue, 12 Sep 2017, 4:52 pengyixiang &lt;<a href="mailto:yxpengi386@163.com">yxpengi386@163.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>hello,everyone</div><div>    sanlock failed due to cannot read nfs storage&#39;s data , i tried to chmod 777 /rhev/data-center/mnt/<a href="http://192.168.11.55" target="_blank">192.168.11.55</a>\:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/*(add others permission), then it&#39;s ok</div><div><br></div><div id="m_5112730121177920253isForwardContent"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>    sanlock&#39;s log:<br>425120 Traceback (most recent call last):<br>425121   File &quot;/usr/lib/python2.7/dist-packages/vdsm/storage/task.py&quot;, line 878, in _run<br>425122     return fn(*args, **kargs)<br>425123   File &quot;/usr/lib/python2.7/dist-packages/vdsm/logUtils.py&quot;, line 52, in wrapper<br>425124     res = f(*args, **kwargs)<br>425125   File &quot;/usr/share/vdsm/storage/hsm.py&quot;, line 619, in getSpmStatus<br>425126     status = self._getSpmStatusInfo(pool)<br>425127   File &quot;/usr/share/vdsm/storage/hsm.py&quot;, line 613, in _getSpmStatusInfo<br>425128     (pool.spmRole,) + pool.getSpmStatus()))<br>425129   File &quot;/usr/share/vdsm/storage/sp.py&quot;, line 141, in getSpmStatus<br>425130     return self._backend.getSpmStatus()<br>425131   File &quot;/usr/share/vdsm/storage/spbackends.py&quot;, line 433, in getSpmStatus<br>425132     lVer, spmId = self.masterDomain.inquireClusterLock()<br>425133   File &quot;/usr/share/vdsm/storage/sd.py&quot;, line 817, in inquireClusterLock<br>425134     return self._manifest.inquireDomainLock()<br>425135   File &quot;/usr/share/vdsm/storage/sd.py&quot;, line 522, in inquireDomainLock<br>425136     return self._domainLock.inquire(self.getDomainLease())<br>425137   File &quot;/usr/lib/python2.7/dist-packages/vdsm/storage/clusterlock.py&quot;, line 372, in i       nquire<br>425138     resource = sanlock.read_resource(lease.path, lease.offset)<br>425139 SanlockException: (13, &#39;Sanlock resource read failure&#39;, &#39;Permission denied&#39;)</div><div><br></div><div>i test it, and in node,I add user &quot;linx&quot; to group &quot;kvm&quot;<br></div><div>$ cat /etc/group | grep &quot;kvm&quot;<br>kvm:x:112:qemu,vdsm,<span style="color:rgb(255,0,0)">linx</span>,sanlock</div><div><br></div><div>then i create a file in $HOME:</div><div>$ ls -l<br>总用量 16<br>-rw-rw---- 1 vdsm kvm     6 9月  11 20:06 1.txt<br>drwxr-xr-x 9 linx linx 4096 9月   1 15:58 linx-virtualization<br>drw-rw---- 3 linx linx 4096 9月  11 20:13 test2<br>drw-rw---- 2 linx linx 4096 9月  11 20:19 test3</div><div><br></div><div>then we can view the file in user &quot;linx&quot;:</div><div>$ cat 1.txt <br>pencc</div><div><br></div><div>leases if vdsm:kvm too:</div><div>$ ls -l /rhev/data-center/mnt/<a href="http://192.168.11.55" target="_blank">192.168.11.55</a>\:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases <br>-rw-rw---- 1 vdsm kvm 2097152 9月  11 19:21 /rhev/data-center/mnt/192.168.11.55:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases</div><div><br></div><div>but we cannot read the file in user &quot;linx&quot;:</div><div>$ cat /rhev/data-center/mnt/<a href="http://192.168.11.55" target="_blank">192.168.11.55</a>\:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases<br>cat: &#39;/rhev/data-center/mnt/192.168.11.55:_home_dataStorage/1845be22-1ac4-4e42-bbcb-7ba9ccd6e569/dom_md/leases&#39;: 权限不够<br></div><div><br></div><div>why is this? follows the nfs server configure</div><div># cat /etc/exports <br><br>/home/dataStorage 192.168.11.*(rw,sync)<br>/home/dataStorage2 192.168.11.*(rw,sync,no_root_squash,no_subtree_check)<br>/home/isoStorage 192.168.11.*(rw,sync,no_root_squash,no_subtree_check)<br></div><div><br></div><div>Is my nfs-server configurations miss some arguments? have any idea?<br></div></div></div></div></blockquote></div><div><br></div><div>Try to setup a supported system (e.g centos, fedora) and compare the setup.</div><div><br></div><div>Can explain why user linx need access to vdsm/sanlock/qemu data?</div><div><br></div><div>Nir</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div id="m_5112730121177920253isForwardContent"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><br><span title="neteasefooter"><p> </p></span></div></div><br><br><span title="neteasefooter"><p> </p></span>_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@ovirt.org" target="_blank">Devel@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/devel</a></blockquote></div>