CIFS service fails to load - Failed to create socket and bind, error: 98

  • 7017716
  • 13-Jun-2016
  • 13-Jun-2016

Environment

Novell Open Enterprise Server 11 (OES 11) Linux Support Pack 2
Novell CIFS

Situation

rcnovell-cifs start would fail to load the CIFS server service.

Resolution

Looking at the /var/log/cifs/cifs.log file showed the following:
Jun  9 10:40:26 sultsrv CIFS[9879]: CRITICAL: NBNS: Failed to create socket and bind, error: 98
Jun  9 10:40:26 sultsrv CIFS[8531]: CRITICAL: BROWSER: StartUdpPort138Server: Failed to create and bind socket. Error: 98

netstat -peanut | grep :138 showed that the socket was already opened by nmbd.
kill -9 $(pidof nmbd) killed the nmbd process

rcnovell-cifs start successfully loaded the CIFS server service.

chkconfig nmb off will keep it from load again on the next boot.

Cause

nmbd was already running