Re: [Pacemaker] Move DRBD master
Vadym Chepkov wrote: Hi, What is the crm shell command to move drbd master to a different node? # crm resource help migrate Migrate a resource to a different node. If node is left out, the resource is migrated by creating a constraint which prevents it from running on the current node. Additionally, you may specify a lifetime for the constraint---once it expires, the location constraint will no longer be active. Usage: ... migrate rsc [node] [lifetime] crm resource migrate ms_drbd_storage WARNING: Creating rsc_location constraint 'cli-standby-ms_drbd_storage' with a score of -INFINITY for resource ms_drbd_storage on cluster1. This will prevent ms_drbd_storage from running on cluster1 until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin This will be the case even if cluster1 is the last node in the cluster This message can be disabled with -Q This also made me to remind that I was wondering, is there a way to demote one instance of multi-master ms resource away from particular node (forcibly switch it to a slave state on that node). I didn't find the answer too. Is it possible with crm shell? Same as above, just specify the node in the command. Regards, Dan Thank you, Vadym ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker -- Dan FRINCU Systems Engineer CCNA, RHCE Streamwide Romania ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Move DRBD master
On Oct 19, 2010, at 3:13 AM, Dan Frincu wrote: Vadym Chepkov wrote: Hi, What is the crm shell command to move drbd master to a different node? # crm resource help migrate Migrate a resource to a different node. If node is left out, the resource is migrated by creating a constraint which prevents it from running on the current node. Additionally, you may specify a lifetime for the constraint---once it expires, the location constraint will no longer be active. Usage: ... migrate rsc [node] [lifetime] crm resource migrate ms_drbd_storage WARNING: Creating rsc_location constraint 'cli-standby-ms_drbd_storage' with a score of -INFINITY for resource ms_drbd_storage on cluster1. This will prevent ms_drbd_storage from running on cluster1 until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin This will be the case even if cluster1 is the last node in the cluster This message can be disabled with -Q This also made me to remind that I was wondering, is there a way to demote one instance of multi-master ms resource away from particular node (forcibly switch it to a slave state on that node). I didn't find the answer too. Is it possible with crm shell? Same as above, just specify the node in the command. Have you actually tried it? This command doesn't work for this case. Regards, Dan Thank you, Vadym ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker -- Dan FRINCU Systems Engineer CCNA, RHCE Streamwide Romania ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Move DRBD master
On Oct 19, 2010, at 3:42 AM, Pavlos Parissis wrote: On 19 October 2010 01:18, Vadym Chepkov vchep...@gmail.com wrote: Hi, What is the crm shell command to move drbd master to a different node? take a look at this http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg06300.html ___ Wow, not the friendliest command I would say. Maybe move command can be enhanced to provide something similar? Thanks, Vadym ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Move DRBD master
Vadym Chepkov wrote: On Oct 19, 2010, at 3:13 AM, Dan Frincu wrote: Vadym Chepkov wrote: Hi, What is the crm shell command to move drbd master to a different node? # crm resource help migrate Migrate a resource to a different node. If node is left out, the resource is migrated by creating a constraint which prevents it from running on the current node. Additionally, you may specify a lifetime for the constraint---once it expires, the location constraint will no longer be active. Usage: ... migrate rsc [node] [lifetime] crm resource migrate ms_drbd_storage WARNING: Creating rsc_location constraint 'cli-standby-ms_drbd_storage' with a score of -INFINITY for resource ms_drbd_storage on cluster1. This will prevent ms_drbd_storage from running on cluster1 until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin This will be the case even if cluster1 is the last node in the cluster This message can be disabled with -Q This also made me to remind that I was wondering, is there a way to demote one instance of multi-master ms resource away from particular node (forcibly switch it to a slave state on that node). I didn't find the answer too. Is it possible with crm shell? Same as above, just specify the node in the command. Have you actually tried it? This command doesn't work for this case. To be honest, no, I actually don't think it's viable since in a multi-master architecture you have a one-to-one relationship on the DRBD side. There's a thread related to this over on the DRBD mailing list, still no reply yet, might want to check it out over the next couple of days for progress. Regards, Dan Regards, Dan Thank you, Vadym ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker -- Dan FRINCU Systems Engineer CCNA, RHCE Streamwide Romania ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker -- Dan FRINCU Systems Engineer CCNA, RHCE Streamwide Romania ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Move DRBD master
Vadym Chepkov wrote: On Oct 19, 2010, at 3:42 AM, Pavlos Parissis wrote: On 19 October 2010 01:18, Vadym Chepkov vchep...@gmail.com mailto:vchep...@gmail.com wrote: Hi, What is the crm shell command to move drbd master to a different node? take a look at this http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg06300.html ___ Wow, not the friendliest command I would say. Maybe move command can be enhanced to provide something similar? Thanks, Vadym The _crm resource move/migrate rsc_ provides/creates the location constraint within the crm shell. In the example I gave: _crm resource migrate ms_drbd_storage_ /WARNING: Creating rsc_location constraint 'cli-standby-ms_drbd_storage' with a score of -INFINITY for resource ms_drbd_storage on cluster1. * This will prevent ms_drbd_storage from running on cluster1 until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin This will be the case even if cluster1 is the last node in the cluster * This message can be disabled with -Q / The warning message appears in the console after executing the command in the crm shell, running a crm configure show reveals the following: /location cli-standby-ms_drbd_storage ms_drbd_storage \ rule $id=cli-standby-rule-ms_drbd_storage -inf: #uname eq cluster1 / The example in the UEL above has been done manually to (probably) provide an advisory placement constraint, the one set by _crm resource move rsc_ is a mandatory placement constraint. Regards, Dan ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker -- Dan FRINCU Systems Engineer CCNA, RHCE Streamwide Romania ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Move DRBD master
On Oct 19, 2010, at 9:18 AM, Dan Frincu wrote: Vadym Chepkov wrote: On Oct 19, 2010, at 3:42 AM, Pavlos Parissis wrote: On 19 October 2010 01:18, Vadym Chepkov vchep...@gmail.com wrote: Hi, What is the crm shell command to move drbd master to a different node? take a look at this http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg06300.html ___ Wow, not the friendliest command I would say. Maybe move command can be enhanced to provide something similar? Thanks, Vadym The crm resource move/migrate rsc provides/creates the location constraint within the crm shell. In the example I gave: crm resource migrate ms_drbd_storage WARNING: Creating rsc_location constraint 'cli-standby-ms_drbd_storage' with a score of -INFINITY for resource ms_drbd_storage on cluster1. This will prevent ms_drbd_storage from running on cluster1 until the constraint is removed using the 'crm_resource -U' command or manually with cibadmin This will be the case even if cluster1 is the last node in the cluster This message can be disabled with -Q The warning message appears in the console after executing the command in the crm shell, running a crm configure show reveals the following: location cli-standby-ms_drbd_storage ms_drbd_storage \ rule $id=cli-standby-rule-ms_drbd_storage -inf: #uname eq cluster1 The example in the UEL above has been done manually to (probably) provide an advisory placement constraint, the one set by crm resource move rsc is a mandatory placement constraint. It misses $role=Master and doesn't work because of that. Vadym ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker
Re: [Pacemaker] Move DRBD master
19.10.2010 02:18, Vadym Chepkov wrote: Hi, What is the crm shell command to move drbd master to a different node? I didn't find it too. The only way to move ms resource I found is to move some other ordinary resource which is collocated with that ms (drbd) resource. But it remains unclear, how to move ms resource which doesn't have ordinary resources collocated with it (f.e. only other ms resources - a bit hypothetical case, but it probably could exist...). ___ Pacemaker mailing list: Pacemaker@oss.clusterlabs.org http://oss.clusterlabs.org/mailman/listinfo/pacemaker Project Home: http://www.clusterlabs.org Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf Bugs: http://developerbugs.linux-foundation.org/enter_bug.cgi?product=Pacemaker