--- /dev/null
+#!/bin/sh
+
+killall smbd
+sleep 1
+killall -9 smbd
+killall -9 valgrind
+
+type=$1
+
+xterm -e $type bin/smbd -s /home/tridge/samba/samba4.svn/prefix/etc/smb.conf.node1 -M single -i &
+xterm -e $type bin/smbd -s /home/tridge/samba/samba4.svn/prefix/etc/smb.conf.node2 -M single -i &
+
--- /dev/null
+Here is a very brief howto for setting up a simple test of the current
+ctdb code.
+
+1) put smb.conf.cluster, smb.conf.node1, smb.conf.node2 and nlist.txt in the
+ prefix/etc/ directory for samba4. Adjust them for your local paths.
+
+2) use the script cluster_start.sh to start the two nodes. You can
+ pass extra arguments to start under valgrind or gdb. For example:
+
+ cluster_start.sh "gdb --args"
+
+3) test using the following command:
+
+ bin/locktest //localhost/test //win2003/test -Uadministrator%password -l unclist.txt
+
+ with the unclist.txt supplied
+
+NOTE: This is very much experimental code!
+
--- /dev/null
+127.0.0.1:9001
+127.0.0.2:9001
--- /dev/null
+ ctdb:shared data = /home/tridge/samba/samba4.svn/prefix/cluster
+ ctdb:maxlacount = 7
+ ctdb:brlock = true
+; ctdb:selfconnect = true
+ ctdb:nlist = /home/tridge/samba/samba4.svn/prefix/etc/nlist.txt
+ dos charset = ascii
+ unix charset = utf8
+ display charset = utf8
+ netbios name = blu
+ workgroup = bludom
+ realm = bludom.tridgell.net
+ panic action = backtrace %PID% %PROG%
+ js include = /home/tridge/samba/samba4.svn/source/scripting/libjs
+ setup directory = /home/tridge/samba/samba4.svn/source/setup
+ tls enabled = yes
+ server role = domain controller
+ posix:sharedelay = 100000
+ server services = smb
+ bind interfaces only = true
+ name resolve order = bcast
+ smb ports = 445
+
+[test]
+ ntvfs handler = unixuid posix
+ path = /home/tridge/prefix/testdir
+ read only = No
--- /dev/null
+ctdb:address = 127.0.0.1:9001
+interfaces = lo
+log file = /home/tridge/samba/samba4.svn/prefix/var/log.node1
+pid directory = /home/tridge/samba/samba4.svn/prefix/var/run/node1
+lock directory = /home/tridge/samba/samba4.svn/prefix/var/run/locks/node1
+include = /home/tridge/samba/samba4.svn/prefix/etc/smb.conf.cluster
--- /dev/null
+ctdb:address = 127.0.0.2:9001
+interfaces = lo:2
+log file = /home/tridge/samba/samba4.svn/prefix/var/log.node2
+pid directory = /home/tridge/samba/samba4.svn/prefix/var/run/node2
+lock directory = /home/tridge/samba/samba4.svn/prefix/var/run/locks/node1
+include = /home/tridge/samba/samba4.svn/prefix/etc/smb.conf.cluster
--- /dev/null
+\\127.0.0.1\test
+\\127.0.0.2\test