Red Hat Training
A Red Hat training course is available for Red Hat Gluster Storage
18.2. Provisioning Storage for Three-way Replication Volumes
Red Hat Storage supports synchronous three-way replication across three availability zones. Three-way replication is supported only with JBOD configuration. You must use one EBS volume as one storage brick. For information on best practices while configuring a JBOD, see Section 9.1.2, “JBOD”.
- Login to Amazon Web Services at http://aws.amazon.com and select the Amazon EC2 tab.
- Create six AWS instances in three different availability zones. All the bricks of a replica pair must be from different availability zones. For each replica set, select the instances for the bricks from three different availability zones. A replica pair must not have a brick along with its replica from the same availability zone.
- Add single EBS volume to each AWS instances
- Create a Logical Volume (LV) on each EBS volume using the following commands:
# vgcreate glustervg /dev/xvdf1
# vgchange -a y glustervg
# lvcreate -a y -l 100%VG -n glusterlv glustervgIn these commands, /dev/xvdf1 is a EBS volume, glustervg is the name of the volume group and glusterlv is the name of the logical volume. Red Hat Storage uses the logical volume created over EBS as a brick. For more information about logical volumes, see the Red Hat Enterprise Linux Logical Volume Manager Administration Guide.
- Format the logical volume using the following command:
mkfs.xfs -i size=512 DEVICEFor example, to format
mkfs.xfs -i size=512 /dev/glustervg/glusterlv
- Mount the device using the following commands:
mkdir -p /export/glusterlv
# mount /dev/glustervg/glusterlv /export/glusterlv
- Using the following command, add the device to
/etc/fstabso that it mounts automatically when the system reboots:
echo "/dev/glustervg/glusterlv /export/glusterlv xfs defaults 0 2" >> /etc/fstab
You must ensure to create each replica set of a volume in three difference zones. With this configuration, there will be no impact on the data availability even if two availability zones have hit an outage. However, when you set
client-side quorumto avoid split-brain scenarios, unavailability of two zones would make the access
For information on creating three-way replicated volumes, see Section 6.5, “Creating Distributed Replicated Volumes”. For more information on configuring client-side quorum, see Section 22.214.171.124, “Configuring Client-Side Quorum”.