10 More Discussions You Might Find Interesting
1. Linux
Hi all,
Please explain how do i. Migrate and backup a running lvm..!!
Thanks,
Sent from my LG-D802 using Tapatalk (3 Replies)
Discussion started by: lordkizzo
3 Replies
2. UNIX and Linux Applications
Just had a migration from Autosys 4.5 to R11.3.
After the migration to R11.3, Autosys jobs have been failing when the log file reaches a size of 800 MB.
This did not happen before the migration, when Autosys 4.5 was used.
Is there a way to configure the file size limit/cap in Autosys... (1 Reply)
Discussion started by: kimo222
1 Replies
3. Shell Programming and Scripting
I have a program which I can run on the command line like below and works fine
/nethome/chrisd/HSeis/TommyCD/TommyCD-1101/bin/raytrac vmod=npt10-z30.vmod srfile=jcdint.sc rcfile=jcdint.rc phases="SP FS" level=twop format="X T" dtau=0.1 mdacc=0.5 mindist=0.1 maxitertp=25 ray=npt10-z30.ry... (0 Replies)
Discussion started by: kristinu
0 Replies
4. UNIX for Dummies Questions & Answers
Hello
i'm trying to make a program which can find a running program on the system and kill it, then repeat that every 5 minutes. The name of the process is given with an argument. I have done this so far, but still not working.
if $1 in $(ps -e) ; then
kill $(pidof $1)
sleep 5m
fi (3 Replies)
Discussion started by: petel1
3 Replies
5. UNIX and Linux Applications
In mysql, I can get what I want from a database without having to log into mysql. works great for me and it is perfect.
now, i want to be able to do the same in oracle but I dont know how to.
For example, if i want to retrieve information from the mysql database from the command line, i issue... (4 Replies)
Discussion started by: SkySmart
4 Replies
6. Shell Programming and Scripting
Folks,
I'm really new to scripting and was wondering if you could help me out. I have the following script that I inherited:
#!/bin/bash
#
# Usage
# From the agent directory:
# ./run-any-agent AgentName
#
TAC_AGENT_HOME=`pwd`
LIB=${TAC_AGENT_HOME}/lib
CLASSPATH=.... (17 Replies)
Discussion started by: DTriniWay
17 Replies
7. AIX
Hi,
my requirement is to migrate easytrieve running on Z/OS to AIX platform.
can anyone let me know what changes should be made if we do such a migration. (0 Replies)
Discussion started by: rohit510
0 Replies
8. Programming
how can i run a program for a specified time?
i need to print a current time during program execution. (3 Replies)
Discussion started by: prosputko
3 Replies
9. UNIX for Dummies Questions & Answers
Hi.Iam new to Linux.i got linux 7.0 pro and dont know how to run programs. I want a perl interputer and i know i installed one but how do i run it ??? Also how do i run a C or C++ editor ?and how do i run cron ? (3 Replies)
Discussion started by: perleo
3 Replies
10. Shell Programming and Scripting
How can I make a program run automatically at a certain time of day?
My problem is I need to make a small backup program that will back up a few files every day? (3 Replies)
Discussion started by: jvadn0
3 Replies
CRM_RESOURCE(8) [FIXME: manual] CRM_RESOURCE(8)
NAME
crm_resource - interact with the Cluster Resource Manager
SYNOPSIS
crm_resource [-?|-V|-S] -L|-Q|-W|-D|-C|-P|-p [options]
DESCRIPTION
The crm_resource command performs various resource-related actions on the cluster. It can modify the definition of configured resources,
start and stop resources, and delete and migrate resources between nodes.
--help, -?
Print the help message.
--verbose, -V
Turn on debug information.
Note
Increase the level of verbosity by providing additional instances.
--quiet, -Q
Print only the value on stdout (for use with -W).
COMMANDS
--list, -L
List all resources.
--query-xml, -x
Query a resource.
Requires: -r
--locate, -W
Locate a resource.
Requires: -r
--migrate, -M
Migrate a resource from its current location.
Use -H to specify a destination.
If -H is not specified, the resource is forced to move by creating a rule for the current location and a score of -INFINITY.
Note
This prevents the resource from running on this node until the constraint is removed with -U.
Requires: -r, Optional: -H, -f
--un-migrate, -U
Remove all constraints created by -M
Requires: -r
--delete, -D
Delete a resource from the CIB.
Requires: -r, -t
--cleanup, -C
Delete a resource from the LRM.
Requires: -r. Optional: -H
--reprobe, -P
Recheck for resources started outside the CRM.
Optional: -H
--refresh, -R
Refresh the CIB from the LRM.
Optional: -H
--set-parameter string, -p string
Set the named parameter for a resource.
Requires: -r, -v. Optional: -i, -s
--get-parameter string, -g string
Get the named parameter for a resource.
Requires: -r. Optional: -i, -s
--delete-parameter string, -d string
Delete the named parameter for a resource.
Requires: -r. Optional: -i
--get-property string, -G string
Get the named property (such as class, type, or is_managed) of a resource.
Requires: -r
--set-property string, -S string
Set the named property (not parameter) for a resource.
Requires: -r, -t, -v
OPTIONS
--resource string, -r string
Specify the resource ID.
--resource-type string, -t string
Specify the resource type (primitive, clone, group, etc.).
--property-value string, -v string
Specify the property value.
--host-uname string, -H string
Specify the hostname.
--force-relocation, -f
Force the resource to move by creating a rule for the current location and a score of -INFINITY
This should be used if the resource's stickiness and constraint scores total more than INFINITY (currently 100,000).
Note
This prevents the resource from running on this node until the constraint is removed with -U.
-s string
(Advanced Use Only) Specify the ID of the instance_attributes object to change.
-i string
(Advanced Use Only) Specify the ID of the nvpair object to change or delete.
EXAMPLES
Listing all resources:
crm_resource -L
Checking where a resource is running (and if it is):
crm_resource -W -r my_first_ip
If the my_first_ip resource is running, the output of this command reveals the node on which it is running. If it is not running, the
output shows this.
Start or 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
Query the definition of a resource:
crm_resource -Q -r my_first_ip
Migrate a resource away from its current location:
crm_resource -M -r my_first_ip
Migrate a resource to a specific location:
crm_resource -M -r my_first_ip -H c001n02
Allow a resource to return to its normal location:
crm_resource -U -r my_first_ip
Note
The values of resource_stickiness and default_resource_stickiness may mean that it does not move back. In such cases, you should
use -M to move it back before running this command.
Delete a resource from the CRM:
crm_resource -D -r my_first_ip -t primitive
Delete a resource group from the CRM:
crm_resource -D -r my_first_group -t group
Disable resource management for a resource in the CRM:
crm_resource -p is_managed -r my_first_ip -t primitive -v off
Enable resource management for a resource in the CRM:
crm_resource -p is_managed -r my_first_ip -t primitive -v on
Reset a failed resource after having been manually cleaned up:
crm_resource -C -H c001n02 -r my_first_ip
Recheck all nodes for resources started outside the CRM:
crm_resource -P
Recheck one node for resources started outside the CRM:
crm_resource -P -H c001n02
FILES
/var/lib/heartbeat/crm/cib.xml--the CIB (minus status section) on disk. Editing this file directly is strongly discouraged.
SEE ALSO
???, ???, lrmadmin(8), heartbeat(8)
AUTHOR
crm_resource was written by Andrew Beekhof.
[FIXME: source] 07/05/2010 CRM_RESOURCE(8)