sanlock: Introduce 'user' and 'group' conf variables

through which user set under what permissions does sanlock
daemon run so libvirt will set the same permissions for
files exposed to it.
This commit is contained in:
Michal Privoznik
2012-10-23 16:34:21 +02:00
parent 81af5336ac
commit 9af1b30da3
6 changed files with 118 additions and 2 deletions

View File

@@ -120,6 +120,28 @@
# mount /var/lib/libvirt/sanlock
</pre>
<p>
If your sanlock daemon happen to run under non-root
privileges, you need to tell this to libvirt so it
chowns created files correctly. This can be done by
setting <code>user</code> and/or <code>group</code>
variables in the configuration file. Accepted values
range is specified in description to the same
variables in <code>/etc/libvirt/qemu.conf</code>. For
example:
</p>
<pre>
augtool -s set /files/etc/libvirt/qemu-sanlock.conf/user sanlock
augtool -s set /files/etc/libvirt/qemu-sanlock.conf/group sanlock
</pre>
<p>
But remember, that if this is NFS share, you need a
no_root_squash-ed one for chown (and chmod possibly)
to succeed.
</p>
<p>
In terms of storage requirements, if the filesystem
uses 512 byte sectors, you need to allow for <code>1MB</code>