[prev in list] [next in list] [prev in thread] [next in thread]
List: samba
Subject: Re: [Samba] change in CTDB-howto
From: Stefan Kania via samba <samba () lists ! samba ! org>
Date: 2016-12-27 16:01:21
Message-ID: ffc4666b-6918-4fcd-edd2-735498852819 () kania-online ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
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
>
["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic