| 9번째 줄: | 9번째 줄: | ||
positional arguments: | positional arguments: | ||
| − | add Add configure system failover | + | add Add configure system failover |
| − | |||
delete Delete system failover configuration | delete Delete system failover configuration | ||
disable Disable system failover | disable Disable system failover | ||
| 22번째 줄: | 21번째 줄: | ||
=== Basic Commands === | === Basic Commands === | ||
* <code>configure# failover add</code> 시스템 이중화 설정을 추가합니다. | * <code>configure# failover add</code> 시스템 이중화 설정을 추가합니다. | ||
| − | |||
* <code>configure# failover delete</code> 시스템 이중화 설정을 삭제합니다. | * <code>configure# failover delete</code> 시스템 이중화 설정을 삭제합니다. | ||
* <code>configure# failover disablel</code> 시스템 이중화를 비활성합니다. | * <code>configure# failover disablel</code> 시스템 이중화를 비활성합니다. | ||
| 84번째 줄: | 82번째 줄: | ||
configure# failover delete | configure# failover delete | ||
</pre> | </pre> | ||
| − | |||
2021년 2월 24일 (수) 11:40 판
시스템 이중화 설정은 configure 명령어에서 설정할 수 있습니다.
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
Basic Commands
configure# failover add시스템 이중화 설정을 추가합니다.configure# failover delete시스템 이중화 설정을 삭제합니다.configure# failover disablel시스템 이중화를 비활성합니다.configure# failover enable시스템 이중화 활성합니다.configure# failover show시스템 이중화 설정파일을 확인합니다.
이중화 설정 추가
시스템 이중화를 설정하려면 가장 먼저 failover add 명령어로 이중화 설정을 추가합니다. 사용법을 확인하여 입력형태에 맞게 각각 항목을 입력합니다. vip는 이중화를 구성하여 사용할 IP주소입니다. IP주소는 "192.168.0.1/24"와 같이 IP주소, 서브넷을 입력합니다. interface는 현재 사용하고 있는 네트워크 인터페이스 입니다. secret은 이중화를 구성할 서버와 공유키로 사용할 값 입니다. 이중화를 구성할 서버간에 공유키는 반드시 동일해야 합니다.host는 이중화를 구성할 타 서버의 IP주소입니다.. initmode는 서버의 동작유형을 의미합니다. deadtime은 passive로 동작하고 있는 서버에서 active서버와 연결이 불가능할 때 active로 전환하기 전까지 active서버에 장애를 판단하는 시간을 의미합니다.
LYSH@MyHostName# configure configure# failover add -h usage: failover add [-h] vip interface secret host initmode deadtime positional arguments: vip virtual IPv4 address(a.b.c.d) interface Ethernet interface name secret Shared secret key host Peer host IPv4 address(a.b.c.d) initmode Initical Mode(active, passive) deadtime Deadtime in minutes(minimun 2) optional arguments: -h, --help show this help message and exit
configure# failover add 192.168.0.1/24 eth0 key 192.168.0.2 active 120
시스템 이중화 설정 확인
시스템 이중화 설정파일은failover show로 확인합니다. 현재 시스템 이중화 설정값 및 상태를 확인할 수 있습니다.
LYSH@MyHostName# configure configure# failover show vip=192.168.0.1/24 iface=eth0 secret=key host=192.168.0.2 initmode=active curmode= curmode_dt=- peermode= peermode_dt=- deadtime=120 state=disabled last_error_msg=No error
시스템 이중화 설정 삭제
시스템 이중화 설정은 failover delete 명령어로 삭제할 수 있습니다.
LYSH@MyHostName# configure configure# failover delete
시스템 이중화 활성
시스템 이중화 설정을 failover add 명령어로 추가한 후 시스템 이중화 구성을 활성화 하려면 failover enable 명령어를 실행합니다. 해당 명령어를 실행하기 전까지는 시스템 이중화 동작을 하지 않습니다.
LYSH@MyHostName# configure configure# failover delete
시스템 이중화 비활성
시스템 이중화 구성을 비활성화 하려면 failover disable 명령어를 실행합니다. 해당 명령어를 실행하면 추가된 시스템 이중화 설정파일이 있어도 시스템 이중화 동작을 하지 않습니다.
LYSH@MyHostName# configure configure# failover delete