HP StorageWorks X5500 Network Storage Gateway for Linux setup guide (AP811-96003, October 2009)
C Configure the cluster from the command
line
HP X5500 Storage Gateway for Linux provides mx commands that can be used to create the initial
cluster configuration. These commands are equivalent to the Configure Cluster graphical user interface
described in Chapter 2 and can be used in configuration scripts. Be sure to review the description of
the Configure Cluster window (see “8. Configure the cluster” on page 23) to become familiar with
the actions performed by the mx commands.
NOTE:
Before configuring a cluster from the command line, steps 1 through 16 described in Setup
procedure, page 15, must be completed on each node.
Command sequence
When performing the initial configuration of a cluster, the commands must be entered in a specific
order. The following examples show the necessary sequences for Fibre Channel switch-based fencing
and web management-based fencing.
For more information about the mx commands used in these examples, see “Command
descriptions” on page 52.
Fibre Channel switch-based fencing
This example assumes the cluster will include four nodes: nodeA, nodeB, nodeC, and nodeD. The
commands are run from nodeA by a user having the appropriate HP X5500 Storage Gateway for
Linux permissions on that node.
IMPORTANT:
The mx config check command can be used between the steps of the sequence to validate the
configuration. It is especially important to run the command before issuing the start and export
commands. Be sure to correct any issues reported by the mx config check command before
continuing with the sequence.
The command sequence is:
mx --matrix nodeA config loaddrivers
mx --matrix nodeA config license <file name>
mx --matrix nodeA config secret <alphanumeric key>
mx --matrix nodeA config protocol [Multicast|Unicast]
mx --matrix nodeA config santype fc
mx --matrix nodeA config fcswitch [--community <string>] <switch> ...
HP StorageWorks X5500 Network Storage Gateway for Linux setup guide 49