<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Caneblu.com &#187; resources</title>
	<atom:link href="http://www.caneblu.com/tag/resources/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.caneblu.com</link>
	<description>Solo un altro blog targato WordPress</description>
	<lastBuildDate>Mon, 10 May 2010 20:32:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Move service clustered via command line</title>
		<link>http://www.caneblu.com/2009/01/move-service-clustered-via-command-line/</link>
		<comments>http://www.caneblu.com/2009/01/move-service-clustered-via-command-line/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 15:00:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[enterprise]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[nodes]]></category>
		<category><![CDATA[resources]]></category>

		<guid isPermaLink="false">http://www.caneblu.com/?p=68</guid>
		<description><![CDATA[Windows Enterprise 2003 offer a GUI for moving resources (aka services) to free node&#8217;s inside a cluster. But this is possibile if you are logged-in by means of remote desktop, and often is desirable switch node in no working hours. An example is exchange server, if you switch nodes all clients connected reporting lost connection [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Enterprise 2003 offer a GUI for moving resources (aka services) to free node&#8217;s inside a cluster. But this is possibile if you are logged-in by means of remote desktop, and often is desirable switch node in no working hours. An example is exchange server, if you switch nodes all clients connected reporting lost connection on tray bar, with consequence you phone ring a lot for nothing.</p>
<p>Microsoft help us with a command line suite of cluster manager, inside C:\Windows\System32 there a cluster.exe if you double click it will start a GUI, but if you call via MS-DOS windows you can use several CLI commands. Inside <a href="http://technet.microsoft.com/en-us/library/cc723245.aspx" target="_blank">this page</a> of Microsoft Technet you can find the original documentation of this article.</p>

<div class="wp_syntax"><div class="code"><pre class="tcl" style="font-family:monospace;">cluster MYCLUSTER group <span style="color: #483d8b;">&quot;disk group 1&quot;</span> /prop AntiAffinityClassNames=<span style="color: #483d8b;">&quot;SEP1&quot;</span>
cluster MYCLUSTER group <span style="color: #483d8b;">&quot;disk group 2&quot;</span> /prop AntiAffinityClassNames=<span style="color: #483d8b;">&quot;SEP1&quot;</span></pre></div></div>

<p>We can do several grouping, also with crossing it by changin</p>
<p>Now we show how to move node between cluster called MYCLUSTER, and nodes is called NODE01 and NODE02. The resource we are moving are MSDTC and CLUSTERGROUP previously defined.</p>
<p>The command will be:</p>

<div class="wp_syntax"><div class="code"><pre class="tcl" style="font-family:monospace;">C:\WINDOWS\system32<span style="color: #66cc66;">&amp;</span>gt<span style="color: #66cc66;">;</span>cluster.exe /cluster:MYCLUSTER group <span style="color: #483d8b;">&quot;MSDTC&quot;</span> /moveto:NODE02</pre></div></div>

<p>So in your way wille replace MYCLUSTER, MSDTC and NODE02 with your values.<br />
Note: take a look that group (or resource) are write inside quotation marks.</p>
<p>Now my question is &#8220;ok, but usually a cluster haven&#8217;t only one group.. how can move multiple groups?&#8221;<br />
Microsoft offer a way to &#8220;grouping groups&#8221; as described in <a href="http://technet.microsoft.com/en-us/library/cc783967.aspx" target="_blank">this page</a> of Technet and show in example below.</p>

<div class="wp_syntax"><div class="code"><pre class="tcl" style="font-family:monospace;">cluster MYCLUSTER group <span style="color: #483d8b;">&quot;disk group 1&quot;</span> /prop AntiAffinityClassNames=<span style="color: #483d8b;">&quot;SEP1&quot;</span>
cluster MYCLUSTER group <span style="color: #483d8b;">&quot;disk group 2&quot;</span> /prop AntiAffinityClassNames=<span style="color: #483d8b;">&quot;SEP1&quot;</span></pre></div></div>

<p>We can also made severals associated groups, also crossed, simply with changing the value SEP1</p>
<p>Below an extract of cluster&#8217;s help:</p>
<p>C:\WINDOWS\system32&gt;cluster.exe -?<br />
The syntax of this command is:</p>
<blockquote><p>CLUSTER /LIST[:domain-name]</p>
<p>CLUSTER /CHANGEPASS[WORD] /?<br />
CLUSTER /CHANGEPASS[WORD] /HELP<br />
CLUSTER /CLUSTER:clustername1[,clustername2[,...]]<br />
/CHANGEPASS[WORD][:newpassword[,oldpassword]]</p>
<p>=<br />
[/FORCE] [/QUIET] [/SKIPDC] [/TEST] [/VERB[OSE]] [/UNATTEND[ED]] [/?] [/HELP]</p>
<p>CLUSTER [/CLUSTER:]cluster-name</p>
<p>=<br />
/CREATE [/NODE:node-name] [/VERB[OSE]] [/UNATTEND[ED]] [/MIN[IMUM]]<br />
/USER:domain\username | username@domain [/PASS[WORD]:password]<br />
/IPADDR[ESS]:xxx.xxx.xxx.xxx[,xxx.xxx.xxx.xxx,network-connection-name]<br />
/ADD[NODES][:node-name[,node-name ...]] [/VERB[OSE]] [/UNATTEND[ED]]<br />
[/MIN[IMUM]] [/PASSWORD:service-account-password]</p>
<p>CLUSTER [[/CLUSTER:]cluster-name]</p>
<p>=<br />
/CREATE [/NODE:node-name] /WIZ[ARD] [/MIN[IMUM]]<br />
[/USER:domain\username | username@domain] [/PASS[WORD]:password]<br />
[/IPADDR[ESS]:xxx.xxx.xxx.xxx]<br />
/ADD[NODES][:node-name[,node-name ...]] /WIZ[ARD] [/MIN[IMUM]]<br />
[/PASSWORD:service-account-password]<br />
/PROP[ERTIES] []<br />
/PRIV[PROPERTIES] []<br />
/PROP[ERTIES][:propname[,propname ...] /USEDEFAULT]<br />
/PRIV[PROPERTIES][:propname[,propname ...] /USEDEFAULT]<br />
/REN[AME]:cluster-name<br />
/QUORUM[RESOURCE][:resource-name] [/PATH:path] [/MAXLOGSIZE:max-size-kbytes]<br />
/SETFAIL[UREACTIONS][:node-name[,node-name ...]]<br />
/LISTNETPRI[ORITY]<br />
/SETNETPRI[ORITY]:net[,net ...]<br />
/REG[ADMIN]EXT:admin-extension-dll[,admin-extension-dll ...]<br />
/UNREG[ADMIN]EXT:admin-extension-dll[,admin-extension-dll ...]<br />
/VER[SION]<br />
NODE [node-name] node-command<br />
GROUP [group-name] group-command<br />
RES[OURCE] [resource-name] resource-command<br />
{RESOURCETYPE|RESTYPE} [resourcetype-name] resourcetype-command<br />
NET[WORK] [network-name] network-command<br />
NETINT[ERFACE] [interface-name] interface-command</p>
<p>=<br />
name=value[,value ...][:] [name=value[,value ...][:] &#8230;]</p>
<p>=<br />
BINARY|DWORD|STR[ING]|EXPANDSTR[ING]|MULTISTR[ING]|SECURITY|ULARGE</p>
<p>CLUSTER /?<br />
CLUSTER /HELP</p>
<p>Note: With the /CREATE, /ADDNODES, and /CHANGEPASSWORD options, you<br />
will be prompted for passwords not provided on the command line<br />
unless you also specify the /UNATTENDED option.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.caneblu.com/2009/01/move-service-clustered-via-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
