Top
Symfoware Server V12.1.0 Cluster Operation Guide
FUJITSU Software

C.3 How to Execute the mc_ctl Command

When executing the mc_ctl command, specify the server identifier in the --local-server option in order to identify the operation destination server.

Below is an example of starting Mirroring Controller of the server "server1" defined in the network.conf file. For mc_ctl command operations using another mode, also specify the --local-server option.

Define two server identifiers for the same IP address with different port numbers in the network.conf file.

Example)
server1 192.0.2.100 26540
server2 192.0.2.100 26541

Ensure that the port numbers of both primary server and standby server do not conflict with any other software.

When the Mirroring Controller option is used

Start Mirroring Controller of the server "server1":

Example)
$ mc_ctl start -M /mcdir/inst1 -f --local-server server1

Stop Mirroring Controller of the server "server1":

Example)
$ mc_ctl stop -M /mcdir/inst1 --local-server server1
When the Mirroring Controller option is not used

Start Mirroring Controller of the server "server1":

Example)
$ mc_ctl start -M /mcdir/inst1 --local-server server1

Stop Mirroring Controller of the server "server1":

Example)
$ mc_ctl stop -M /mcdir/inst1 --local-server server1

Note

If using an rc script

Append the --local-server option to the mc_ctl command call defined in the auto-startup shell script.

If using systemd

Add the --local-server option to the mc_ctl option specification for ExecStart and ExecStop of the unit file for systemd.

Refer to "6.10 Setting Automatic Start and Stop of Mirroring Controller and Multiplexed Instances" for details.