CentOS 7 리눅스 RPCBIND 서비스 에러 로그 해결하기 (rpcbind[xxxxxx]: cannot create socket for udp6, tcp6)

IPV6이 비활성화된 CentOS 7 리눅스에서 rpcbind 서비스 시작 시 발생하는 에러 로그를 해결하는 방법에 대해 알아봅니다. /etc/netconfig 파일의 utp6, tcp6 항목 주석 처리하여 에러 로그 발생을 해결 할 수 있습니다.
인프라코디
CentOS 7 리눅스 RPCBIND 서비스 에러 로그 해결하기 (rpcbind[xxxxxx]: cannot create socket for udp6, tcp6)

IPv6가 비활성화된 CentOS 7 리눅스에서 rpcbind 서비스 시작 시 발생하는 에러 로그를 해결하는 방법에 대해 알아봅니다.

/etc/netconfig 파일의 utp6, tcp6 항목 주석 처리하여 에러 로그 발생을 해결할 수 있습니다.

환경 정보

  • 운영 체제(OS) : CentOS 7.9 64bit
  • 실행 계정 : root
  • RPC Bind 패키지 : rpcbind-0.2.0-49.el7.x86_64

문제 확인

rpcbind서비스 시작 후 /var/log/messages 파일에 다음과 같은 에러 로그가 발생합니다.

Jun 16 14:06:54 infracody.com rpcbind[15235]: cannot create socket for udp6
Jun 16 14:06:54 infracody.com rpcbind[15235]: cannot create socket for tcp6

systemctl status rpcbind 명령어 실행으로 서비스 상태 확인하는 경우에도 에러 로그를 확인할 수 있습니다.

systemctl status rpcbind
[root@infracody.com ~]# systemctl status rpcbind ● rpcbind.service - RPC bind service Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2022-06-16 14:06:54 KST; 3s ago Process: 15235 ExecStart=/sbin/rpcbind -w $RPCBIND_ARGS (code=exited, status=0/SUCCESS) Main PID: 15240 (rpcbind) CGroup: /system.slice/rpcbind.service └─15240 /sbin/rpcbind -w Jun 16 14:06:54 infracody.com systemd[1]: Stopped RPC bind service. Jun 16 14:06:54 infracody.com systemd[1]: Starting RPC bind service... Jun 16 14:06:54 infracody.com rpcbind[15235]: cannot create socket for udp6 Jun 16 14:06:54 infracody.com rpcbind[15235]: cannot create socket for tcp6 Jun 16 14:06:54 infracody.com systemd[1]: Started RPC bind service.

해결 방법

IPv6를 비활성화하여 사용하지 않고 있지만 /etc/netconfig 파일에 정의된 utp6, tcp6 항목을 주석 처리하여 해결할 수 있습니다.

/etc/netconfig 파일은 nfs-utils 패키지 설치 시 종속성으로 설치된 libtirpc-0.2.4-0.16.el7.x86_64 패키지를 통해 생성되었습니다.

vi /etc/netconfig
[root@infracody.com ~]# vi /etc/netconfig # # The network configuration file. This file is currently only used in # conjunction with the TI-RPC code in the libtirpc library. # # Entries consist of: # # <network_id> <semantics> <flags> <protofamily> <protoname> \ # <device> <nametoaddr_libs> # # The <device> and <nametoaddr_libs> fields are always empty in this # implementation. # udp tpi_clts v inet udp - - tcp tpi_cots_ord v inet tcp - - #udp6 tpi_clts v inet6 udp - - #tcp6 tpi_cots_ord v inet6 tcp - - rawip tpi_raw - inet - - - local tpi_cots_ord - loopback - - - unix tpi_cots_ord - loopback - - -

rpcbind 서비스를 재시작 합니다.

systemctl restart rpcbind

rpcbind 서비스 상태를 확인합니다.

systemctl status rpcbind
[root@infracody.com ~]# systemctl status rpcbind ● rpcbind.service - RPC bind service Loaded: loaded (/usr/lib/systemd/system/rpcbind.service; enabled; vendor preset: enabled) Active: active (running) since Thu 2022-06-16 14:07:50 KST; 3s ago Process: 15389 ExecStart=/sbin/rpcbind -w $RPCBIND_ARGS (code=exited, status=0/SUCCESS) Main PID: 15390 (rpcbind) CGroup: /system.slice/rpcbind.service └─15390 /sbin/rpcbind -w Jun 16 14:07:50 infracody.com systemd[1]: Stopped RPC bind service. Jun 16 14:07:50 infracody.com systemd[1]: Starting RPC bind service... Jun 16 14:07:50 infracody.com systemd[1]: Started RPC bind service.

마무리

IPv6가 비활성화된 NFS 클라이언트로 사용하는 CentOS 7.9 리눅스 서버에서 발생한 rpcbind 에러 해결 방법에 대해 알아보았습니다.

인프라코디
서버, 네트워크, 보안 등 IT 인프라 관리를 하는 시스템 엔지니어로 일하고 있으며, IT 기술 정보 및 일상 정보를 기록하는 블로그를 운영하고 있습니다. 글을 복사하거나 공유 시 게시하신 글에 출처를 남겨주세요.

- 블로그 : www.infracody.com

이 글이 유익했나요? 댓글로 소중한 의견을 남겨주시거나 커피 한 잔의 선물은 큰 힘이 됩니다.
댓글