GlusterFS 2 node Replicate w/ Inotify backups

From Ye Ole Stash
Jump to: navigation, search

Contents

Design and layout

The layout of this system is a pretty basic 2 node backend 2 node frontend replication. It can be scaled easily with more nodes on either end. Due to WAN limitations with Gluster lsycnd (inotify based) is used to rsync files to the remote backup servers.

Hardware

MRTG Setup

  • ethernet interfaces

Images

A image can sometimes say a thousand words.

GlusterPrimary.jpeg

Config Files

GlusterFS

Web01/02 (Client)

/etc/glusterfs/glusterfs.webstore.vol-web01/02

Filer01/02 (Server)

/etc/glusterfs/glusterfsd.vol-filer01/02

Lsycnd

/usr/local/lsyncd/bin/lsyncd --delay 2 --stubborn --logfile /var/log/lsyncd /exports/webstorage/ backup01.$DOMAIN::$RSYNCD_STORE

To Do

Cluster MySQL
Automate moving websites between severs

Related Scripts

Personal tools