Solaris : IPMP(Probe, Link-Base) 구성

|

IPMP 설정문서

    Sun Cluster에는 두가지 방식이 존재

    가. Link-Base Failure Detection

        Solaris 2.x에서 OSI 2계층에서 동작하는 기술이었으나, 네트워크 전체의 부하나

        default router의 과부하발생시 원하지 않는 failover를 발생하기도 하여 Solaris 10에 다시 도입.

        Test IP를 부여하지 않음으로 IP를 다중으로 받을필요 없음.

 

    나. Probe-Base Failure Detection

        solaris 8이후 도입된 OSI 4계층에서 동작하는 기술로 IPMP라 칭함.

        각 인터페이스 마다 Test IP가 필요.

    

===============================================================================

 

1. Probe-Base Failure Detection

    기본 환경설정 파일은 /etc/default/mpathd

    [SaWeb] cat /etc/default/mpathd

        FAILURE_DETECTION_TIME=10000

        FAILBACK=yes

        TRACK_INTERFACES_ONLY_WITH_GROUPS=yes

 

-------------------------------------------------------------------------------

 

1.1 Service IP First Active-Standby 구성

 

1.1.1 eeprom parameter 수정

    [SaWeb] eeprom local-mac-address?=true

    <참고> Sparc장비는 기본적으로 MAC Address가 Nvram에 있어 동일한 Address를 갖는다.

    따라서 MAC Address를 달리 주기위해 Parameter값을 수정해줘야 함.

 

1.1.2 Active IP 설정 (Service IP)

    [SaWeb] ifconfig e1000g0 192.168.60.110/24 group test broadcast + up

    [SaWeb] vi /etc/hostname.e1000g0

        192.168.60.110 group test up

        addif 192.168.60.112 -failover deprecated up

 

1.1.3 Standby IP 설정

    [SaWeb] ifconfig e1000g1 192.168.60.111/24 group test broadcast + deprecated -failover standby up

    [SaWeb] vi /etc/hostname.e1000g1

        192.168.60.111 group test deprecated -failover standby up

 

1.1.4 Virtual IP 설정

    [SaWeb] ifconfig e1000g0 addif 192.168.60.112/24 deprecated -failover broadcast + up

 

1.1.5 환경설정 확인

    [SaWeb] ifconfig -a

        e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

            inet 192.168.60.110 netmask ffffff00 broadcast 192.168.60.255

            groupname test

            ether 0:c:29:6b:4b:b4

        e1000g0:1: flags=9040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER> mtu 1500 index 2

            inet 192.168.60.112 netmask ffffff00 broadcast 192.168.60.255

        e1000g1: flags=69040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 1500 index 5

            inet 192.168.60.111 netmask ffffff00 broadcast 192.168.60.255

            groupname test

            ether 0:c:29:6b:4b:d2

 

1.1.6 설정 테스트

    e1000g0의 네트워크 케이블을 언플러그 시킴 또는

    [SaWeb] if_mpadm -d e1000g0

    [SaWeb] ifconfig -a

        e1000g0: flags=19000802<BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED> mtu 0 index 2

            inet 0.0.0.0 netmask 0

            groupname test

            ether 0:c:29:6b:4b:b4

        e1000g0:1: flags=19040803<UP,BROADCAST,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,FAILED> mtu 1500 index 2

            inet 192.168.60.112 netmask ffffff00 broadcast 192.168.60.255

        e1000g3: flags=29040843<UP,BROADCAST,RUNNING,MULTICAST,DEPRECATED,IPv4,NOFAILOVER,STANDBY> mtu 1500 index 5

            inet 192.168.60.111 netmask ffffff00 broadcast 192.168.60.255

            groupname test

            ether 0:c:29:6b:4b:d2

        e1000g3:1: flags=21000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY> mtu 1500 index 5

            inet 192.168.60.110 netmask ffffff00 broadcast 192.168.60.255

    

    e1000g0의 네트워크 케이블을 연결함 또는

    [SaWeb] if_mpadm -r e1000g0

 

-------------------------------------------------------------------------------

 

1.2 Service IP First Active-Active 구성

 

1.2.1 eeprom parameter 수정

    [SaWeb] eeprom local-mac-address?=true

 

1.2.2 Active 1번 IP설정

    [SaWeb] ifconfig e1000g0 192.168.60.110/24 group test broadcast + up

    [SaWeb] vi /etc/hostname.e1000g0

        192.168.60.110 group test up

        addif 192.168.60.112 -failover deprecated up

 

1.2.3 Virtual 1번 IP설정

    [SaWeb] ifconfig e1000g0 addif 192.168.60.112/24 deprecated -failover broadcast + up

 

