sm-notify를 작동시키는 방법을 알 수 없습니다.
관련 IPv4가 포함된 호스트 이름 항목을 /etc/hosts에 추가했습니다.
$ cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
# ...
172.21.10.1 vast10_vip1
하지만 "EADDRNOTAVAIL" 오류로 인해 sm-notify가 여전히 실패합니다.
$ sudo sm-notify -f -d -v 172.21.10.1 -m 1
sm-notify: Version 1.3.0 starting
sm-notify: Canonical name for my_name '172.21.10.1': vast10_vip1
sm-notify: Added host 172.21.10.7 to notify list
sm-notify: Added host 172.21.10.2 to notify list
sm-notify: Added host 172.21.10.10 to notify list
sm-notify: Added host 172.21.10.8 to notify list
sm-notify: Added host 172.21.10.14 to notify list
sm-notify: Added host 172.21.10.4 to notify list
sm-notify: Added host 172.21.10.6 to notify list
sm-notify: Added host 172.21.10.5 to notify list
sm-notify: Added host 172.21.10.12 to notify list
sm-notify: Added host 172.21.10.15 to notify list
sm-notify: Added host 172.21.10.9 to notify list
sm-notify: Added host 172.21.10.11 to notify list
sm-notify: Added host 172.21.10.3 to notify list
sm-notify: Added host 172.21.10.1 to notify list
sm-notify: Added host 172.21.10.13 to notify list
sm-notify: bindresvport on RPC socket failed: Cannot assign requested address
strace
자세한 내용을 보려면 여기에 출력을 붙여넣으세요 .
103494 [00007f77fbd73027] socket(AF_INET6, SOCK_DGRAM, IPPROTO_IP) = 3 <0.000014>
103494 [00007f77fbd72b97] bind(3, {sa_family=AF_INET6, sin6_port=htons(638), inet_pton(AF_INET6, "::ffff:172.21.10.1", &sin6_addr), sin6_flowinfo=0, sin6_scope_id=0}, 28) = -1
EADDRNOTAVAIL (Cannot assign requested address) <0.000014>
103494 [00007f77fbd62fd0] write(2, "bindresvport on RPC socket failed: Cannot assign requested address", 66) = 66 <0.000019>
sm-notify는 IPv4 대신 IPv6 주소를 통해 바인딩을 시도합니까?