Hello, i upgraded my ctdb cluster (3 nodes) from samba 4.7.7 to 4.8.3. Followed the steps under "policy" in this wikipage https://wiki.samba.org/index.php/Upgrading_a_CTDB_cluster. I shutdown all CTDB nodes and upgraded them. After the upgrade i started all nodes and ctdb status shows: Number of nodes:3 pnn:0 192.168.199.52 OK (THIS NODE) pnn:1 192.168.199.53 OK pnn:2 192.168.199.49 OK Generation:1484961991 Size:3 hash:0 lmaster:0 hash:1 lmaster:1 hash:2 lmaster:2 Recovery mode:NORMAL (0) Recovery master:0 Now i have the problem that "testparm" outputs, for me not readable informations: root at ctdb1:~/ctdb# testparm Load smb config files from /usr/local/samba/etc/smb.conf rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) smb_panic_default: PANIC (pid 2490): messaging not initialized BACKTRACE: 28 stack frames: #0 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0x1f) [0x7fe42f8445db] #1 /usr/local/samba/lib/libsamba-util.so.0(+0x2236a) [0x7fe42f84436a] #2 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0) [0x7fe42f8445bc] #3 /usr/local/samba/lib/private/libsamba-cluster-support-samba4.so(messaging_ctdb_connection+0x1f) [0x7fe42c5a211c] #4 /usr/local/samba/lib/libsmbconf.so.0(db_open+0x2a6) [0x7fe42fcf7752] #5 /usr/local/samba/lib/libsmbconf.so.0(regdb_init+0xdd) [0x7fe42fcd2fb2] #6 /usr/local/samba/lib/libsmbconf.so.0(registry_init_common+0xd) [0x7fe42fcd7937] #7 /usr/local/samba/lib/libsmbconf.so.0(registry_init_smbconf+0xd0) [0x7fe42fd18294] #8 /usr/local/samba/lib/libsmbconf.so.0(+0x6ac0d) [0x7fe42fd16c0d] #9 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init_internal+0x81) [0x7fe42fd1a7e6] #10 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init_reg+0x2f) [0x7fe42fd179c9] #11 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init+0x116) [0x7fe42fd159e4] #12 /usr/local/samba/lib/libsmbconf.so.0(+0x36b11) [0x7fe42fce2b11] #13 /usr/local/samba/lib/libsmbconf.so.0(process_registry_service+0x29) [0x7fe42fce2d1c] #14 /usr/local/samba/lib/libsmbconf.so.0(+0x36f0d) [0x7fe42fce2f0d] #15 /usr/local/samba/lib/libsmbconf.so.0(lp_include+0xdc) [0x7fe42fce35de] #16 /usr/local/samba/lib/libsamba-hostconfig.so.0(handle_include+0x43) [0x7fe42e7e1fda] #17 /usr/local/samba/lib/libsamba-hostconfig.so.0(+0x19816) [0x7fe42e7e3816] #18 /usr/local/samba/lib/libsamba-hostconfig.so.0(lpcfg_do_global_parameter+0x1d7) [0x7fe42e7e3bcd] #19 /usr/local/samba/lib/libsmbconf.so.0(+0x383e3) [0x7fe42fce43e3] #20 /usr/local/samba/lib/libsamba-util.so.0(+0x3013e) [0x7fe42f85213e] #21 /usr/local/samba/lib/libsamba-util.so.0(tini_parse+0xcf) [0x7fe42f85220f] #22 /usr/local/samba/lib/libsamba-util.so.0(pm_process+0x5d) [0x7fe42f84a386] #23 /usr/local/samba/lib/libsmbconf.so.0(+0x3b980) [0x7fe42fce7980] #24 /usr/local/samba/lib/libsmbconf.so.0(lp_load_with_registry_shares+0x39) [0x7fe42fce7f27] #25 testparm(main+0x3b3) [0x55efefd3c201] #26 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) [0x7fe42ec22b97] #27 testparm(_start+0x2a) [0x55efefd3a7aa] Abgebrochen (Speicherabzug geschrieben) But im able to add new parameters like "net conf import smb.reg" and "net conf list" shows me the right output. BY THE WAY, THE CLUSTER IS WORKING! How can i fix the testparm issue or what did i wrong? Thanks again! Micha
On Thu, 28 Jun 2018 10:30:07 +0200 Micha Ballmann via samba <samba at lists.samba.org> wrote:> Hello, > > i upgraded my ctdb cluster (3 nodes) from samba 4.7.7 to 4.8.3. > Followed the steps under "policy" in this wikipage > https://wiki.samba.org/index.php/Upgrading_a_CTDB_cluster. I shutdown > all CTDB nodes and upgraded them. After the upgrade i started all > nodes and ctdb status shows: > > Number of nodes:3 > pnn:0 192.168.199.52 OK (THIS NODE) > pnn:1 192.168.199.53 OK > pnn:2 192.168.199.49 OK > Generation:1484961991 > Size:3 > hash:0 lmaster:0 > hash:1 lmaster:1 > hash:2 lmaster:2 > Recovery mode:NORMAL (0) > Recovery master:0 > > Now i have the problem that "testparm" outputs, for me not readable > informations: > > root at ctdb1:~/ctdb# testparm > Load smb config files from /usr/local/samba/etc/smb.conf > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit > (16384) smb_panic_default: PANIC (pid 2490): messaging not initialized > > BACKTRACE: 28 stack frames: > #0 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0x1f) > [0x7fe42f8445db] > #1 /usr/local/samba/lib/libsamba-util.so.0(+0x2236a) > [0x7fe42f84436a] > #2 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0) > [0x7fe42f8445bc] #3 > /usr/local/samba/lib/private/libsamba-cluster-support-samba4.so(messaging_ctdb_connection+0x1f) > [0x7fe42c5a211c] > #4 /usr/local/samba/lib/libsmbconf.so.0(db_open+0x2a6) > [0x7fe42fcf7752] > #5 /usr/local/samba/lib/libsmbconf.so.0(regdb_init+0xdd) > [0x7fe42fcd2fb2] > #6 /usr/local/samba/lib/libsmbconf.so.0(registry_init_common+0xd) > [0x7fe42fcd7937] > #7 /usr/local/samba/lib/libsmbconf.so.0(registry_init_smbconf+0xd0) > [0x7fe42fd18294] #8 /usr/local/samba/lib/libsmbconf.so.0(+0x6ac0d) > [0x7fe42fd16c0d] > #9 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init_internal+0x81) > [0x7fe42fd1a7e6] > #10 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init_reg+0x2f) > [0x7fe42fd179c9] > #11 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init+0x116) > [0x7fe42fd159e4] #12 /usr/local/samba/lib/libsmbconf.so.0(+0x36b11) > [0x7fe42fce2b11] > #13 /usr/local/samba/lib/libsmbconf.so.0(process_registry_service+0x29) > [0x7fe42fce2d1c] #14 /usr/local/samba/lib/libsmbconf.so.0(+0x36f0d) > [0x7fe42fce2f0d] > #15 /usr/local/samba/lib/libsmbconf.so.0(lp_include+0xdc) > [0x7fe42fce35de] > #16 /usr/local/samba/lib/libsamba-hostconfig.so.0(handle_include+0x43) > [0x7fe42e7e1fda] > #17 /usr/local/samba/lib/libsamba-hostconfig.so.0(+0x19816) > [0x7fe42e7e3816] > #18 /usr/local/samba/lib/libsamba-hostconfig.so.0(lpcfg_do_global_parameter+0x1d7) > [0x7fe42e7e3bcd] #19 /usr/local/samba/lib/libsmbconf.so.0(+0x383e3) > [0x7fe42fce43e3] > #20 /usr/local/samba/lib/libsamba-util.so.0(+0x3013e) > [0x7fe42f85213e] > #21 /usr/local/samba/lib/libsamba-util.so.0(tini_parse+0xcf) > [0x7fe42f85220f] > #22 /usr/local/samba/lib/libsamba-util.so.0(pm_process+0x5d) > [0x7fe42f84a386] #23 /usr/local/samba/lib/libsmbconf.so.0(+0x3b980) > [0x7fe42fce7980] > #24 /usr/local/samba/lib/libsmbconf.so.0(lp_load_with_registry_shares+0x39) > [0x7fe42fce7f27] #25 testparm(main+0x3b3) [0x55efefd3c201] > #26 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) > [0x7fe42ec22b97] > #27 testparm(_start+0x2a) [0x55efefd3a7aa] > Abgebrochen (Speicherabzug geschrieben) > > But im able to add new parameters like "net conf import smb.reg" and > "net conf list" shows me the right output. > > BY THE WAY, THE CLUSTER IS WORKING! How can i fix the testparm issue > or what did i wrong? > > Thanks again! > > Micha > >I haven't a clue about CTDB, but the problem possibly seems to be with 'testparm' which reads smb.conf and this is panicking. So don't you think it might have been a good idea to post the smb.conf, just in case you have made an obvious error ? Rowland
I'm sorry you're right: my "local" smb.conf on each client: [global] clustering = yes include =registry net conf list (output registry): [global] security = ads netbios name = sambacluster realm = DOMAINNAME.de workgroup = DOMAINNAME idmap config *:backend = tdb idmap config *:range = 3000-7999 idmap config domainname:backend = ad idmap config domainname:range = 10000-999999 idmap config domainname:schema_mode = rfc2307 idmap config domainname: unix_nss_info = no domain master = no local master = no preferred master = no os level = 0 restrict anonymous = 2 winbind cache time = 10 winbind enum groups = yes winbind enum users = yes winbind use default domain = yes map acl inherit = yes store dos attributes = yes vfs objects = acl_xattr username map = /usr/local/samba/private/user.map [home] path = /cephfuse/samba/homedir/ read only = no [profiles] path = /cephfuse/samba/profiles read only = no browseable = no [chickenwings] path = /cephfuse/samba/chickenwings read only = no browseable = no Am 28.06.2018 um 10:37 schrieb Rowland Penny via samba:> On Thu, 28 Jun 2018 10:30:07 +0200 > Micha Ballmann via samba <samba at lists.samba.org> wrote: > >> Hello, >> >> i upgraded my ctdb cluster (3 nodes) from samba 4.7.7 to 4.8.3. >> Followed the steps under "policy" in this wikipage >> https://wiki.samba.org/index.php/Upgrading_a_CTDB_cluster. I shutdown >> all CTDB nodes and upgraded them. After the upgrade i started all >> nodes and ctdb status shows: >> >> Number of nodes:3 >> pnn:0 192.168.199.52 OK (THIS NODE) >> pnn:1 192.168.199.53 OK >> pnn:2 192.168.199.49 OK >> Generation:1484961991 >> Size:3 >> hash:0 lmaster:0 >> hash:1 lmaster:1 >> hash:2 lmaster:2 >> Recovery mode:NORMAL (0) >> Recovery master:0 >> >> Now i have the problem that "testparm" outputs, for me not readable >> informations: >> >> root at ctdb1:~/ctdb# testparm >> Load smb config files from /usr/local/samba/etc/smb.conf >> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit >> (16384) smb_panic_default: PANIC (pid 2490): messaging not initialized >> >> BACKTRACE: 28 stack frames: >> #0 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0x1f) >> [0x7fe42f8445db] >> #1 /usr/local/samba/lib/libsamba-util.so.0(+0x2236a) >> [0x7fe42f84436a] >> #2 /usr/local/samba/lib/libsamba-util.so.0(log_stack_trace+0) >> [0x7fe42f8445bc] #3 >> /usr/local/samba/lib/private/libsamba-cluster-support-samba4.so(messaging_ctdb_connection+0x1f) >> [0x7fe42c5a211c] >> #4 /usr/local/samba/lib/libsmbconf.so.0(db_open+0x2a6) >> [0x7fe42fcf7752] >> #5 /usr/local/samba/lib/libsmbconf.so.0(regdb_init+0xdd) >> [0x7fe42fcd2fb2] >> #6 /usr/local/samba/lib/libsmbconf.so.0(registry_init_common+0xd) >> [0x7fe42fcd7937] >> #7 /usr/local/samba/lib/libsmbconf.so.0(registry_init_smbconf+0xd0) >> [0x7fe42fd18294] #8 /usr/local/samba/lib/libsmbconf.so.0(+0x6ac0d) >> [0x7fe42fd16c0d] >> #9 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init_internal+0x81) >> [0x7fe42fd1a7e6] >> #10 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init_reg+0x2f) >> [0x7fe42fd179c9] >> #11 /usr/local/samba/lib/libsmbconf.so.0(smbconf_init+0x116) >> [0x7fe42fd159e4] #12 /usr/local/samba/lib/libsmbconf.so.0(+0x36b11) >> [0x7fe42fce2b11] >> #13 /usr/local/samba/lib/libsmbconf.so.0(process_registry_service+0x29) >> [0x7fe42fce2d1c] #14 /usr/local/samba/lib/libsmbconf.so.0(+0x36f0d) >> [0x7fe42fce2f0d] >> #15 /usr/local/samba/lib/libsmbconf.so.0(lp_include+0xdc) >> [0x7fe42fce35de] >> #16 /usr/local/samba/lib/libsamba-hostconfig.so.0(handle_include+0x43) >> [0x7fe42e7e1fda] >> #17 /usr/local/samba/lib/libsamba-hostconfig.so.0(+0x19816) >> [0x7fe42e7e3816] >> #18 /usr/local/samba/lib/libsamba-hostconfig.so.0(lpcfg_do_global_parameter+0x1d7) >> [0x7fe42e7e3bcd] #19 /usr/local/samba/lib/libsmbconf.so.0(+0x383e3) >> [0x7fe42fce43e3] >> #20 /usr/local/samba/lib/libsamba-util.so.0(+0x3013e) >> [0x7fe42f85213e] >> #21 /usr/local/samba/lib/libsamba-util.so.0(tini_parse+0xcf) >> [0x7fe42f85220f] >> #22 /usr/local/samba/lib/libsamba-util.so.0(pm_process+0x5d) >> [0x7fe42f84a386] #23 /usr/local/samba/lib/libsmbconf.so.0(+0x3b980) >> [0x7fe42fce7980] >> #24 /usr/local/samba/lib/libsmbconf.so.0(lp_load_with_registry_shares+0x39) >> [0x7fe42fce7f27] #25 testparm(main+0x3b3) [0x55efefd3c201] >> #26 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xe7) >> [0x7fe42ec22b97] >> #27 testparm(_start+0x2a) [0x55efefd3a7aa] >> Abgebrochen (Speicherabzug geschrieben) >> >> But im able to add new parameters like "net conf import smb.reg" and >> "net conf list" shows me the right output. >> >> BY THE WAY, THE CLUSTER IS WORKING! How can i fix the testparm issue >> or what did i wrong? >> >> Thanks again! >> >> Micha >> >> > I haven't a clue about CTDB, but the problem possibly seems to be with > 'testparm' which reads smb.conf and this is panicking. So don't you > think it might have been a good idea to post the smb.conf, just in > case you have made an obvious error ? > > Rowland >
Hi Micha, On Thu, Jun 28, 2018 at 10:30:07AM +0200, Micha Ballmann via samba wrote:> root at ctdb1:~/ctdb# testparm > Load smb config files from /usr/local/samba/etc/smb.conf > rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) > smb_panic_default: PANIC (pid 2490): messaging not initialized > > BACKTRACE: 28 stack frames: > ...can you install the Samba/ctdb debug packages so we can a SBT with debug symbols? Fwiw, testparm should work with the registry, and yes, it's a good idea to put the config into the registry on a clustered Samba server (this is basically @Rowland :-) ). -slow -- Ralph Boehme, Samba Team https://samba.org/ Samba Developer, SerNet GmbH https://sernet.de/en/samba/ GPG Key Fingerprint: FAE2 C608 8A24 2520 51C5 59E4 AA1E 9B71 2639 9E46
Hi again, First, i revert to a snapashot with samba 4.7.7 and upgraded it to 4.7.8. I got no issue with my settings and "testparm" outputs as expected. Next i tried again upgrade to samba 4.8.3. But i got the same error like an email before. Yes i guess its a problem that "tesparm" cant read the registry. When im removing "include = registry" and add my global and share information to smb.conf on each node, testparm shows me NO more error. But i dont want to mange each smb.conf manually. Its pretty weird, i guess the registry is still working fine because im able to add, remove and list options with "net conf". Everything looks good at first glance. Is it maybe only an issue of "testparm" in samba 4.8.3? How do i use "Samba/ctdb debug packages"? I compiled SAMBA from source (./configure --with-cluster-support --with-shared-modules=idmap_rid,idmap_tdb2,idmap_ad) and start the daemons with: ### #!/bin/bash /usr/local/samba/sbin/ctdbd_wrapper /usr/local/samba/var/run/ctdb/ctdbd.pid start /usr/local/samba/sbin/smbd /usr/local/samba/sbin/nmbd /usr/local/samba/sbin/winbindd exit 0 ### Thy for your help! Best regards Micha Am 28.06.2018 um 11:05 schrieb Ralph Böhme via samba:> Hi Micha, > > On Thu, Jun 28, 2018 at 10:30:07AM +0200, Micha Ballmann via samba wrote: >> root at ctdb1:~/ctdb# testparm >> Load smb config files from /usr/local/samba/etc/smb.conf >> rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384) >> smb_panic_default: PANIC (pid 2490): messaging not initialized >> >> BACKTRACE: 28 stack frames: >> ... > can you install the Samba/ctdb debug packages so we can a SBT with debug > symbols? > > Fwiw, testparm should work with the registry, and yes, it's a good idea to put > the config into the registry on a clustered Samba server (this is basically > @Rowland :-) ). > > -slow >