The procedure for adding a slave server to a virtual environment is shown below.
Registering the Network Parameter and iSCSI Name Automatic Configuration Feature
Restarting the Virtual Machine
The procedure for installing a slave server is shown below.
Create the clone image of the first slave server (one that is already installed) from the virtual machine where it was built, and clone as many times as the number of slave servers to be installed.
Perform this action with root permissions unless otherwise indicated.
Note
The area where tasks are performed on the clone target virtual machines depends on the virtualization software.
Refer to "6.2 Installing to a Slave Server" for information on how to install the first additional slave server (the clone source slave server).
This section explains how to register the network parameter and iSCSI initiator name automatic configuration feature.
By setting the network parameters for the admin LAN, public LAN and iSCSI-LAN and the iSCSI initiator for the clone source virtual machine beforehand, it is possible to automatically set the slave server network and iSCSI initiator names when cloning.
Create the network parameter automatic configuration feature definition file (FJSVrcx.conf and ipaddr.conf).
Specify the admin LAN information for the slave server of the clone source in the FJSVrcx.conf definition file.
Specify the admin LAN, public LAN, and iSCSI-LAN information for all slave servers in the ipaddr.conf definition file.
Create the initiator.conf iSCSI initiator configuration file.
Specify the iSCSI initiator names corresponding to all slave servers that are clone targets.
Specify the IP address of the admin LAN of the slave servers which are clone sources, the FJSVrcx.conf, ipaddr.conf, and initiator.conf definition files and the -v option in the bdpp_prepareserver command.
# /opt/FJSVbdpp/bin/bdpp_prepareserver -m adminLanIpAddress -o FJSVrcx.confFile -i ipaddr.confFile -f initiator.confFile -v <Enter>
Example
The example that follows shows an ipaddr.conf network parameter automatic configuration file for the following configuration:
| :eth0 |
| :eth1 |
| :eth2, eth3 (redundancy added) |
NODE_NAME="slave1" <-- Slave server of the clone source IF_NAME0="eth0" IF_IPAD0="192.168.1.21" IF_MASK0="255.255.255.0" IF_NAME1="eth1" IF_IPAD1="10.10.10.21" IF_MASK1="255.255.255.0" IF_NAME2="eth2" IF_IPAD2="10.10.11.21" IF_MASK2="255.255.255.0" IF_NAME3="eth3" IF_IPAD3="10.10.12.21" IF_MASK3="255.255.255.0" NODE_NAME="slave2" <-- Slave server of the clone target IF_NAME0="eth0" IF_IPAD0="192.168.1.22" IF_MASK0="255.255.255.0" IF_NAME1="eth1" IF_IPAD1="10.10.10.22" IF_MASK1="255.255.255.0" IF_NAME2="eth2" IF_IPAD2="10.10.11.22" IF_MASK2="255.255.255.0" IF_NAME3="eth2" IF_IPAD3="10.10.12.22" IF_MASK3="255.255.255.0" NODE_NAME="slave3" <-- Slave server of the clone target IF_NAME0="eth0" IF_IPAD0="192.168.1.23" IF_MASK0="255.255.255.0" IF_NAME1="eth1" IF_IPAD1="10.10.10.23" IF_MASK1="255.255.255.0" IF_NAME2="eth2" IF_IPAD2="10.10.11.23" IF_MASK2="255.255.255.0" IF_NAME3="eth3" IF_IPAD3="10.10.12.23" IF_MASK3="255.255.255.0" :
See
Refer to "B.4 FJSVrcx.conf" and "B.5 ipaddr.conf" for information on the definition file used for network parameter automatic configuration.
Refer to "B.6 initiator.conf" for information on the iSCSI initiator configuration file.
Refer to "A.10 bdpp_prepareserver" for information on the bdpp_prepareserver command.
Clone virtual machines from the clone source slave server virtual machine as many times as the number of clone target slave servers.
See
Refer to the manuals for the virtualization software for information on how to clone virtual machines.
Start the slave server of the clone target and set a server name.
Change the HOSTNAME parameter in the /etc/sysconfig/network file to the server name of the slave server on the clone target.
Example
Cloning slave2 from the slave server slave1
Before setting:
HOSTNAME=slave1
After setting:
HOSTNAME=slave2
Point
In the HOSTNAME parameter, specify server name defined in the ipaddr.conf network parameter automatic configuration file specified in "6.3.2.2 Registering the Network Parameter and iSCSI Name Automatic Configuration Feature".
See
Refer to "5.7 Server Name Settings" for information on how to set server names.
Restart the slave server of the clone target.
See
Refer to the manuals for the virtualization software for information on how to start and restart virtual machines.