<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi All,<br>
<br>
We have 3 hook scripts in glusterfs/extras/hook-scripts named as
below.<br>
<ul>
<li>S30samba-set.sh</li>
<li>S30samba-start.sh</li>
<li>S30samba-stop.sh</li>
</ul>
The purpose of the hook scripts to do the required changes in
smb.conf automatically for each gluster volume start/stop/set
operations. Script assumes each Gluster nodes will be used as Samba
Servers for the Gluster volumes. So with hook scripts we dont have
to do manual changes to smb.conf. <br>
<br>
As of now the scripts will not work with Samba 4.X series and
GlusterFS vfs plugin for Samba 4.x. It needs a small change and the
fix is present in Gerrit as below.<br>
<br>
<a class="moz-txt-link-freetext" href="http://review.gluster.org/6991">http://review.gluster.org/6991</a><br>
<br>
Now the question , should we package these scripts in way that it
would be helpful when somebody uses GlusterFS vfs plugin for Samba
with GlusterFS? Suggestions?<br>
<br>
I and Kaleb had a discussion on #gluster and came up with below
idea.<br>
<ul>
<li>Samba hook scripts can be packaged as a serrate package e.g. :
glusterfs-samba-hooks RPM<br>
</li>
<ul>
<li>The package will be built while building glusterfs <br>
</li>
<li>Installing GlusterFS wouldn't install it automatically.<br>
</li>
<li>The samba-vfs-glusterfs would require it i.e. it would get
installed automatically while installing samba-vfs-glusterfs
as a dependency.<br>
</li>
</ul>
</ul>
<p>The location of the hook scripts should be as below (I think this
holds true for all the Linux/GNU distributions). If you copy the
scripts manually to desired path it would work too. <br>
</p>
<p>/var/lib/glusterd/hooks/1/start/post/S30samba-start.sh<br>
/var/lib/glusterd/hooks/1/stop/pre/S30samba-stop.sh<br>
/var/lib/glusterd/hooks/1/set/S30samba-set.sh<br>
</p>
<p>There is another hook script for Samba CTDB i.e. S29CTDBsetup.sh.
We can take that in to account too. <br>
</p>
<p>Thanks,<br>
Lala<br>
</p>
<br>
</body>
</html>