Thanks again for the reply. The problem with this solution in my case is it loops through all drives and adds each of them to all subnets.
I need to be able to define individual drives for specific subnets. Not all the exports will need to be presented to all subnets. I.E.:
My use case is to add new exports (this is just one part of a larger script that also partitions drives, creates volume groups, logical volumes, etc) to the cluster for varying needs.
I'm still troubleshooting, the paired arrays look encouraging..
hello,
During the cluster installation, we are required to enter a cluster name. When this name is used?
I have a shared disk between those 2 nodes. To test NFS failover, what should I do?
PS: I am using VCS 5
thanks (5 Replies)
Hello
I have a directory structure with year in format 4 digits, e.g 2009, below which is month format 1 or 2 digits, e.g 1 or 12, blow which is day format 1 or 2 digits, e.g 1 or 31.
I want to change the names of lots of directories to the be
Year - 4 digits , e.g 2009 - No change here... (4 Replies)
Hello, I am new to the whole "scripting" thing. Below is the script that I have so far and where i need the Variables to go (VAR#)
#!/bin/bash
#Sample Script
VAR1=
echo "Choose an option: 1) Create a file. 2) Delete a file. 3) Move a file."
read VAR1
case $VAR1 in
1)
echo "Pick... (4 Replies)
Hi, I have a bunch of media files in a directory that have been converted (from MTS to MOV format), so my directory contains something like this:
clip1.mts
clip1.mov
clip2.mts
clip2.mov
The problem is that the .mov files that have been created have the timestamps of the conversion task,... (2 Replies)
Hi All,
Need your help to resolve below error in cluter.
Sep 9 05:37:30 node2 rgmanager: Starting disabled service service:Prod_Service
Sep 9 05:37:30 node2 rgmanager: HA LVM: Improper setup detected
Sep 9 05:37:30 node2 rgmanager: * initrd image needs to be newer than lvm.conf... (3 Replies)
I need a help of good people with effective bash script to mount nfs shared,
By the way I did the searches, since i haven't found that someone wrote a script like this in the past, I'm sure it will serve more people.
The scenario as follow:
An NFS Client with Daily CRON , running bash script... (4 Replies)
Hi Everybody,
I'm a newbie to shell scripting, and I'd appreciate some help. I have a bunch of .txt files that have some unwanted content. I want to remove lines 1-3 and 1028-1098.
#!/bin/bash
for '*.txt' in <path to folder>
do
sed '1,3 d' "$f";
sed '1028,1098 d' "$f";
done
I... (2 Replies)
I have 2 VM's setup with a shared VMware disk running RHEL 7.1 (just updated to 7.2 with yum update), and would like to know what is the easiest Fence device to implement for testing purposes. Apparently, I need a fence device before my IP resources will come online.
I have the cluster... (1 Reply)
Discussion started by: mrmurdock
1 Replies
LEARN ABOUT CENTOS
crm_attribute
PACEMAKER(8) System Administration Utilities PACEMAKER(8)NAME
Pacemaker - Part of the Pacemaker cluster resource manager
SYNOPSIS
crm_attribute command -n attribute [options]
DESCRIPTION
crm_attribute - Manage node's attributes and cluster options.
Allows node attributes and cluster options to be queried, modified and deleted.
OPTIONS
-?, --help
This text
-$, --version
Version information
-V, --verbose
Increase debug output
-q, --quiet
Print only the value on stdout
-n, --name=value
Name of the attribute/option to operate on
Commands:
-G, --query
Query the current value of the attribute/option
-v, --update=value
Update the value of the attribute/option
-D, --delete
Delete the attribute/option
Additional Options:
-N, --node=value
Set an attribute for the named node (instead of a cluster option). See also: -l
-t, --type=value
Which part of the configuration to update/delete/query the option in. Valid values: crm_config, rsc_defaults, op_defaults, tickets
-l, --lifetime=value
Lifetime of the node attribute. Valid values: reboot, forever
-z, --utilization
Set an utilization attribute for the node.
-s, --set-name=value
(Advanced) The attribute set in which to place the value
-i, --id=value
(Advanced) The ID used to identify the attribute
-d, --default=value
(Advanced) The default value to display if none is found in the configuration
EXAMPLES
Add a new attribute called 'location' with the value of 'office' for host 'myhost':
# crm_attribute --node myhost --name location --update office
Query the value of the 'location' node attribute for host myhost:
# crm_attribute --node myhost --name location --query
Change the value of the 'location' node attribute for host myhost:
# crm_attribute --node myhost --name location --update backoffice
Delete the 'location' node attribute for the host myhost:
# crm_attribute --node myhost --name location --delete
Query the value of the cluster-delay cluster option:
# crm_attribute --type crm_config --name cluster-delay --query
Query the value of the cluster-delay cluster option. Only print the value:
# crm_attribute --type crm_config --name cluster-delay --query --quiet
AUTHOR
Written by Andrew Beekhof
REPORTING BUGS
Report bugs to pacemaker@oss.clusterlabs.org
Pacemaker 1.1.10-29.el7 June 2014 PACEMAKER(8)