samba failing to start after centos7.2(rhel7.2) update
환경 : CentOS-7.2 (64bit)
증상
얼마전 제공된 centos-7.2 업데이트 이후 갑자기 samba 구동이 되지 않음
# systemctl start smb Job for smb.service failed because the control process exited with error code. See "systemctl status smb.service" and "journalctl -xe" for details.
???? 사실 이 때 까지만 해도 7.2업데이트(정확히는 samba 업데이트) 때문에 발생한 문제 라는 것을 몰랐음.
서비스 확인
# systemctl status smb ● smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 월 2016-01-04 12:35:20 KST; 39s ago Main PID: 19226 (code=exited, status=1/FAILURE) 1월 04 12:35:20 lvs1 systemd[1]: Starting Samba SMB Daemon... 1월 04 12:35:20 lvs1 systemd[1]: smb.service: main process exited, code=exited, status=1/FAILURE 1월 04 12:35:20 lvs1 systemd[1]: Failed to start Samba SMB Daemon. 1월 04 12:35:20 lvs1 systemd[1]: Unit smb.service entered failed state. 1월 04 12:35:20 lvs1 systemd[1]: smb.service failed. 1월 04 12:35:43 lvs1 systemd[1]: Stopped Samba SMB Daemon.
/var/log/messages Jan 4 13:12:16 localhost systemd: Started Authorization Manager. Jan 4 13:12:16 localhost systemd: Starting Samba SMB Daemon... Jan 4 13:12:16 localhost systemd: smb.service: main process exited, code=exited, status=1/FAILURE Jan 4 13:12:16 localhost systemd: Failed to start Samba SMB Daemon. Jan 4 13:12:16 localhost systemd: Unit smb.service entered failed state. Jan 4 13:12:16 localhost systemd: smb.service failed.
# journalctl -xn -- Logs begin at 월 2016-01-04 11:18:30 KST, end at 월 2016-01-04 13:16:23 K 1월 04 13:16:01 lvs1 systemd[1]: Starting Session 134 of user root. -- Subject: Unit session-134.scope has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit session-134.scope has begun starting up. 1월 04 13:16:01 lvs1 CROND[21929]: (root) CMD (/usr/bin/rdate -s time.bora. 1월 04 13:16:05 lvs1 systemd[1]: Time has been changed -- Subject: Time change -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- The system clock has been changed to REALTIME microseconds after January 1월 04 13:16:23 lvs1 polkitd[21368]: Registered Authentication Agent for un 1월 04 13:16:23 lvs1 systemd[1]: Starting Samba SMB Daemon... -- Subject: Unit smb.service has begun start-up -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit smb.service has begun starting up. 1월 04 13:16:23 lvs1 systemd[1]: smb.service: main process exited, code=exi 1월 04 13:16:23 lvs1 systemd[1]: Failed to start Samba SMB Daemon. -- Subject: Unit smb.service has failed -- Defined-By: systemd -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel -- -- Unit smb.service has failed. -- -- The result is failed. 1월 04 13:16:23 lvs1 systemd[1]: Unit smb.service entered failed state. 1월 04 13:16:23 lvs1 systemd[1]: smb.service failed. 1월 04 13:16:23 lvs1 polkitd[21368]: Unregistered Authentication Agent for
이 때 까지도 원인을 모름;;;;
# smbstatus Unknown parameter encountered: "share modes" Ignoring unknown parameter "share modes" WARNING: Ignoring invalid value 'share' for parameter 'security'
”share modes”, ”security” 옵션과 관련하여 문제가 있다는 것을 확인
원인
업데이트 기록
Nov 05 07:18:36 Updated: samba-libs-4.1.12-24.el7_1.x86_64 Nov 05 07:18:36 Updated: samba-common-4.1.12-24.el7_1.x86_64 Nov 05 07:18:51 Updated: samba-client-4.1.12-24.el7_1.x86_64 Nov 05 07:18:52 Updated: samba-4.1.12-24.el7_1.x86_64 Dec 15 13:13:47 Updated: samba-libs-4.2.3-10.el7.x86_64 Dec 15 13:13:47 Installed: samba-common-tools-4.2.3-10.el7.x86_64 Dec 15 13:13:47 Updated: samba-common-4.2.3-10.el7.noarch Dec 15 13:13:48 Installed: samba-client-libs-4.2.3-10.el7.x86_64 Dec 15 13:13:48 Installed: samba-common-libs-4.2.3-10.el7.x86_64 Dec 15 13:15:55 Updated: samba-client-4.2.3-10.el7.x86_64 Dec 15 13:15:56 Updated: samba-4.2.3-10.el7.x86_64
7.2 업데이트시 samba 버전이
기존 : 4.1.12
변경 : 4.2.3
으로 변경되는 내용이 있었고..
버전 변경에 따라 설정 파라미터 역시 영향을 받았다는..
해당 옵션은 그냥 삭제… ;;;;
아직 업데이트 된 버전의 설정값을 제대로 확인하지 못함…
Leave a Reply