From 95e735b71b077d1ad7fd8c5a7152176968cc6588 Mon Sep 17 00:00:00 2001 From: Ashish Pandey Date: Tue, 22 May 2018 15:48:16 +0530 Subject: thin-arbiter : Provide scripts and service file to start thin-arbiter process 1 - setup-thin-arbiter.sh To setup directory path for thin-arbiter. This is the path where replica id file will be placed and used by TA process. By default it will be /mnt/thin-arbiter. It is better to use default path and once set it should not be changed. 2 - gluster-ta-volume.service This is the Unit file used by systemd to start and keep the thin-arbiter process running. 3 - thin-arbiter.vol This is the default volume file for thin-arbiter. It will be used to start thin-arbiter process. This should not be modified by user except the directory path which can be modified using [1]. Change-Id: I68f2164f24adfa326c1d1a7a98c6ac4ff04ed553 fixes: bz#1579786 Signed-off-by: Ashish Pandey --- extras/thin-arbiter/gluster-ta-volume.service | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 extras/thin-arbiter/gluster-ta-volume.service (limited to 'extras/thin-arbiter/gluster-ta-volume.service') diff --git a/extras/thin-arbiter/gluster-ta-volume.service b/extras/thin-arbiter/gluster-ta-volume.service new file mode 100644 index 00000000000..19be1757555 --- /dev/null +++ b/extras/thin-arbiter/gluster-ta-volume.service @@ -0,0 +1,13 @@ +[Unit] +Description = Thin-arbiter process to maintain quorum for replica volume +After = network.target + +[Service] +Environment = "LOG_LEVEL=WARNING" +ExecStart = /usr/local/sbin/glusterfsd -N --volfile-id ta-vol -f /var/lib/glusterd/thin-arbiter/thin-arbiter.vol --brick-port 24007 --xlator-option ta-vol-server.transport.socket.listen-port=24007 +Restart = always +KillMode=process +SuccessExitStatus=15 + +[Install] +WantedBy = multi-user.target -- cgit