Posted
Filed under Computer/Linux

pdsh -w cep-00[1-2] ls

ssh: connect to host cep-001 port 22: No buffer space available
ssh: connect to host cep-002 port 22: No buffer space available

/var/log/message
Sep 26 16:09:15 cep kernel: Neighbour table overflow.
Sep 26 16:09:21 cep kernel: Neighbour table overflow.

이런 메시지를 보게되면 이것은 arp table entry가 부족한 현상이다.
이것은 한 노드에 너무많은 노드가 붙어 있어 한번에 다 arp table에 넣지 못해 arp는 꽉차있는 상황에서 arp에 없는 노드에 들어가려 할때 생기는 증상이다.

이것은 "/sbin/ip -s neigh" 명령어를 이용하여 살펴볼수 있고.
" arp -n " 나 "tcpdump -i eth0 -n arp" 로 살펴보면 된다.

즉 "arp -n | wc -l " 로 살펴볼때 arp 갯수가 500개라 할때 arp table entry가 정의 되어 있길 200이라 되어있으면 문제가 된다.
이런땐 arp table entry를 늘려주는것이 해답일것이다. 아니면 network 구성을 잘 살펴서 불필요한 mac값이 흘러 들어오지 않도록
해주거나...


이런때는  /etc/sysctl.conf 파일을 수정해준다. (약 7~800 node정도 물려 있는 네트웍인경우 대략)
--------------------------------------------------------------------
  net.ipv4.neigh.default.gc_thresh3 = 4096
  net.ipv4.neigh.default.gc_thresh2 = 2048
  net.ipv4.neigh.default.gc_thresh1 = 1024
--------------------------------------------------------------------

또는 직접 명령어로 늘려준다.
echo 1024 >  /proc/sys/net/ipv4/neigh/default/gc_thresh1
echo 2048 >  /proc/sys/net/ipv4/neigh/default/gc_thresh2
echo 4096 >  /proc/sys/net/ipv4/neigh/default/gc_thresh3


2008/09/26 16:30 2008/09/26 16:30
[로그인][오픈아이디란?]