# Preperation for GlusterFS

## Preparation

Before we can set up GlusterFS we need to set up the NTP protocol for the servers. Due to the file operations on distributed servers, any operation (read/write) has a time stamp. If the servers are not synchronous to each other, files can/will be distributed/replicated wrong.

### Setup NTP

{% hint style="info" %}
Make sure both servers have the same time zone and NTP is installed on both servers.
{% endhint %}

### Switching to ntpd

Linux has already a time controller. However, we are making sure that the servers are using NTP.

Disable `TimeDateCtl` NTP

```
timedatectl set-ntp no
```

Install NTP

```
apt-get install ntp
```

Verify if everything is working.

```
ntpq -p
```

## List of sources

1. **digitalocean**.com - [*Brian Boucheron*](https://www.digitalocean.com/community/users/bboucheron) - <https://www.digitalocean.com/community/tutorials/how-to-set-up-time-synchronization-on-ubuntu-16-04>
