m (Shin moved page CLI - 시스템 이중화 설정 to CLI - Configuring System Failover) |
|||
(17 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | __FORCETOC__ | |
+ | You can configure the system failover in the configuration mode. Note that you need two imRAD devices to configure the system failover. | ||
+ | === Verifying System Failover Configuration === | ||
+ | To read the System Failover Configuration from a file, enter the <code>failover show</code> in the configuration mode. | ||
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
− | + | LYSH@MyHostName(config)# 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=[2021-04-28 14:07:44] initialized | ||
+ | </pre> | ||
− | + | If you enable the System Failover after configuring, the [[ImRAD services(daemons) | failover]] service applies its failover mode in few seconds and you can verify the applied result by the <code>show failover</code> command in the user mode. | |
+ | <pre> | ||
+ | LYSH@MyHostName# show failover | ||
+ | System failover state.... | ||
+ | Failover service(failover.service):active | ||
+ | Last updated :2021-04-28 14:08:37 | ||
+ | Virtual address :192.168.0.1/24 on eth0 | ||
+ | Shared secret :<<mykey>> | ||
+ | Init mode :active | ||
+ | Current mode :active | ||
+ | Current mode updated :2021-04-28 14:07:44 | ||
+ | Last error message :No error | ||
− | + | Peer host :192.168.0.2 | |
− | + | Peer mode :no-response | |
− | + | Peer mode updated :2021-04-28 14:23:10 | |
− | |||
− | |||
− | |||
− | + | Init-Deadtime :30 seconds | |
− | + | Deadtime :120 seconds | |
+ | State :enabled | ||
</pre> | </pre> | ||
− | + | If you use "-w" option with the <code>show failover</code> command, it shows you the activity of the failover server in real-time. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | == | + | === Configuring System Failover === |
− | + | Note that if there the System Failover configuration already exists, it will overwrite. | |
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
− | + | LYSH@MyHostName(config)# failover add 192.168.0.1/24 eth0 mykey 192.168.0.2 active 120 all | |
− | + | LYSH@MyHostName(config)# 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> | ||
− | == | + | == Enabling System Failover == |
− | + | The System Failover does not work before enabling the System Failover. | |
<pre> | <pre> | ||
LYSH@MyHostName# configure | LYSH@MyHostName# configure | ||
− | + | LYSH@MyHostName(config)# failover enable | |
− | + | LYSH@MyHostName(config)# failover show | |
vip=192.168.0.1/24 | vip=192.168.0.1/24 | ||
iface=eth0 | iface=eth0 | ||
Line 64: | Line 81: | ||
peermode_dt=- | peermode_dt=- | ||
deadtime=120 | deadtime=120 | ||
− | state= | + | state=enabled |
last_error_msg=No error | last_error_msg=No error | ||
+ | LYSH@MyHostName(config)# exit | ||
</pre> | </pre> | ||
− | + | ||
− | |||
<pre> | <pre> | ||
− | LYSH@MyHostName# | + | LYSH@MyHostName# show failover |
− | + | System failover state.... | |
+ | Failover service(failover.service):active | ||
+ | Last updated :2021-04-28 14:10:57 | ||
+ | Virtual address :192.168.0.1/24 on eth0 | ||
+ | Shared secret :<<aaaa>> | ||
+ | Init mode :active | ||
+ | Current mode :zero | ||
+ | Current mode updated :2021-04-28 14:10:56 | ||
+ | Last error message :- | ||
+ | |||
+ | Peer host :192.168.0.2 | ||
+ | Peer mode :no-response | ||
+ | Peer mode updated :2021-04-28 14:10:56 | ||
+ | |||
+ | Init-Deadtime :30 seconds | ||
+ | Deadtime :120 seconds | ||
+ | State :enabled | ||
</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 | ||
− | + | LYSH@MyHostName(config)# failover disable | |
+ | LYSH@MyHostName(config)# 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 | ||
− | + | LYSH@MyHostName(config)# failover delete | |
</pre> | </pre> |
Latest revision as of 17:06, 19 September 2023
You can configure the system failover in the configuration mode. Note that you need two imRAD devices to configure the system failover.
Verifying System Failover Configuration
To read the System Failover Configuration from a file, enter the failover show
in the configuration mode.
LYSH@MyHostName# configure LYSH@MyHostName(config)# 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=[2021-04-28 14:07:44] initialized
If you enable the System Failover after configuring, the failover service applies its failover mode in few seconds and you can verify the applied result by the show failover
command in the user mode.
LYSH@MyHostName# show failover System failover state.... Failover service(failover.service):active Last updated :2021-04-28 14:08:37 Virtual address :192.168.0.1/24 on eth0 Shared secret :<<mykey>> Init mode :active Current mode :active Current mode updated :2021-04-28 14:07:44 Last error message :No error Peer host :192.168.0.2 Peer mode :no-response Peer mode updated :2021-04-28 14:23:10 Init-Deadtime :30 seconds Deadtime :120 seconds State :enabled
If you use "-w" option with the show failover
command, it shows you the activity of the failover server in real-time.
Configuring System Failover
Note that if there the System Failover configuration already exists, it will overwrite.
LYSH@MyHostName# configure LYSH@MyHostName(config)# failover add 192.168.0.1/24 eth0 mykey 192.168.0.2 active 120 all LYSH@MyHostName(config)# 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 LYSH@MyHostName(config)# failover enable LYSH@MyHostName(config)# 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 LYSH@MyHostName(config)# exit
LYSH@MyHostName# show failover System failover state.... Failover service(failover.service):active Last updated :2021-04-28 14:10:57 Virtual address :192.168.0.1/24 on eth0 Shared secret :<<aaaa>> Init mode :active Current mode :zero Current mode updated :2021-04-28 14:10:56 Last error message :- Peer host :192.168.0.2 Peer mode :no-response Peer mode updated :2021-04-28 14:10:56 Init-Deadtime :30 seconds Deadtime :120 seconds State :enabled
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 LYSH@MyHostName(config)# failover disable LYSH@MyHostName(config)# 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 LYSH@MyHostName(config)# failover delete