Questo contenuto non è disponibile nella lingua selezionata.
10.5. Setting up Geo-replication using gdeploy
10.5.1. Setting up geo-replication as root user using gdeploy
- Creating a common pem pub file
- Creating a geo-replication session
- Configuring the meta-volume
- Starting the geo-replication session
/usr/share/doc/gdeploy/examples/geo-replication.conf
Procedure 10.1. Setting up geo-replication as root user using gdeploy
Important
- Create a copy of the sample gdeploy configuration file present in the following location:
/usr/share/doc/gdeploy/examples/geo-replication.conf
- Add the required details in the geo-replication section of the configuration file using the following template:
[geo-replication] action=create mastervol=Master_IP:Master_Volname slavevol=Slave_IP:Slave_Volname slavenodes=Slave_IP_1,Slave_IP_2
[Add all slave IP addresses. Each address followed by a comma (,)]
force=yes[yes or no]
start=yes[yes or no]
- After modifying the configuration file, invoke the configuration using the command:
# gdeploy -c txt.conf
[geo-replication] action=create mastervol=10.1.1.29:mastervolume slavevol=10.1.1.25:slavesvolume slavenodes=10.1.1.28,10.1.1.86 force=yes start=yes
10.5.2. Setting up a secure geo-replication session using gdeploy
- Creating a new group with a unprivileged account for all slave nodes
- Setting up the mountbroker
- Creating a common pem pub file
- Creating a geo-replication session
- Configuring the meta-volume
- Starting the geo-replication session
/usr/share/doc/gdeploy/examples/georep-secure.conf
Procedure 10.2. Setting up a secure geo-replication session using gdeploy
Important
- Create a copy of the sample gdeploy configuration file present in the following location:
/usr/share/doc/gdeploy/examples/georep-secure.conf
- Add the required details in the geo-replication section of the configuration file using the following template:
[geo-replication] action=create georepuser=User_Name
[If the user is not present, gdeploy creates the geo-replication user.]
mastervol=Master_IP:Master_Volname slavevol=Slave_IP:Slave_Volname slavenodes=Slave_IP_1,Slave_IP_2[Add all slave IP addresses. Each address followed by a comma (,)]
force=yes[yes or no]
start=yes[yes or no]
- After modifying the configuration file, invoke the configuration using the command:
# gdeploy -c txt.conf
[geo-replication] action=create georepuser=testgeorep mastervol=10.1.1.29:mastervolume slavevol=10.1.1.25:slavesvolume slavenodes=10.1.1.28,10.1.1.86 force=yes start=yes
10.5.3. Controlling geo-replication sessions using gdeploy
/usr/share/doc/gdeploy/examples
. The sample configuration file names for each action are as follows:
Geo-replication Session Control | Configuration File Name |
---|---|
Starting a session | georep-start.conf |
Stopping a session | georep-stop.conf |
Pausing a session | georep-pause.conf |
Resuming a session | georep-resume.conf |
Deleting a session | georep-delete.conf |
Procedure 10.3. Controlling geo-replication sessions using gdeploy
Warning
Important
- Create a copy of the required gdeploy sample configuration file present in the following location:
/usr/share/doc/gdeploy/examples
- Add the required information in the geo-replication section of the configuration file using the following template:
[geo-replication] action=Action_Name georepuser=User_Name
If georepuser variable is omitted, the user is assumed to be root user.
mastervol=Master_IP:Master_Volname slavevol=Slave_IP:Slave_Volname slavenodes=Slave_IP_1,Slave_IP_2[Add all slave IP addresses. Each address followed by a comma (,)]
force=yes[yes or no]
start=yes[yes or no]
Important
Ifgeorepuser
variable is omitted, the user is assumed to be root user. - After modifying the configuration file, invoke the configuration using the command:
# gdeploy -c txt.conf
[geo-replication] action=start mastervol=10.1.1.29:mastervolume slavevol=10.1.1.25:slavevolume
[geo-replication] action=stop mastervol=10.1.1.29:mastervolume slavevol=10.1.1.25:slavevolume force=yes
[geo-replication] action=pause mastervol=10.1.1.29:mastervolume slavevol=10.1.1.25:slavevolume force=yes
[geo-replication] action=resume mastervol=10.1.1.29:mastervolume slavevol=10.1.1.25:slavevolume force=yes
[geo-replication] action=delete mastervol=10.1.1.29:mastervolume slavevol=10.1.1.25:slavevolume force=yes