Table of Contents |
---|
It is a guide to solving problems that may arise during
Table of Contents |
---|
Troubleshooting guides for issues that may arise in the process of configuring DRX.
Problem 1. An error occurred while installing DRX.
...
Installation errors
- Issues with installing the Visual C++ Redistributable Package for Visual Studio 2013 (hereafter VS2013 Redistributable Package) when installing DRX for Windows
- Problem phenomenon
- Error installing "VS2013 Redistributable Redistribution Package" installation error that automatically adds after installing DRX installation
- Cause: VS2013 Redistributable Package IssueAn inherent flaw in the VS2013 redistribution package.
Solution
Windows Server 2012 R2
- ConditionDescription: "VS2013 Redistributable Redistribution Package" requires KB2883200 (Windows Update) for Windows Server 2012 R2.
- Solution: Make sure Ensure that Windows Update KB2883200 is installed. If it is not installed, install it through Windows Update.
- Windows Server 2008 R2 SP1
- ConditionExplanation: An error of Error 0x800b010a occurs.
Code Block [0AD8:05C0][2018-07-26T15:33:04]e000: Error 0x800b010a: Failed authenticode verification of payload: C:\ProgramData\Package Cache\.unverified\vcRuntimeMinimum_x64 [0AD8:05C0][2018-07-26T15:33:04]e000: Error 0x800b010a: Failed to verify signature of payload: vcRuntimeMinimum_x64 [0AD8:05C0][2018-07-26T15:33:04]e310: Failed to verify payload: vcRuntimeMinimum_x64 at path: C:\ProgramData\Package Cache\.unverified\vcRuntimeMinimum_x64, error: 0x800b010a. Deleting file.
- Solution: Update the Update Windows Update for additional ".NET Framework 3.5.1" entry in Windows Updateentries.
- ConditionExplanation: An error of Error 0x800b010a occurs.
- Problem phenomenon
...
Unable to start a resource
- Failed to read configuration files with settings due to UTF-8 with BOM .file format
ConditionProblem phenomenon
Failed to read drx.conf.
Code Block title DRX 로그 E1120 16:37:02.690660 t42053 config] Failed to load [/opt/DRX/drx.conf]. /opt/DRX/drx.conf(1): '=' character not found in line
Failed to read drbd configurationsBSR settings
Code Block title DRX 로그 E1120 16:37:52.810044 t42132 config] Failed to get drbd configuration: Can't get drbd configuration. (exit_code: 2560) E1120 16:37:52.810068 t42132 config] Output: drbd.d/1/r0.res:1: Parse error: 'global | common | resource | skip | include' expected, E1120 16:37:52.810070 t42132 config] Output: but got '▒'
- Cause: BOM Configuration file parsing fails Failed to parse configuration file due to BOMbill of materials information.
Solution
- Centos 6, 7
Check the file's encoding of the file with the file commandcommand.
Code Block [root@drxdev1 test]# file r1.res r1.res: UTF-8 Unicode (with BOM) text, with CRLF line terminators
- Re-encoding via
vi
Open the file with vi, type the following, and save it.
:set nobomb
- Windows
- Open the file with notepad and change the encoding to 'ANSI' via 'Save As'.
- Centos 6, 7
Problem 3. Can't connect between DRX resources.
...
Unable to connect
Because there are many possible reasons why a DRX connection has might not been be established. You should check these items in detail for the following sequence of configuration steps, you should follow the order of the replication connection configuration procedure and check it carefully. The following configuration sequence is a Linux-based troubleshooting guide and is equally applicable to Windows environments.
Network environments
...
based on Linux and is the same for Windows
Network environment
- Verify that the bsr's IP and drx's IP are set in the node's firewall policy allow list. If allowlist. If they are not enforced for the IP and port used by the resource has not been applied, take do the following actions.
Centos 6
Add the settings to 'what you want to set to the /etc/sysconfig/iptables ' file.
Code Block -A INPUT -p tcp -s \{source IPip\} -d \{destination IPip\} --dport \{listenAllowed portPorts\} -j ACCEPT
Centos 7
Code Block Command to add port : firewallfirewall-cmd --permanent --zone=public --add-port=\{listen허용할 port포트\}/tcp Command to restart firewall : firewall-cmd --reload Command to output opened ports : firewallfirewall-cmd --zone=public --list-all
- Ping Check the loopback addressping
- If there is a ping response with to the loopback address (127.0.0.1) , but no ping response with to the local ip IP address, there is a problem with the configuration of the your network environment. If In this is the case, you should contact your network administrator.
...
Version
- drbd : 8.4.8 or higher8 or later
- drbd -utils util : 8.9.10 or higher
lsmod | grep drbd
command to verify 10 or later Verify that the drbd kernel driver module is loaded with the lsmod | grep drbd command.
Code Block [root@c65-3 build_files]# lsmod | grep drbd drbd 374888 3 [root@c65-3 build_files]#
fsr: 1.2 or later
- bsr: all version availabl
Checking the DRX version
Make sure Ensure that the DRX version of on the local node is and the same as the DRX version of on the remote node are the same. Although DRX provides backward compatibility between versions, but it is recommended that you configure DRX to with the same version as of DRX whenever possible.
...
Check resource settings
- Make sure that Check if the resource configuration file is stored saved in ANSI format or UTF8 format → UTF8 with BOM format is not supported.
- Check hostname : Be settings: When changing the hostname, be careful about whether the hostname change it has been applied successfullycorrectly.
- Using Check whether individual ports by are used per resource: Make sure Check that there is no port duplicationduplicate use of ports.
...
BSR Configuration
- Change the DRBD's resource configuration to a direct DRBD connection to ensure that it connects normally.
drbdsetup show
checks of the BSR to connect directly between the BSRs without interfacing with DRX to verify that the connection works. - Verify with bsrsetup show that the ip loaded in drbd on the BSR is the same as the ip set in the resource file.
- Check the global entry to see if whether wfc-timeout is is set in the global entry. If it is not set, set the wfc-timeout value value to 1.
- Add the value of ping-timeout to to the "net entry " entry of the resource. The default value is 500ms and we recommend setting , set it to 30 (3 seconds) generouslyto be generous.
DRX Configuration
- Connection between
DRX
- Change all of DRBD's resources to 'standalone':
drbdadm disconnect r0
- Install DRX and start drxsvc to check DRX connectivity. In
- bsr의 리소스들을 모두 standalone상태로 변경 합니다: bsradm disconnect r0
- drx를 설치하고 drxsvc를 start한 상태에서 drx간의 연결을 확인합니다.
- netstat 출력물에서 drx ip와 포트가 LISTEN/ESTABLISHE/TIME_WAIT.
- If it is normal, the connection status of the resource is 'bridged'.
- At this time, DRBD status is 'standalone', and DRX is switched to 'connecting' / 'waiting' status to connect with DRBD.
- If the state of DRX of both nodes is 'bridging', it is a state to try to connect between DRX. If there is no change after a certain time, check connection on WAN section first.
- The icmp ping is usually blocked by firewall policy, so it checks for the possibility of a TCP connection between local and remote via drbdsim or other tools.
- Change the state of the DRBD resource from 'standalone' to 'connecting'. → Use
drbdadm connect
command to change the status.- Check that the status of the resource changes to 'WFConnection' in the log of
cat /proc/kmsg/
- Check that the status of the resource changes to 'WFConnection' in the log of
- In normal situation, when DRBD and DRX are connected, it becomes 'established' state.
- If the status of the DRBD is 'connecting' and the connection is not established, check the netstat output to see if the IP of the DRBD is in the LISTEN state.
- Verify that the local DRX attempts SYN_SENT with the IP of the local DRBD.
- You may not be able to identify SYN_SENT in the output of netstat because the status of TCP can change quickly. Let netstat monitor the results continuously through the following scriptWAIT인지 여부를 확인합니다.
- 정상적일 경우 리소스의 연결 상태는 bridged 상태 입니다.
- 이 때의 bsr 상태는 standalone 이며 drx 가 bsr과 연결하기 위한 상태는 connecting / waiting 상태로 전환됩니다.
- 양노드의 drx의 상태가 bridging이라면 drx간에 연결을 시도하는 상태이며 일정시간이 지나도 변화가 없다면 WAN 구간 상의 연결을 먼저 점검해 봐야 합니다.
- icmp ping 은 보통 방화벽 정책에 의해 차단되어 있을 가능성이 있기 때문에 drxsim등을 통한 로컬과 원격간의 TCP 연결 가능여부를 확인합니다.
- bsr - drx 간 연결
- standalone이었던 bsr 리소스의 상태를 connecting상태로 변경한다. → bsradm connect 명령어로 상태를 변경 합니다.
- cat /proc/kmsg/의 로그에서 리소스의 상태가 Connecting으로 변경되는지 확인합니다.
- 정상 상황일 경우 bsr과 drx가 연결되면 established 로 연결이 성립됩니다.
- 만약 bsr의 status가 connecting이고 연결이 성립되지 않는다면 netstat 출력물에서 bsr ip가 LISTEN상태인지 확인합니다.
- local drx가 local bsr ip로 SYN_SENT를 시도하는지 확인합니다.
- TCP의 상태변경이 신속하게 바뀔 수 있기 때문에 netstat에 SYN_SENT 상태 출력이 파악되지 않을 수도 있습니다.
netstat의 결과를 다음과 같은 스크립트 형태로 지속적으로 모니터링 합니다.
Code Block $> while(true); do date; netstat -nap | grep 779 | sort -k 3; sleep 1; clear; done Thu Aug 23 08:51:23 PDT 2018 tcp 0 0 192.168.100.3:35814 192.168.100.3:7792 ESTABLISHED - tcp 0 0 192.168.100.3:7791 0.0.0.0:* LISTEN - tcp 0 0 192.168.100.3:7792 192.168.100.3:35814 ESTABLISHED 8033/drx tcp 0 0 192.168.100.3:7793 192.168.100.2:60676 ESTABLISHED 8033/drx tcp 0 0 192.168.100.3:7795 0.0.0.0:* LISTEN 8033/drx tcp 0 0 192.168.100.3:7796 192.168.100.2:43684 ESTABLISHED 8033/drx tcp 0 1 10.10.0.182:50460 31.1.1.2:7793 SYN_SENT 8033/drx tcp 0 1 10.10.0.182:57966 31.1.1.2:7796 SYN_SENT 8033/drx unix 3 [ ] STREAM CONNECTED 18779 2477/gconfd-2 unix 3 [ ] STREAM CONNECTED 20779 2512/gnome-panel
- When DRBD and DRX are connected, the netstat output checks that the DRBD IP and DRX IP of the resource are in the 'established' state.
- Check if the log output from DRX contains a failure (Ex. Connection refuse).
- bsr과 drx가 연결되면 netstat 출력물에서 리소스의 bsr ip와 drx의 ip가 eastablished 상태가 되는지 확인합니다.
- drx 로그에 실패(Ex. connection refuse)에 대한 로그가 있는지 확인합니다.
- standalone이었던 bsr 리소스의 상태를 connecting상태로 변경한다. → bsradm connect 명령어로 상태를 변경 합니다.
- 로그 수집
- cat /etc/sysconfig/network-scripts/ifcfg-* 명령어로 출력되는 결과물을 수집합니다.
- /var/log/messages
- service iptables status
- ip a
netstat
output, check whether DRX IP and port are 간 연결
Problem 4. DRX connection does not work well when configured with Virtual IP.
...
- 명령어로 출력되는 결과물
VIP 연결 불가
만약 VIP 를 사용하는 Active/Standby 양 노드에서 동일한 VIP 를 통해 소켓 Bind 가 수행될 경우 양노드 간의 통신 간섭이 발생할 수 있습니다. 따라서 DRX를 VIP로 연동(SDR, MDR 등)할 경우 대기 노드의 DRX는 반드시 기동을 중지해야 하고, 대기노드로 페일오버 후 리소스를 up 하기 이전에 DRX 를 기동시켜야 연결이 원활하게 수행될 수 있습니다.