1.2.4 Active 2번 IP설정

    [SaWeb] ifconfig e1000g1 192.168.60.111/24 group test broadcast + up

    [SaWeb] vi /etc/hostname.e1000g1

        192.168.60.111 group test up

        addif 192.168.60.113 -failover deprecated up

 

1.2.5 Virtual 2번 IP설정

    [SaWeb] ifconfig e1000g1 addif 192.168.60.113/24 deprecated -failover broadcast + up

 

1.2.6 환경설정 확인

 

1.2.7 설정 테스트

    e1000g0의 네트워크 케이블을 언플러그 시킴 또는

    [SaWeb] if_mpadm -d e1000g0

.

    e1000g0의 네트워크 케이블을 연결함 또는

    [SaWeb] if_mpadm -r e1000g0

 

-------------------------------------------------------------------------------

 

1.3 Test IP First Active-Standby 구성

 

1.3.1 eeprom parameter 수정

    [SaWeb] eeprom local-mac-address?=true

 

1.3.2 Active IP 설정

    [SaWeb] ifconfig e1000g0 192.168.60.110/24 group test deprecated -failover broadcast + up

    [SaWeb] vi /etc/hostname.e1000g0

        192.168.60.110 group test -failover deprecated up

        addif 192.168.60.112 up

 

1.3.3 Standby IP 설정

    [SaWeb] ifconfig e1000g1 192.168.60.111/24 group test broadcast + deprecated -failover standby up

    [SaWeb] vi /etc/hostname.e1000g1

        192.168.60.111 group test deprecated -failover standby up

 

1.3.4 Virtual IP 설정

    [SaWeb] ifconfig e1000g0 addif 192.168.60.192.168.60.112/24 broadcast + up

 

1.3.5 환경설정 확인

    [SaWeb] ifconfig -a

 

1.3.6 설정 테스트

    e1000g0의 네트워크 케이블을 언플러그 시킴 또는

    [SaWeb] if_mpadm -d e1000g0

.

    e1000g0의 네트워크 케이블을 연결함 또는

    [SaWeb] if_mpadm -r e1000g0

 

-------------------------------------------------------------------------------

 

1.4 Test IP First Active-Active 구성

 

1.4.1 eeprom parameter 수정

    [SaWeb] eeprom local-mac-address?=true

 

1.4.2 Active 1번 IP설정

    [SaWeb] ifconfig e1000g0 192.168.60.110/24 group test deprecated -failover broadcast + up

    [SaWeb] vi /etc/hostname.e1000g0

        192.168.60.110 group test -failover deprecated up

        addif 192.168.60.112 up

 

1.4.3 Virtual 1번 IP설정

    [SaWeb] ifconfig e1000g0 addif 192.168.60.112/24 broadcast + up

 

1.4.4 Active 2번 IP설정

    [SaWeb] ifconfig e1000g1 192.168.60.112/24 group test deprecated -failover broadcast + up

    [SaWeb] vi /etc/hostname.e1000g1

        192.168.60.111 group test -failover deprecated up

        addif 192.168.60.113 up

 

1.4.5 Virtual 2번 IP설정

    [SaWeb] ifconfig e1000g1 addif 192.168.60.113/24 broadcast + up

 

1.4.6 환경설정 확인

    [SaWeb] ifconfig -a

 

1.4.7 설정 테스트

    e1000g0의 네트워크 케이블을 언플러그 시킴 또는

    [SaWeb] if_mpadm -d e1000g0

.

    e1000g0의 네트워크 케이블을 연결함 또는

    [SaWeb] if_mpadm -r e1000g0

 

===============================================================================

 

2. Link-Base Failure Detection

 

2.1 Test IP 없이 Active-Standby 설정

    VMware로 테스트결과 Failover시 Ping 빠짐현상이 있음

 

2.1.1 eeprom parameter 설정

    [SaWeb] eeprom local-mac-address?=true

 

2.1.2 Active IP설정

    [SaWeb] ifconfig e1000g0 192.168.60.110/24 group test broadcast + up

    [SaWeb] vi /etc/hostname.e1000g0

        192.168.60.110 group test broadcast + up

 

2.1.3 standby IP설정

    [SaWeb] ifconfig e1000g3 plumb

    [SaWeb] ifconfig e1000g3 group test standby up

    [SaWeb] vi /etc/hostname.e1000g1

        group test standby up

 

2.1.4 환경설정 확인

    [SaWeb] ifconfig -a

        e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

            inet 192.168.60.110 netmask ffffff00 broadcast 192.168.60.255

            groupname test

            ether 0:c:29:6b:4b:b4

        e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

            inet 0.0.0.0 netmask ff000000

        e1000g1: flags=69000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 0 index 7

            inet 0.0.0.0 netmask 0

            groupname test

            ether 0:c:29:6b:4b:d2

 

