<div dir="ltr">Hi all,<div><br></div><div>I&#39;m trying to configure a lustre 2.12.2 system with SSK and I believe I have a problem with kernel keys which I&#39;d be grateful for any suggestions on.<div><br></div><div>Essentially I have followed the instructions/examples in the docs for SSK except that:</div><div>- A host &quot;lustre-storage&quot; hosts the MGS, MDT and OST with the fileystem &quot;test_fs1&quot;.</div><div>- A host &quot;lustre-client1&quot; is in a nodeset &quot;lustre_client1&quot;.</div><div>- 

cli2ost and cli2mdt rules set as skn</div><div>(happy to provide more details if required but I think that&#39;s the major differences from the examples)</div><div><br></div><div>Trying to mount the filesystem from the client fails:<br></div><div><div><br></div><div>[centos@lustre-client1 ~]$ sudo mount -t lustre 192.168.41.10@tcp1:/test_fs1 -o skpath=/etc/lustre /mnt/lustre/test_fs1/<br>mount.lustre: mount 192.168.41.10@tcp1:/test_fs1 at /mnt/lustre/test_fs1 failed: Connection refused</div><div><br></div><div>Looking in /var/log/messages I can see:</div><div><br></div><div>lustre-client1 lgss_keyring: [18756]:ERROR:sk_create_cred(): keyctl_read() failed for key 1073636326: Permission denied</div><div><br></div><div>And in fact there is a problem reading this key:</div><div>[centos@lustre-client1 ~]$ sudo keyctl list @u<br>1 key in keyring:<br>1073636326: --alswrv     0     0 user: lustre:test_fs1</div><div>[centos@lustre-client1 ~]$ sudo keyctl read 1073636326<br>keyctl_read_alloc: Permission denied<br></div><div><br></div><div>If I try to create a key myself I can see it has the same permissions as 

1073636326, and again reading it fails. Some googling led me to <a href="https://mjg59.dreamwidth.org/37333.html" target="_blank">this</a> which suggests there&#39;s a fundamental problem using sudo with kernel keys *. I can&#39;t be the only person to try to deploy lustre using sudo though surely? So there must be something I&#39;m missing here to make this work.</div><div><br></div><div>To work around this I tried including &quot;user&quot; in the /etc/fstab options then mounting as a normal user but that fails:</div><div>[centos@lustre-client1 ~]$ mount /mnt/lustre/test_fs1/<br>mount.lustre: mount 192.168.41.10@tcp1:/test_fs1 at /mnt/lustre/test_fs1 failed: Operation not permitted<br></div><div><br></div><div>and in fact it appears lustre doesn&#39;t support the user option?</div><div>Feb 25 11:12:27 lustre-client1 kernel: LustreError: 152-6: Unknown option &#39;user&#39;, won&#39;t mount.<br></div><div><br></div><div><br></div><div>As I said any help appreciated!</div><div><br></div><div>Steve</div><div><br></div><div>* Although that link says key possession is tied to the original user, which would suggest that the key should show up in centos&#39;s keyring, which it doesn&#39;t.</div><div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><a href="http://stackhpc.com/" target="_blank">http://stackhpc.com/</a></div><div>Please note I work Tuesday to Friday.</div></div></div></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"></div>
</blockquote></div></div>