[Bugs] [Bug 1654187] [geo-rep]: RFE - Make slave volume read-only while setting up geo-rep (by default)

bugzilla at redhat.com bugzilla at redhat.com
Wed Nov 28 09:00:18 UTC 2018


https://bugzilla.redhat.com/show_bug.cgi?id=1654187

Kotresh HR <khiremat at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |khiremat at redhat.com



--- Comment #2 from Kotresh HR <khiremat at redhat.com> ---
Description of problem:
=======================
As of now, if we want to make a volume as read-only, we need to specify the
volume option and enable it using:

gluster volume set <volume_name> features.read-only on

In geo-rep, the main idea is to write to the master and that is synced to the
slave. Since writes should not happen from the slave, it is good to make the
slave as read-only by default to avoid mishaps.

In the event of a failover/failback scenario where the slave is made the master
and writes need to happen from the slave, this read-only option should simply
be disabled (along with enabling the other options which enable the slave
volume to sync to the original master)


This can be easily done during create command.

Just have to add the below command in hookscript

gluster vol set <slave_vol> features.read-only on 

For root geo-rep:

$SRC//extras/hook-scripts/S56glusterd-geo-rep-create-post.sh for root geo-rep


For non-root geo-rep:

$SRC/geo-replication/src/set_geo_rep_pem_keys.sh

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=rji0EeYWk5&a=cc_unsubscribe


More information about the Bugs mailing list