etc/scripts/rhq48-storage-patch/rhq48-storage-patch.sh | 42 +++++++++++++++--
1 file changed, 39 insertions(+), 3 deletions(-)
New commits:
commit 2409ed2dcd705c58e5024182e95445431b25acf5
Author: John Sanda <jsanda(a)redhat.com>
Date: Mon Jul 22 15:16:49 2013 -0400
document the 4.8 storage patch script
diff --git a/etc/scripts/rhq48-storage-patch/rhq48-storage-patch.sh
b/etc/scripts/rhq48-storage-patch/rhq48-storage-patch.sh
index 33984d1..ae78240 100755
--- a/etc/scripts/rhq48-storage-patch/rhq48-storage-patch.sh
+++ b/etc/scripts/rhq48-storage-patch/rhq48-storage-patch.sh
@@ -1,7 +1,43 @@
#!/bin/bash
+#
+# BACKGROUND:
+# This patch script needs to be run against RHQ 4.8.0 installations prior to
+# script. You do not need to run this script if upgrading from a version
+# earlier than 4.8.0.
+#
+# PREREQUISITES:
+# 1) Shut down the RHQ storage node and server.
+#
+# 2) Edit <rhq-install-dir>/rhq-storage/conf/cassandra.yaml and set the
+# following property,
+#
+# start_rpc: true
+#
+# 3) Note the value of rpc_port in cassandra.yaml. By default it is 9160 which
+# is fine.
+#
+# RUNNING THE PATCH:
+# 1) cd <patch-dir>
+#
+# 2) ./rhq48-storage-patch.sh <rhq-480-server-dir> <storage-ip-address>
<thrift-port> <jmx-port>
+#
+# 3) Carefully reivew the script output for any errors.
+#
+# 4) Edit cassandra.yaml against and reset start_rpc: false
+#
+# ADDITIONAL NOTES:
+# The <jmx-port> defaults to 7299. If you are uncertain of what value to use,
+# you can find it in the UI. Log into RHQ and go to Administration --> Storage Nodes.
+#
+# If you are uncertain of the value to use for the storage node IP address, you
+# find the correct valu in the storage nodes admin UI as well.
+#
+# EXAMPLE:
+# ./rhq48-storage-patch.sh /opt/rhq-4.8.0 127.0.0.1 9160 7299
+# Usage: ./rhq48-storage-patch.sh <rhq-480-server-dir> <storage-ip-address>
<thrift-port> <jmx-port>
function usage() {
- echo "Usage: $0 <rhq-server-dir> <storage-ip-address> <cql-port>
<jmx-port>"
+ echo "Usage: $0 <rhq-480-server-dir> <storage-ip-address>
<thrift-port> <jmx-port>"
}
if [ $# -ne 4 ]; then
@@ -16,11 +52,11 @@ fi
RHQ_SERVER_DIR=$1
CQL_HOSTNAME=$2
-CQL_PORT=$3
+THRIFT_PORT=$3
JMX_PORT=$4
export CQLSH_HOST=$2
-export CQL_PORT=$3
+export CQLSH_PORT=$3
PATCH="apache-cassandra-1.2.4-patch-1.jar"
Show replies by date