m (Shin moved page CLI - 시스템 이중화 설정 to CLI - Configuring System Failover) |
|||
Line 1: | Line 1: | ||
− | + | You can configure the system failover in the configuration mode. | |
<pre> | <pre> | ||
Line 19: | Line 19: | ||
</pre> | </pre> | ||
− | === | + | === Verifying System Failover Configuration === |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
− | configure# failover | + | configure# failover show |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</pre> | </pre> | ||
− | == | + | === Configuring System Failover === |
− | + | Note that if there the System Failover configuration already exists, it will overwrite. | |
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
+ | configure# failover add 192.168.0.1/24 eth0 mykey 192.168.0.2 active 120 | ||
configure# failover show | configure# failover show | ||
− | |||
vip=192.168.0.1/24 | vip=192.168.0.1/24 | ||
iface=eth0 | iface=eth0 | ||
Line 67: | Line 44: | ||
last_error_msg=No error | last_error_msg=No error | ||
</pre> | </pre> | ||
− | == | + | |
− | + | == Enabling System Failover == | |
+ | The System Failover does not work before enabling the System Failover. | ||
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
configure# failover enable | configure# failover enable | ||
+ | configure# failover show | ||
+ | vip=192.168.0.1/24 | ||
+ | iface=eth0 | ||
+ | secret=mykey | ||
+ | host=192.168.0.2 | ||
+ | initmode=active | ||
+ | curmode= | ||
+ | curmode_dt=- | ||
+ | peermode= | ||
+ | peermode_dt=- | ||
+ | deadtime=120 | ||
+ | state='''enabled''' | ||
+ | last_error_msg=No error | ||
</pre> | </pre> | ||
− | == | + | |
− | + | == Disabling System Failover == | |
+ | To stop the System Failover, use the <code>disable</code> command. | ||
+ | If you enable the System Failover after disabling it, the System Failover works again. | ||
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
configure# failover disable | configure# failover disable | ||
+ | configure# failover show | ||
+ | vip=192.168.0.1/24 | ||
+ | iface=eth0 | ||
+ | secret=mykey | ||
+ | host=192.168.0.2 | ||
+ | initmode=active | ||
+ | curmode= | ||
+ | curmode_dt=- | ||
+ | peermode= | ||
+ | peermode_dt=- | ||
+ | deadtime=120 | ||
+ | state='''disabled''' | ||
+ | last_error_msg=No error | ||
</pre> | </pre> | ||
− | == | + | |
− | + | == Deleting System Failover configuration == | |
+ | Note that if you deleted it, the System Failover does not work before configuring it. | ||
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
configure# failover delete | configure# failover delete | ||
</pre> | </pre> |
Revision as of 18:09, 16 April 2021
You can configure the system failover in the configuration mode.
LYSH@MyHostName# configure configure# failover -h usage: failover [-h] {add,dbpool,delete,disable,enable,show} ... config ha positional arguments: add Add configure system failover delete Delete system failover configuration disable Disable system failover enable Enable system failover show Show system failover configuration optional arguments: -h, --help show this help message and exit
Verifying System Failover Configuration
LYSH@MyHostName# configure configure# failover show
Configuring System Failover
Note that if there the System Failover configuration already exists, it will overwrite.
LYSH@MyHostName# configure configure# failover add 192.168.0.1/24 eth0 mykey 192.168.0.2 active 120 configure# failover show vip=192.168.0.1/24 iface=eth0 secret=mykey host=192.168.0.2 initmode=active curmode= curmode_dt=- peermode= peermode_dt=- deadtime=120 state=disabled last_error_msg=No error
Enabling System Failover
The System Failover does not work before enabling the System Failover.
LYSH@MyHostName# configure configure# failover enable configure# failover show vip=192.168.0.1/24 iface=eth0 secret=mykey host=192.168.0.2 initmode=active curmode= curmode_dt=- peermode= peermode_dt=- deadtime=120 state='''enabled''' last_error_msg=No error
Disabling System Failover
To stop the System Failover, use the disable
command.
If you enable the System Failover after disabling it, the System Failover works again.
LYSH@MyHostName# configure configure# failover disable configure# failover show vip=192.168.0.1/24 iface=eth0 secret=mykey host=192.168.0.2 initmode=active curmode= curmode_dt=- peermode= peermode_dt=- deadtime=120 state='''disabled''' last_error_msg=No error
Deleting System Failover configuration
Note that if you deleted it, the System Failover does not work before configuring it.
LYSH@MyHostName# configure configure# failover delete