2.1.5 설정 테스트

    e1000g0의 네트워크 케이블을 언플러그 시킴 또는

    [SaWeb] if_mpadm -d e1000g0

    [SaWeb] ifconfig -a

.        e1000g0: flags=19000802<BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED> mtu 0 index 2

            inet 0.0.0.0 netmask 0

            groupname test

            ether 0:c:29:6b:4b:b4

        e1000g1: flags=21000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY> mtu 1500 index 7

            inet 0.0.0.0 netmask ff000000

            groupname test

            ether 0:c:29:6b:4b:d2

        e1000g1:1: flags=21000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY> mtu 1500 index 7

            inet 192.168.60.110 netmask ffffff00 broadcast 192.168.60.255

        

    e1000g0의 네트워크 케이블을 연결함 또는

    [SaWeb] if_mpadm -r e1000g0    

 

-------------------------------------------------------------------------------

 

2.2 Test IP 포함 Active-Standby 구성

    VMware로 테스트 결과 Failover시 Ping 빠짐현상이 없으며 Failback 속도가 빠름.

 

2.2.1 eeprom parameter 설정

    [SaWeb] eeprom local-mac-address?=true

 

2.2.2 Active IP설정

    [SaWeb] ifconfig e1000g0 192.168.60.110/24 group test broadcast + up

 

2.2.3 Virtual IP설정

    [SaWeb] ifconfig e1000g0 addif 192.168.60.112/24 broadcast + up

    [SaWeb] vi /etc/hostname.e1000g0

        192.168.60.110 group test broadcast + up

        addif 192.168.60.112 broadcast + up

 

 

2.2.4 Standby IP설정

    [SaWeb] ifconfig e1000g3 plumb

    [SaWeb] ifconfig e1000g3 group test standby up

    [SaWeb] vi /etc/hostname.e1000g1

        group test standby up

 

2.2.5 환경설정 확인

    [SaWeb] ifconfig -a

        e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

            inet 192.168.60.110 netmask ffffff00 broadcast 192.168.60.255

            groupname test

            ether 0:c:29:6b:4b:b4

        e1000g0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

            inet 192.168.60.112 netmask ffffff00 broadcast 192.168.60.255

        e1000g0:2: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2

            inet 0.0.0.0 netmask ff000000

        e1000g1: flags=69000842<BROADCAST,RUNNING,MULTICAST,IPv4,NOFAILOVER,STANDBY,INACTIVE> mtu 0 index 8

            inet 0.0.0.0 netmask 0

            groupname test

            ether 0:c:29:6b:4b:d2

 

2.2.6 설정 테스트

    e1000g0의 네트워크 케이블을 언플러그 시킴 또는

    [SaWeb] if_mpadm -d e1000g0

    [SaWeb] ifconfig -a

        e1000g0: flags=19000802<BROADCAST,MULTICAST,IPv4,NOFAILOVER,FAILED> mtu 0 index 2

            inet 0.0.0.0 netmask 0

            groupname test

            ether 0:c:29:6b:4b:b4

        e1000g1: flags=21000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY> mtu 1500 index 8

            inet 0.0.0.0 netmask ff000000

            groupname test

            ether 0:c:29:6b:4b:d2

        e1000g1:1: flags=21000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY> mtu 1500 index 8

            inet 192.168.60.110 netmask ffffff00 broadcast 192.168.60.255

        e1000g1:2: flags=21000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,STANDBY> mtu 1500 index 8

            inet 192.168.60.112 netmask ffffff00 broadcast 192.168.60.255

        

    e1000g0의 네트워크 케이블을 연결함 또는

    [SaWeb] if_mpadm -r e1000g0    

 

-------------------------------------------------------------------------------

2.3 Test IP 없이 Active-Active 구성

 

2.3.1 eeprom parameter 설정

    [SaWeb] eeprom local-mac-address?=true

 

2.3.2 Active 1번 IP설정

    [SaWeb] ifconfig e1000g0 192.168.60.110

'OS > UNIX' 카테고리의 다른 글

Solaris : Network – Snoop 사용방법  (0) 2011.03.29
Solaris : Network TCP Parameter Script  (0) 2011.03.28
Solaris : IPMP(Probe, Link-Base) 구성  (4) 2011.03.28
Solaris : 패스워드 8자 이상 사용  (0) 2011.03.28
Solaris : ADSL 사용  (0) 2011.03.28
Solaris : Password 분실 복구  (0) 2011.03.27
Trackback 0 And Comment 4