LifeKeeper 상태 확인

LiferKeeper 상태 확인
lcdstatus

1 명령어[ | ]

/opt/LifeKeeper/bin/lcdstatus -q
STATE 값의 의미
ISP In-Service Protected (서비스 중)
OSF Out-of-Service Failed (서비스 중지 실패)
OSU Out-of-Service Unimpair (서비스 중지됨)

2 실행예시[ | ]

[root@db01 ~]# /opt/LifeKeeper/bin/lcdstatus -q
LOCAL      TAG                 ID                    STATE     PRIO  PRIMARY
db01  pgsql-5432          db01.pgsql-5432            ISP          1  db01
db01   /data              /data                      ISP          1  db01
db01    datarep-data      /dev/xvdb4                 ISP          1  db01
db01   /pgsql_log         /pgsql_log                 ISP          1  db01
db01    datarep-pgsql_log   /dev/xvdb2               ISP          1  db01
db01   /archive           /archive                   ISP          1  db01
db01    datarep-archive   /dev/xvdb3                 ISP          1  db01
db01   ip-111.222.33.44   IP-111.222.33.44           ISP          1  db01

MACHINE  NETWORK ADDRESSES/DEVICE           STATE     PRIO
db02     TCP     192.168.0.11/192.168.0.12  ALIVE        1
db02     TCP     192.168.1.41/192.168.1.42  ALIVE        2
[root@db02 ~]# /opt/LifeKeeper/bin/lcdstatus -q
LOCAL      TAG                 ID                    STATE     PRIO  PRIMARY
db02  pgsql-5432          db01.pgsql-5432            OSU         10  db01
db02   /data              /data                      OSU         10  db01
db02    datarep-data      /dev/xvdb4                 OSU         10  db01
db02   /pgsql_log         /pgsql_log                 OSU         10  db01
db02    datarep-pgsql_log /dev/xvdb2                 OSU         10  db01
db02   /archive           /archive                   OSU         10  db01
db02    datarep-archive   /dev/xvdb3                 OSU         10  db01
db02   ip-111.222.33.44   IP-111.222.33.44           OSU         10  db01

MACHINE  NETWORK ADDRESSES/DEVICE           STATE     PRIO
db01     TCP     192.168.0.12/192.168.0.11  ALIVE        1
db01     TCP     192.168.0.42/192.168.0.41  ALIVE        2
→ db01이 Active, db02이 Standby
→ 두 서버를 대표하는 VIP는 111.222.33.44[1]. DB는 pgsql, 포트는 5432

3 같이 보기[ | ]

4 참고[ | ]

  1. 어느 서버가 Active이든 VIP를 통해 DB연결 가능.
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}