Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

move cluster resource using the command line cluster.exe

656 views
Skip to first unread message

faf1967

unread,
Jun 15, 2006, 9:40:02 AM6/15/06
to
I have a 2 node test cluster and want to try to move a resource using the
command line. If you look at MS help and support center it says to run
cluster [[/cluster:]ClusterName] res[ource] ResourceName /Option The
/move[to]:Group Moves the resource to a different group option does not work.
My cluster name is DEVTEST and I have 2 nodes test1 and test2. I have 2
groups cluster group (on node test1) and print group (on node test2). I would
like to be able to move the print group to the test2 node using the command
line. Does anyone know if this is possible?

Thanks in advance for anyone who responds....

John Toner [MVP]

unread,
Jun 15, 2006, 12:04:24 PM6/15/06
to
The command you are issuing is for moving a resource between groups. What
you're looking for would be the following command:

cluster group "GROUPNAME" /move

Regards,
John

"faf1967" <faf...@discussions.microsoft.com> wrote in message
news:6E22CF29-60AB-4005...@microsoft.com...

faf1967

unread,
Jun 15, 2006, 4:41:02 PM6/15/06
to
Thanks for your response. I want to make sure I have the command correct. If
I want to move cluster group on test1 node to test2 node I would use the
following:

cluster group "cluster group" /move test2

faf1967

unread,
Jun 15, 2006, 9:29:02 PM6/15/06
to
this is the error I get when I run the command
C:\>cluster /cluster:devtestclust group "R1 Print" /moveto:test01
Moving resource group 'R1 Print'...
System error 5042 has occurred (0x000013b2).
The cluster node was not found.

C:\>cluster group "R1 Print" /moveto:test01
Moving resource group 'R1 Print'...
System error 5042 has occurred (0x000013b2).
The cluster node was not found.

Edwin vMierlo

unread,
Jun 16, 2006, 6:48:02 AM6/16/06
to
Error 5042 is ERROR_CLUSTER_NODE_NOT_FOUND

As you have a 2 node cluster, you do not have to use the /moveto option.
As you only have 2 nodes, when moving it will default to the other node

Use the command with the /move option, and do not specify the node name.

HTH
Rgds,
_Edwin

John Toner [MVP]

unread,
Jun 16, 2006, 9:35:19 AM6/16/06
to
As Edwin states, you do not need to specify the nodename. Also, you
previously stated that the nodes were named "test1 & test2" yet your command
used "test01". Do you have the nodename correct? The command should work if
you're using the correct cluster nodenames.

Regards,
John


"faf1967" <faf...@discussions.microsoft.com> wrote in message

news:F4216E3D-4697-43BE...@microsoft.com...

faf1967

unread,
Jun 16, 2006, 5:34:01 PM6/16/06
to
The names are correct. I must have fat fingered it when I did my post.

This is a test cluster. My actual production cluster has 8 nodes. If I want
to take a resource and move it to a specific node will i need to include the
node name?

John Toner [MVP]

unread,
Jun 17, 2006, 10:18:01 AM6/17/06
to
These commands should work on a 2-node cluster if you've got the names
correct.

Just to clarify, you should be attempting to move "Groups" to other nodes
and not "Resources". Moving resources will move the resource from one group
to another. Moving a group will move all the resources in that group from
one node to another.

Oh and if you can't figure out the command line, you could always use the
Cluster Administrator GUI. In CluAdmin when you have more than 2-nodes, it
will list all of the cluster nodes under the "Move Group" option as well as
listing the "best possible" option.

Regards,
John


"faf1967" <faf...@discussions.microsoft.com> wrote in message

news:6F417571-F336-4E5E...@microsoft.com...

faf1967

unread,
Jun 19, 2006, 9:46:02 AM6/19/06
to
Sorry, about the confusion but I am new to clustering. I know about the GUI
but I am one of those people who like using the command line as much as
possible.

This is what I have.
I have a 2 node cluster for testing only. (Testclust1 and testclust2 to make
it simple) I also have an 8 node cluster in production. The 8 node production
cluster has the following: Call them prod1, prod 2, prod 3, prod 4, prod 5,
prod 6, prod 7, prod 8. I have 12 groups has 4 profile groups, 4 print groups
and 4 file groups. Call them profile1, profile2, profile3¸and profile 4….
Print 1, Print 2, Print 3, and Print 4… file 1, file 2, file 3, and file 4.
Inside each group I have the resources.

