Author: tridge Date: 2007-01-22 11:57:45 +0000 (Mon, 22 Jan 2007) New Revision: 20948
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20948 Log: a very simple example on how to setup and test ctdb Added: branches/SAMBA_4_0/source/cluster/ctdb/example/ branches/SAMBA_4_0/source/cluster/ctdb/example/cluster_start.sh branches/SAMBA_4_0/source/cluster/ctdb/example/howto.txt branches/SAMBA_4_0/source/cluster/ctdb/example/nlist.txt branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.cluster branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node1 branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node2 branches/SAMBA_4_0/source/cluster/ctdb/example/unclist.txt Changeset: Added: branches/SAMBA_4_0/source/cluster/ctdb/example/cluster_start.sh =================================================================== --- branches/SAMBA_4_0/source/cluster/ctdb/example/cluster_start.sh 2007-01-22 11:46:27 UTC (rev 20947) +++ branches/SAMBA_4_0/source/cluster/ctdb/example/cluster_start.sh 2007-01-22 11:57:45 UTC (rev 20948) @@ -0,0 +1,12 @@ +#!/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 & + Property changes on: branches/SAMBA_4_0/source/cluster/ctdb/example/cluster_start.sh ___________________________________________________________________ Name: svn:executable + * Added: branches/SAMBA_4_0/source/cluster/ctdb/example/howto.txt =================================================================== --- branches/SAMBA_4_0/source/cluster/ctdb/example/howto.txt 2007-01-22 11:46:27 UTC (rev 20947) +++ branches/SAMBA_4_0/source/cluster/ctdb/example/howto.txt 2007-01-22 11:57:45 UTC (rev 20948) @@ -0,0 +1,19 @@ +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! + Added: branches/SAMBA_4_0/source/cluster/ctdb/example/nlist.txt =================================================================== --- branches/SAMBA_4_0/source/cluster/ctdb/example/nlist.txt 2007-01-22 11:46:27 UTC (rev 20947) +++ branches/SAMBA_4_0/source/cluster/ctdb/example/nlist.txt 2007-01-22 11:57:45 UTC (rev 20948) @@ -0,0 +1,2 @@ +127.0.0.1:9001 +127.0.0.2:9001 Added: branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.cluster =================================================================== --- branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.cluster 2007-01-22 11:46:27 UTC (rev 20947) +++ branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.cluster 2007-01-22 11:57:45 UTC (rev 20948) @@ -0,0 +1,26 @@ + 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 Added: branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node1 =================================================================== --- branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node1 2007-01-22 11:46:27 UTC (rev 20947) +++ branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node1 2007-01-22 11:57:45 UTC (rev 20948) @@ -0,0 +1,6 @@ +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 Added: branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node2 =================================================================== --- branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node2 2007-01-22 11:46:27 UTC (rev 20947) +++ branches/SAMBA_4_0/source/cluster/ctdb/example/smb.conf.node2 2007-01-22 11:57:45 UTC (rev 20948) @@ -0,0 +1,6 @@ +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 Added: branches/SAMBA_4_0/source/cluster/ctdb/example/unclist.txt =================================================================== --- branches/SAMBA_4_0/source/cluster/ctdb/example/unclist.txt 2007-01-22 11:46:27 UTC (rev 20947) +++ branches/SAMBA_4_0/source/cluster/ctdb/example/unclist.txt 2007-01-22 11:57:45 UTC (rev 20948) @@ -0,0 +1,2 @@ +\\127.0.0.1\test +\\127.0.0.2\test