게시물 32건
   
[스틸아이] Reservaction Key에 대해서 Part II
글쓴이 : 최장섭 날짜 : 2015-12-22 (화) 16:08 조회 : 2439
- iSCSI 를 이용한 Shared Volume 구성에서 Steeleye 는 Reservaction Key 에 대해서
   Active 서버의 key 를 갖고 있으며 명령어 및 정상적인 절체에 대해서는 Active Key 를
   가지고 가며, Fencing 등, 장애가 발생하게 되면 Active 서버의 Reservaction Key 를 지우고
   Standby 의 Reservaction Key 를 갖게됨


==================== 재부팅 전 ====================

        20-STEELEYE - Active
        21-STEELEYE - Standby

        [root@20-STEELEYE ~]# lcdstatus -q
        LOCAL        TAG                  ID                      STATE     PRIO  PRIMARY
        20-STEELEYE  pgsql-5444           20-STEELEYE.pgsql-5444  ISP          1  20-STEELEYE
        20-STEELEYE   /PG_DATA            /PG_DATA                ISP          1  20-STEELEYE
        20-STEELEYE    dmmp9216           1IET_00030001           ISP          1  20-STEELEYE
        20-STEELEYE     /PG_XLOG          /PG_XLOG                ISP          1  20-STEELEYE
        20-STEELEYE      dmmp9970         1IET_00040001           ISP          1  20-STEELEYE
        20-STEELEYE       ip-10.10.10.22  IP-10.10.10.22          ISP          1  20-STEELEYE

        MACHINE      NETWORK ADDRESSES/DEVICE         STATE     PRIO
        21-STEELEYE  TCP     30.30.30.20/30.30.30.21  ALIVE        1
        21-STEELEYE  TCP     40.40.40.20/40.40.40.21  ALIVE        2

        [root@20-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_DATA
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x39, 1 registered reservation key follows:
            0xa169cd573ce50061

        [root@20-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_XLOG
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x11, 1 registered reservation key follows:
            0xa169cd573ce50062

        [root@21-STEELEYE ~]# lcdstatus -q
        LOCAL        TAG                  ID                      STATE     PRIO  PRIMARY
        21-STEELEYE  pgsql-5444           20-STEELEYE.pgsql-5444  OSU         10  20-STEELEYE
        21-STEELEYE   /PG_DATA            /PG_DATA                OSU         10  20-STEELEYE
        21-STEELEYE    dmmp9216           1IET_00030001           OSU         10  20-STEELEYE
        21-STEELEYE     /PG_XLOG          /PG_XLOG                OSU         10  20-STEELEYE
        21-STEELEYE      dmmp9970         1IET_00040001           OSU         10  20-STEELEYE
        21-STEELEYE       ip-10.10.10.22  IP-10.10.10.22          OSU         10  20-STEELEYE

        MACHINE      NETWORK ADDRESSES/DEVICE         STATE     PRIO
        20-STEELEYE  TCP     30.30.30.21/30.30.30.20  ALIVE        1
        20-STEELEYE  TCP     40.40.40.21/40.40.40.20  ALIVE        2

        [root@21-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_DATA
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x39, 1 registered reservation key follows:
            0xa169cd573ce50061

        [root@21-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_XLOG
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x11, 1 registered reservation key follows:
            0xa169cd573ce50062

        ==================== 재부팅 후 (20-STEELEYE --> 21-STEELEYE) ====================

        20-STEELEYE - Standby
        21-STEELEYE - Active

        [root@20-STEELEYE ~]# lcdstatus -q
        LOCAL        TAG                  ID                      STATE     PRIO  PRIMARY
        20-STEELEYE  pgsql-5444           20-STEELEYE.pgsql-5444  OSU          1  20-STEELEYE
        20-STEELEYE   /PG_DATA            /PG_DATA                OSU          1  20-STEELEYE
        20-STEELEYE    dmmp9216           1IET_00030001           OSU          1  20-STEELEYE
        20-STEELEYE     /PG_XLOG          /PG_XLOG                OSU          1  20-STEELEYE
        20-STEELEYE      dmmp9970         1IET_00040001           OSU          1  20-STEELEYE
        20-STEELEYE       ip-10.10.10.22  IP-10.10.10.22          OSU          1  20-STEELEYE

        MACHINE      NETWORK ADDRESSES/DEVICE         STATE     PRIO
        21-STEELEYE  TCP     30.30.30.20/30.30.30.21  ALIVE        1
        21-STEELEYE  TCP     40.40.40.20/40.40.40.21  ALIVE        2
     

        [root@20-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_DATA
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x3b, 1 registered reservation key follows:
            0x178081462f830061
        [root@20-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_XLOG
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x13, 1 registered reservation key follows:
            0x178081462f830062

        [root@21-STEELEYE ~]# lcdstatus -q
        LOCAL        TAG                  ID                      STATE     PRIO  PRIMARY
        21-STEELEYE  pgsql-5444           20-STEELEYE.pgsql-5444  ISP         10  20-STEELEYE
        21-STEELEYE   /PG_DATA            /PG_DATA                ISP         10  20-STEELEYE
        21-STEELEYE    dmmp9216           1IET_00030001           ISP         10  20-STEELEYE
        21-STEELEYE     /PG_XLOG          /PG_XLOG                ISP         10  20-STEELEYE
        21-STEELEYE      dmmp9970         1IET_00040001           ISP         10  20-STEELEYE
        21-STEELEYE       ip-10.10.10.22  IP-10.10.10.22          ISP         10  20-STEELEYE

        MACHINE      NETWORK ADDRESSES/DEVICE         STATE     PRIO
        20-STEELEYE  TCP     30.30.30.21/30.30.30.20  ALIVE        1
        20-STEELEYE  TCP     40.40.40.21/40.40.40.20  ALIVE        2

        [root@21-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_DATA
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x3b, 1 registered reservation key follows:
            0x178081462f830061
        [root@21-STEELEYE ~]# sg_persist -i -k -d /dev/mapper/PPAS_XLOG
          IET       VIRTUAL-DISK  0001
          Peripheral device type: disk
          PR generation=0x13, 1 registered reservation key follows:
            0x178081462f830062


이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com