This is what I am trying to do. Let’s say print1 group is located on prod1
and I want to move it to prod8 due to maintenance.
Is the command:
Cluster group “print1” /move prod8

Or

Cluster group “print1” /moveto prod8

John Toner [MVP]

unread,
Jun 19, 2006, 3:40:55 PM6/19/06
to
The command is:

cluster group "print1" /moveto:prod8

Regards,
John

"faf1967" <faf...@discussions.microsoft.com> wrote in message

news:0025A6FA-FFFD-4BE6...@microsoft.com...


> Sorry, about the confusion but I am new to clustering. I know about the
GUI
> but I am one of those people who like using the command line as much as
> possible.
>
> This is what I have.
> I have a 2 node cluster for testing only. (Testclust1 and testclust2 to
make
> it simple) I also have an 8 node cluster in production. The 8 node
production
> cluster has the following: Call them prod1, prod 2, prod 3, prod 4, prod
5,
> prod 6, prod 7, prod 8. I have 12 groups has 4 profile groups, 4 print
groups

> and 4 file groups. Call them profile1, profile2, profile3筠nd profile 4..
> Print 1, Print 2, Print 3, and Print 4. file 1, file 2, file 3, and file

faf1967

unread,
Jun 19, 2006, 3:54:01 PM6/19/06
to
Thanks to everyone for there help. I will test it out and post the results.
Also thank you for taking your time with me. I am still in the learning curve.

"John Toner [MVP]" wrote:

> The command is:
>
> cluster group "print1" /moveto:prod8
>
> Regards,
> John
>
> "faf1967" <faf...@discussions.microsoft.com> wrote in message
> news:0025A6FA-FFFD-4BE6...@microsoft.com...
> > Sorry, about the confusion but I am new to clustering. I know about the
> GUI
> > but I am one of those people who like using the command line as much as
> > possible.
> >
> > This is what I have.
> > I have a 2 node cluster for testing only. (Testclust1 and testclust2 to
> make
> > it simple) I also have an 8 node cluster in production. The 8 node
> production
> > cluster has the following: Call them prod1, prod 2, prod 3, prod 4, prod
> 5,
> > prod 6, prod 7, prod 8. I have 12 groups has 4 profile groups, 4 print
> groups

> > and 4 file groups. Call them profile1, profile2, profile3¸and profile 4..

faf1967

unread,
Jun 20, 2006, 12:16:02 PM6/20/06
to
One other question that I thought of...

We have multiple clusters in our enviroment. Do I need to run this command
on one of the servers in the cluster (where I plan to move the resource) or
can I run it from my local PC?

John Toner [MVP]

unread,
Jun 20, 2006, 12:51:45 PM6/20/06
to
The command I gave assumes you are running it on one of the cluster nodes.
If you wish to run the commands against remote clusters, you would need to
do the following:

cluster /cluster:CLUSTER-NAME group "print1" /moveto:prod8


FYI, if you issue a cluster.exe /? command, it should list all of this
information for you.

Regards,
John


"faf1967" <faf...@discussions.microsoft.com> wrote in message

news:E6CC7F8F-52A2-4638...@microsoft.com...

faf1967

unread,
Sep 13, 2006, 11:31:02 PM9/13/06
to
I finally got it to work. Thanks for your help. this will be very helpful
when moving resources. i will be able to schedule task and move resources
now. I will also be able to gather information about the cluster be able to
track it a lot easier.

tpatel

unread,
Apr 5, 2010, 4:28:24 PM4/5/10
to

Hi All,

I have question on same page. How do i move all group in one go to other
node? As we know in Sun cluster they have scswitch -S we can move all
resources. How do we do in MSCS?

In short, how do i add multiple group name in command line to cluster
group?

-Tarun


--
tpatel
------------------------------------------------------------------------
tpatel's Profile: http://forums.techarena.in/members/204724.htm
View this thread: http://forums.techarena.in/server-cluster/532231.htm

http://forums.techarena.in

0 new messages