Here a little change to the target.mount. Louis told me, that it would
be a good idea to a the line:
Wants=network-online.target
to the script, to be sure that the network is up befor ctdb starts. This
is the new script:
-----------------
[Unit]
Description = CTDB Data dir
After=network.target glusterfs-server.service
Wants=network-online.target
[Mount]
What=c1:/gv1
Where=/glusterfs
Type=glusterfs
Options=defaults,acl
[Install]
WantedBy=multi-user.target
---------------
btw. c1 in the "What"-Field is the servername ;-)
Thank you Louis for testing my howto and taking a look at my script.
Stefan
Am 26.12.2016 um 14:34 schrieb Stefan Kania via samba:> I did a little change in my howto for Gluster and CTDB. Because of a
> bug in all debian based distributions a glusterfs filesystem will not
> mount during systemstart.
> What I did? I removed the mountpoint from /etc/fstab and created a
> systemd target.mount file /etc/systemd/system/glusterfs.mount.
> Important is, that the name of the file MUST be the same as the
> mountpoint it self!
> Here the content of the file:
> --------------------------
> [Unit]
> Description = CTDB Data dir
> After=network.target glusterfs-server.service
>
> [Mount]
> What=c1:/gv1
> Where=/glusterfs
> Type=glusterfs
> Options=defaults,acl
>
> [Install]
> WantedBy=multi-user.target
> --------------------------
> To activate the target do a
> --------
> systemctl enable glusterfs.mount
> --------
> Now after restarting the system the glusterfs-filesystem is mounted.
> The new howto is here:
> https://www.kania-online.de/wp-content/uploads/2016/12/ubuntu-cluster.tx
> t
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL:
<http://lists.samba.org/pipermail/samba/attachments/20161227/5c7bb8df/signature.sig>