<div dir="ltr"><div><span style="font-family:monospace">Hello All,</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">can somebody responsible confirm me, that mount-shared-storage.sh</span></div><div><span style="font-family:monospace">is really missing from glusterfs 7.8-2 packages?</span></div><div><span style="font-family:monospace">Will new version be created?<br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">I have recreated this file manually on my two glusterfs servers</span></div><div><span style="font-family:monospace">(i took the mount-shared-storage.sh file from a server that was OS updated from debian stretch to debian buster (10.5)) - with 7.8-1 at that time:</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">root@server1:~# cd /usr/lib/x86_64-linux-gnu/glusterfs<br>root@server1:/usr/lib/x86_64-linux-gnu/glusterfs# ls -ltr|grep storage.sh<br>-rwxr-xr-x 1 root root  1259 Oct 23 09:28 mount-shared-storage.sh<br>root@server1:/usr/lib/x86_64-linux-gnu/glusterfs# cat mount-shared-storage.sh<br>#!/bin/bash<br>#Post reboot there is a chance in which mounting of shared storage will fail<br>#This will impact starting of features like NFS-Ganesha. So this script will<br>#try to mount the shared storage if it fails<br><br>exitStatus=0<br><br>while IFS= read -r glm<br>do<br>        IFS=$&#39; \t&#39; read -r -a arr &lt;&lt;&lt; &quot;$glm&quot;<br><br>        #Validate storage type is glusterfs<br>        if [ &quot;${arr[2]}&quot; == &quot;glusterfs&quot; ]<br>        then<br><br>                #check whether shared storage is mounted<br>                #if it is mounted then mountpoint -q will return a 0 success code<br>                if mountpoint -q &quot;${arr[1]}&quot;<br>                then<br>                        echo &quot;${arr[1]} is already mounted&quot;<br>                        continue<br>                fi<br><br>                mount -t glusterfs &quot;${arr[0]}&quot; &quot;${arr[1]}&quot;<br>                #wait for few seconds<br>                sleep 10<br><br>                #recheck mount got succeed<br>                if mountpoint -q &quot;${arr[1]}&quot;<br>                then<br>                        echo &quot;${arr[1]} has been mounted&quot;<br>                        continue<br>                else<br>                        echo &quot;${arr[1]} failed to mount&quot;<br>                        exitStatus=1<br>                fi<br>        fi<br>done &lt;&lt;&lt; &quot;$(sed &#39;/^#/ d&#39; &lt;/etc/fstab | grep &#39;glusterfs&#39;)&quot;<br>exit $exitStatus<br>root@server1:/usr/lib/x86_64-linux-gnu/glusterfs#</span></div><div><span style="font-family:monospace"><br></span></div>
<div><span style="font-family:monospace">root@server1:/usr/lib/x86_64-linux-gnu/glusterfs# uname -a<br>Linux server1 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux<br>root@server1:/usr/lib/x86_64-linux-gnu/glusterfs# cat /etc/debian_version<br>10.5<br>root@server1:/usr/lib/x86_64-linux-gnu/glusterfs#</span><br></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Then I enabled and started glusterfssharedstorage.service.</span></div><div><span style="font-family:monospace">It works.</span></div><div><span style="font-family:monospace">NOTE: same done on server2 as well.</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Kind regards,</span></div><div><span style="font-family:monospace">peterk<br></span></div><div><br></div><div><br></div></div>