Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Linux-HA: Users

Question about crm_resource start/stop

 

 

Linux-HA users RSS feed   Index | Next | Previous | View Threaded


Alain.Moulle at bull

Jul 2, 2009, 7:58 AM

Post #1 of 2 (301 views)
Permalink
Question about crm_resource start/stop

//heartbeat-2.99.2-8.1 + pacemaker-1.0.4-23.1 //

Hi,
I'd like to find simple command to stop, start a resource.
The man of crm_resource gives :

Start/stop a resource
crm_resource -r my_first_ip -p target_role -v started

crm_resource -r my_first_ip -p target_role -v stopped

but it is not clear for me what are the "my_first_ip" and "target_role"
parameters and moreover where to retrieve them.

Moreover, for migrate, the man gives :
Migrating a resource to a specific location
crm_resource -M -r my_first_ip -H c001n02

so I tried in fact :
crm_resource -M -r <my-resource-name> -H <my hostname>

and it works !
But when I tried :

crm_resource -r <my-resource-name> -v stopped

it does not work, it does not stop the resource.


Thanks for help

Regards
Alain


_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems


Valentin.Vidic at CARNet

Jul 2, 2009, 8:02 AM

Post #2 of 2 (282 views)
Permalink
Re: Question about crm_resource start/stop [In reply to]

On Thu, Jul 02, 2009 at 04:58:32PM +0200, Alain.Moulle wrote:
> But when I tried :
>
> crm_resource -r <my-resource-name> -v stopped
>
> it does not work, it does not stop the resource.

Try: crm_resource -r <my-resource-name> -p target_role -v stopped

--
Valentin
_______________________________________________
Linux-HA mailing list
Linux-HA[at]lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Linux-HA users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.