System Story/CentOS 5,6
HA Steeleye 에서 data keeper 사용여부 확인
helperchoi
2013. 11. 10. 20:07
1. Steeleye HA 솔루션에서 사용되는 Datakeeper는 물리적으로 독립된 Storage 또는 Data Volume을 사용하는 n개의 HA DB Node간 Data sync를 위해 사용되는 솔루션으로 Shared 구조의 DB Volume 환경에서는 이용되지 않는다.
따라서 Datakeeper Solution이 설치된 HA 환경에서는 Datakeeper Sync 아키텍처 구조에 따라 아래와 같이 mdadm 으로 구성된 Software RAID Device를 확인 할 수 있다.
[root@TESTDB01 ~]# [root@TESTDB01 ~]# lklicmgr License File: 20111021.lic Product Type Expiry Other SteelEye Data Replication ARK Perm LifeKeeper for Linux Perm Oracle Listener Recovery Kit Perm Oracle Recovery Kit Perm LVM Recovery Kit (1/2) Perm LVM Recovery Kit (2/2) Perm
[root@TESTDB01 ~]# [root@TESTDB01 ~]# [root@TESTDB01 ~]# mdadm --detail --scan ARRAY /dev/md0 level=raid1 num-devices=2 metadata= bitmap=/opt/LifeKeeper/bitmap__data ARRAY /dev/md4 level=raid1 num-devices=2 metadata= bitmap=/opt/LifeKeeper/bitmap__archive ARRAY /dev/md3 level=raid1 num-devices=2 metadata= bitmap=/opt/LifeKeeper/bitmap__pg_xlog [root@TESTDB01 ~]# [root@TESTDB01 ~]# [root@TESTDB01 ~]# mirror_status 0 Mirror Configuration: [ ] TESTDB01 -> HMSDB02 (10.220.142.185) Status: Fully Operational [===================>] 100% Type: Synchronous
Bitmap: 2498560 bits (chunks), 2 dirty (0.0%) [root@TESTDB01 ~]# [root@TESTDB01 ~]# [root@TESTDB01 ~]# mirror_status 4 Mirror Configuration: [ ] TESTDB01 -> HMSDB02 (10.220.142.185) Status: Fully Operational [===================>] 100% Type: Synchronous
Bitmap: 3276758 bits (chunks), 0 dirty (0.0%) [root@TESTDB01 ~]# [root@TESTDB01 ~]# [root@TESTDB01 ~]# mirror_status 3 Mirror Configuration: [ ] TESTDB01 -> HMSDB02 (10.220.142.185) Status: Fully Operational [===================>] 100% Type: Synchronous
Bitmap: 655360 bits (chunks), 2 dirty (0.0%) [root@TESTDB01 ~]# [root@TESTDB01 ~]# |
2. Steeleye Datakeeper 데이터 흐름도
HA VIP (Active Node) -> Database Listener -> Filesystem Mount Point (/data) -> Kernel Software RAID Device (RAID 0 - /dev/md0) -> Local Disk (/dev/sda5) / NBD Device (/dev/nbd0) -> Standby Node NBD Server (Data sync)