[Samba] Unable to load modules for /usr/local/samba/private/sam.ldb
Rowland Penny
rowlandpenny at googlemail.com
Wed Nov 12 03:59:50 MST 2014
On 12/11/14 07:25, Kelvin Yip wrote:
> Hi all,
>
>
>
> My samba 4.2 server sudden display the following error message after I issue
> the command
> <https://www.google.com.hk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&
> uact=8&ved=0CCcQrAIoAjAA&url=https%3A%2F%2Flists.samba.org%2Farchive%2Fsamba
> %2F2013-November%2F176857.html&ei=BQFjVK3PMoPTmgWbxYHAAw&usg=AFQjCNGDXvPcdfZ
> a4EkBK2usWnKGv-A6JA> samba_upgradedns --dns-backend=BIND9_DLZ to sync the
> hardlinks. Now I am not able to open "Active Directory Users and Computers".
> Please help.
>
>
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.383294, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module subtree_delete
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.383328, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module operational initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.383774, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module aclread initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.384298, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module acl initialization failed
> : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.384799, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module descriptor initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.385318, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module objectclass initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.385832, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module asq initialization failed
> : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.386339, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module server_sort initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.386762, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module paged_results
> initialization failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.387242, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module dirsync initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.387682, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module schema_load initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.388109, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module rootdse initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.388493, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: module samba_dsdb initialization
> failed : Operations error
>
> Nov 12 15:20:42 linux01 samba[24207]: [2014/11/12 15:20:42.388899, 0]
> ../lib/ldb-samba/ldb_wrap.c:72(ldb_wrap_debug)
>
> Nov 12 15:20:42 linux01 samba[24207]: ldb: Unable to load modules for
> /usr/local/samba/private/sam.ldb: Failed to search for partition base
> DC=ICSHK,DC=LOCAL in new partition at
> /usr/local/samba/private/sam.ldb.d/DC=ICSHK,DC=LOCAL.ldb: ldb_wait:
> Operations error (1)
>
>
>
> The following is the hard link info of both directories:
>
> [root at linux01 local]# ls -ali /usr/local/samba/private/dns/sam.ldb.d
>
> total 25132
>
> 28205291 drwxrwx--- 2 root named 4096 Nov 12 15:15 .
>
> 28205290 drwxrwx--- 3 root named 4096 Nov 12 15:15 ..
>
> 28188902 -rw-rw---- 1 root named 7024640 Nov 12 15:15
> CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28187196 -rw-rw---- 1 root named 8499200 Nov 12 15:15
> CN=SCHEMA,CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28188938 -rw-rw---- 2 root named 4247552 Nov 12 15:18
> DC=DOMAINDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28188939 -rw-rw---- 2 root named 4247552 Oct 12 17:25
> DC=FORESTDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28186740 -rw-rw---- 1 root named 1286144 Nov 12 15:15 DC=ICSHK,DC=LOCAL.ldb
>
> 28187344 -rw-rw---- 2 root named 421888 Nov 12 15:18 metadata.tdb
>
> [root at linux01 local]# ls -ali /usr/local/samba/private/sam.ldb.d
>
> total 39576
>
> 28205293 drwxr-x--- 2 root named 4096 Nov 12 15:15 .
>
> 28197006 drwxr-xr-x 7 root wheel 4096 Nov 12 15:20 ..
>
> 28188936 -rw------- 1 root wheel 14307328 Oct 12 17:25
> CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28188937 -rw------- 1 root wheel 10383360 Oct 12 17:25
> CN=SCHEMA,CN=CONFIGURATION,DC=ICSHK,DC=LOCAL.ldb
>
> 28188938 -rw-rw---- 2 root named 4247552 Nov 12 15:18
> DC=DOMAINDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28188939 -rw-rw---- 2 root named 4247552 Oct 12 17:25
> DC=FORESTDNSZONES,DC=ICSHK,DC=LOCAL.ldb
>
> 28188930 -rw------- 1 root wheel 6909952 Nov 12 15:21 DC=ICSHK,DC=LOCAL.ldb
>
> 28187344 -rw-rw---- 2 root named 421888 Nov 12 15:18 metadata.tdb
>
>
>
> Best,
>
> Kelvin Yip
>
OK, you ran:
samba_upgradedns --dns-backend=BIND9_DLZ
when your inodes already matched (i.e. they where hardlinked), why ??
[root at linux01 local]# ls -ali /usr/local/samba/private/dns/sam.ldb.d
28188938 -rw-rw---- 2 root named 4247552 Nov 12 15:18
DC=DOMAINDNSZONES,DC=ICSHK,DC=LOCAL.ldb
28188939 -rw-rw---- 2 root named 4247552 Oct 12 17:25
DC=FORESTDNSZONES,DC=ICSHK,DC=LOCAL.ldb
28187344 -rw-rw---- 2 root named 421888 Nov 12 15:18 metadata.tdb
[root at linux01 local]# ls -ali /usr/local/samba/private/sam.ldb.d
28188938 -rw-rw---- 2 root named 4247552 Nov 12 15:18
DC=DOMAINDNSZONES,DC=ICSHK,DC=LOCAL.ldb
28188939 -rw-rw---- 2 root named 4247552 Oct 12 17:25
DC=FORESTDNSZONES,DC=ICSHK,DC=LOCAL.ldb
28187344 -rw-rw---- 2 root named 421888 Nov 12 15:18 metadata.tdb
Rowland
More information about the samba
mailing list