1.2. Prerequisites
XFS - Format the back-end file system using XFS for glusterFS bricks. XFS can journal metadata, resulting in faster crash recovery. The XFS file system can also be defragmented and expanded while mounted and active.
Note
ext3
or ext4
to upgrade to a supported version of Red Hat Gluster Storage using the XFS back-end file system.
Format glusterFS bricks using XFS on the Logical Volume Manager to prepare for the installation.
- Synchronize time across all Red Hat Gluster Storage servers using the Network Time Protocol (NTP) daemon.
1.2.1. Network Time Protocol Setup
ntpd
daemon to automatically synchronize the time during the boot process as follows:
- Edit the NTP configuration file
/etc/ntp.conf
using a text editor such as vim or nano.Copy to Clipboard Copied! Toggle word wrap Toggle overflow nano /etc/ntp.conf
# nano /etc/ntp.conf
- Add or edit the list of public NTP servers in the
ntp.conf
file as follows:Copy to Clipboard Copied! Toggle word wrap Toggle overflow The Red Hat Enterprise Linux 6 version of this file already contains the required information. Edit the contents of this file if customization is required.server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org
server 0.rhel.pool.ntp.org server 1.rhel.pool.ntp.org server 2.rhel.pool.ntp.org
- Optionally, increase the initial synchronization speed by appending the
iburst
directive to each line:Copy to Clipboard Copied! Toggle word wrap Toggle overflow server 0.rhel.pool.ntp.org iburst server 1.rhel.pool.ntp.org iburst server 2.rhel.pool.ntp.org iburst
server 0.rhel.pool.ntp.org iburst server 1.rhel.pool.ntp.org iburst server 2.rhel.pool.ntp.org iburst
- After the list of servers is complete, set the required permissions in the same file. Ensure that only
localhost
has unrestricted access:Copy to Clipboard Copied! Toggle word wrap Toggle overflow restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1
restrict default kod nomodify notrap nopeer noquery restrict -6 default kod nomodify notrap nopeer noquery restrict 127.0.0.1 restrict -6 ::1
- Save all changes, exit the editor, and restart the NTP daemon:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow service ntpd restart
# service ntpd restart
- Ensure that the
ntpd
daemon starts at boot time:Copy to Clipboard Copied! Toggle word wrap Toggle overflow chkconfig ntpd on
# chkconfig ntpd on
ntpdate
command for a one-time synchronization of NTP. For more information about this feature, see the Red Hat Enterprise Linux Deployment Guide.