<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=$' \t' read -r -a arr <<< "$glm"<br><br> #Validate storage type is glusterfs<br> if [ "${arr[2]}" == "glusterfs" ]<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 "${arr[1]}"<br> then<br> echo "${arr[1]} is already mounted"<br> continue<br> fi<br><br> mount -t glusterfs "${arr[0]}" "${arr[1]}"<br> #wait for few seconds<br> sleep 10<br><br> #recheck mount got succeed<br> if mountpoint -q "${arr[1]}"<br> then<br> echo "${arr[1]} has been mounted"<br> continue<br> else<br> echo "${arr[1]} failed to mount"<br> exitStatus=1<br> fi<br> fi<br>done <<< "$(sed '/^#/ d' </etc/fstab | grep 'glusterfs')"<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>