</p>
<pre>
- $ su - root
- # yum install libvirt-lock-sanlock
+$ su - root
+# yum install libvirt-lock-sanlock
</pre>
<p>
</p>
<pre>
- $ su - root
- # chkconfig wdmd on
- # service wdmd start
+$ su - root
+# chkconfig wdmd on
+# service wdmd start
</pre>
<p>
</p>
<pre>
- # chkconfig sanlock on
- # service sanlock start
+# chkconfig sanlock on
+# service sanlock start
</pre>
<p>
</p>
<pre>
- SANLOCKOPTS="-w 0"
+SANLOCKOPTS="-w 0"
</pre>
<p>
</p>
<pre>
- $ su - root
- # augtool -s set /files/etc/libvirt/qemu-sanlock.conf/host_id 1
+$ su - root
+# augtool -s set /files/etc/libvirt/qemu-sanlock.conf/host_id 1
</pre>
<p>
</p>
<pre>
- $ su - root
- # echo "some.nfs.server:/export/sanlock /var/lib/libvirt/sanlock nfs hard,nointr 0 0" >> /etc/fstab
- # mount /var/lib/libvirt/sanlock
+$ su - root
+# echo "some.nfs.server:/export/sanlock /var/lib/libvirt/sanlock nfs hard,nointr 0 0" >> /etc/fstab
+# mount /var/lib/libvirt/sanlock
</pre>
<p>
</p>
<pre>
- augtool -s set /files/etc/libvirt/qemu-sanlock.conf/user sanlock
- augtool -s set /files/etc/libvirt/qemu-sanlock.conf/group sanlock
+augtool -s set /files/etc/libvirt/qemu-sanlock.conf/user sanlock
+augtool -s set /files/etc/libvirt/qemu-sanlock.conf/group sanlock
</pre>
<p>
</p>
<pre>
- $ su - root
- # augtool -s set /files/etc/libvirt/qemu.conf/lock_manager sanlock
- # service libvirtd restart
+$ su - root
+# augtool -s set /files/etc/libvirt/qemu.conf/lock_manager sanlock
+# service libvirtd restart
</pre>
<p>
</p>
<pre>
- # ls /var/lib/libvirt/sanlock/
- __LIBVIRT__DISKS__
+# ls /var/lib/libvirt/sanlock/
+__LIBVIRT__DISKS__
</pre>
<p>