HP StorageWorks X5500 Network Storage Gateway for Linux setup guide (AP811-96003, October 2009)

The cluster is now configured and HP X5500 Storage Gateway for Linux is running on nodeA. Repeat
the following set of commands to add the remaining nodes to the cluster and export the configuration
to them.
mx --matrix nodeA server add <nodename>
mx --matrix nodeA config export <nodename>
Now configure web management-based fencing on the nodes just added to the cluster. For each
node, specify the appropriate fencing information.
mx --matrix <nodename> config webfencing --ruser <user name> --vendor
<vendor> --mixedvendor yes|no --hostname <name>|--hostsuffix <suffix>
|--ipdelta <delta> [--type reset|shutdown] [--bladeslot <slot>]
[--sharedlogin yes|no] [--rpassword <password>]
Now start HP X5500 Storage Gateway for Linux on the servers:
mx --matrix nodeA server start <nodename>
The initial configuration of the cluster is complete.
Sample configuration script
The following example shows how a script can be used to configure the cluster. Although this is a
bash script, the same ideas apply to other scripting methods. Note the following in the sample script:
The values for the mx commands are specified in a file named cluster.conf.
The cluster specified by this script uses Fibre Channel switch-based fencing.
Some commands such as mx config protocol are not included in the script because the default
values for those commands will be used. Also note that mx config fcfencing does not need
to be specified because that is the default.
#!/bin/bash
if [ ! -f cluster.conf ]; then
echo "you need cluster.conf"
exit 1
fi
set -x
source cluster.conf
MX="mx --matrix ${MATRIX} --user ${USER} --password ${PASSWORD}"
# Configure cluster.
${MX} config loaddrivers || exit 1
${MX} config license ${LICENSE} || exit 1
${MX} config secret ${SECRET} || exit 1
${MX} config fcswitch --community ${COMMUNITY} ${SWITCHES} || exit 1
${MX} config mp set ${MP} || exit 1
# Export the config to all the other nodes and start them up.
${MX} server start ${MATRIX} || exit 1
for NODE in ${NODES}; do
${MX} server add ${NODE} || exit 1
${MX} config export ${NODE} || exit 1 done
The cluster.conf file defines the values for the commands in the script.
HP StorageWorks X5500 Network Storage Gateway for Linux setup guide 51