Samba with CTDB

lazycy yi.chen1982 at gmail.com
Tue Aug 5 09:52:36 GMT 2008


Hi, all
   I'm trying to setup cluster Samba on my own cluster filesystem these
days. I follow the process on http://ctdb.samba.org/configuring.html. After
finishing installation and configuration work, CTDB service seems run fine
on 2 machines:
[root at rpath-001 ~]# service ctdb status
Number of nodes:2
pnn:0 192.168.11.11    OK (THIS NODE)
pnn:1 192.168.11.12    OK
Generation:419290971
Size:2
hash:0 lmaster:0
hash:1 lmaster:1
Recovery mode:NORMAL (0)
Recovery master:0

  But when try to start samba, I got this error in my samba log file:

[2008/08/05 16:44:33, 1] lib/util_tdb.c:tdb_wrap_log(882)
  tdb(/var/ctdb/persistent/secrets.tdb.0): tdb_transaction_start: cannot
start a transaction with locks held
[2008/08/05 16:44:33, 1] lib/util_tdb.c:tdb_wrap_log(882)
  tdb(/var/ctdb/persistent/secrets.tdb.0): tdb_transaction_start: cannot
start a transaction with locks held
[2008/08/05 16:44:33, 0] passdb/machine_sid.c:pdb_generate_sam_sid(164)
  pdb_generate_sam_sid: Failed to store generated machine SID.
[2008/08/05 16:44:33, 0] lib/util.c:smb_panic(1669)
  PANIC (pid 3820): Could not generate a machine SID

[2008/08/05 16:44:33, 0] lib/util.c:log_stack_trace(1773)
  BACKTRACE: 10 stack frames:
   #0 /usr/local/samba/sbin/smbd(log_stack_trace+0x1a) [0x62b3d2]
   #1 /usr/local/samba/sbin/smbd(smb_panic+0x69) [0x62b26c]
   #2 /usr/local/samba/sbin/smbd(get_global_sam_sid+0x34) [0x5dd513]
   #3 /usr/local/samba/sbin/smbd(create_local_nt_token+0x3b6) [0x6779c5]
   #4 /usr/local/samba/sbin/smbd(get_root_nt_token+0xd0) [0x676fee]
   #5 /usr/local/samba/sbin/smbd(svcctl_init_keys+0x2d) [0x552359]
   #6 /usr/local/samba/sbin/smbd(init_registry+0xd5) [0x791275]
   #7 /usr/local/samba/sbin/smbd(main+0x98a) [0x7b987d]
   #8 /lib64/tls/libc.so.6(__libc_start_main+0xda) [0x2b8695e3fa7a]
   #9 /usr/local/samba/sbin/smbd [0x46f45a]
[2008/08/05 16:44:33, 0] lib/fault.c:dump_core(181)
  dumping core in /usr/local/samba/var/cores/smbd

  This error also happens if I try to add a user to samba, however, I doubt
that is there anything wrong with my ctdb configuration: below is my
/etc/sysconfig/ctdb: (others are just use default and I didn't use public ip
address)

CTDB_RECOVERY_LOCK=/mnt/share/recoverylock
CTDB_NODES=/etc/ctdb/nodes
CTDB_LOGFILE=/var/log/log.ctdb

Also, my smb.conf is as below:
[global]
        clustering = yes
        idmap backend = tdb2
        private dir = /mnt/share
        log file = /var/log/samba/log.smbd.%V
        passdb backend = tdbsam
        workgroup = WORKGROUP
        kernel oplocks = no
        syslog = no
        notify:inotify = no
[data]
        path = /xxx
        ................
Any suggestions or guides will be very helpful! 
Thanks,
Ethan


-- 
View this message in context: http://www.nabble.com/Samba-with-CTDB-tp18827915p18827915.html
Sent from the Samba - samba-technical mailing list archive at Nabble.com.



More information about the samba-technical mailing list