Top
ETERNUS SF Storage Cruiser 14.0 User's Guidefor Virtual Storage Conductor

3.1.2 Environmental settings for each node

This section describes the environmental settings required for each admin server.


3.1.2.1 Modifying system configuration files

Communication between an admin server and a virtualization switch is performed using the Transmission Control Protocol (TCP) of Internet Protocol (IP). Therefore, you must modify the following system configuration files:

/etc/hosts file

Register the host name and IP address of Ethernet port for virtualization control of a virtualization switch in the /etc/hosts file.

A virtualization switch must have a host name beginning with "vsce" as the first four characters. This character string should be followed by a number from 1 to 128 in ascending order.

For a virtualization switch in a redundant LAN configuration, enter a representative IP address of Ethernet port for virtualization control specified for the virtualization switch.

Example

Example of coding in the /etc/hosts file

The following shows an example of coding in the /etc/hosts file for virtualization switches with IP addresses 192.168.1.2 and 192.168.1.3.

192.168.1.2    vsce1                  # VS900 Model 300 No.1
192.168.1.3    vsce2                  # VS900 Model 300 No.2

/etc/services file

In the /etc/services file, register a service name and a port number.

Register the following two services:

Service name

Port number

protocol

ssvscme

7420

tcp
udp

The service name cannot be changed.

Port number 7420 can be changed if already used for another service. When doing so, change the port number specified in "VSCE_PORT" in the configuration data file and that for the virtualization switch. Specify a unique port number in the entire system of servers and peripheral devices.

Example

Example of coding in the /etc/services file

The following shows an example of coding in the /etc/services file.

ssvscme         7420/tcp           # VSC Manager - VSC Engine(TCP)
ssvscme         7420/udp           # VSC Manager - VSC Engine(UDP)

3.1.2.2 Creating a configuration data file

Note that "/etc/opt/FJSVssmgr/current/FJSVssvsc.ini" is the configuration data file.

Also note that "/opt/FJSVssmgr/lib/sample/vsc/FJSVssvsc.ini.sample" contains samples of configuration data files.

#
# All Rights Reserved, Copyright (c) Fujitsu Ltd. 2004
#
# Storage Software Virtual Storage Conductor
#
# FJSVssvsc.ini: configuration file
#
########################################################

LOG_LEVEL=4

COPY_HISTORY_ROTATE_NUMBER=2

If no configuration data file is created, the default values are assumed specified for all settings in the system.

Note

Modifying a configuration data file

A configuration data file cannot be modified while the Manager is running. Be sure to stop the Manager before modifying the configuration data file.

You can modify a configuration data file as follows:


Coding format

Coding of a configuration data file is shown as follows:

Configuration items

The following table indicates the configuration item in a configuration data file.

Table 3.1 List of configuration items

Item

Item name

Outline of setting this item

Omission of item

LOG_LEVEL

Log level

Specifies the output level of a message.

Possible

COPY_HISTORY_ROTATE_NUMBER

Number of generations in the copy history

Specifies the number of generations retained in the copy history log file.

Possible


LOG_LEVEL

Specify the error type of messages to be output.

Messages are output via syslogd(1M). Therefore, the settings in /etc/syslog.conf determine whether messages are actually output and to what file messages are output. For information on how to make settings in /etc/syslog.conf, see syslog.conf(4).

If this item is omitted, messages with error type "ERR" are output.

Format

LOG_LEVEL={1 | 2 | 3 | 4}

Description of operands

1: Outputs messages for error type "ERR".

2: Outputs messages for error types "ERR" and "WARNING".

3: Outputs messages for error types "ERR", "WARNING", "NOTICE" and "INFO".

4: Outputs messages for error types "ERR", "WARNING", "NOTICE", "INFO" and "DEBUG".

COPY_HISTORY_ROTATE_NUMBER

Specifies the number of generations retained in the copy history log file.

The default number of generations is 2.

Format

COPY_HISTORY_ROTATE_NUMBER={2|3|4|5}

Description of operands

Specify a value ranging from 2 to 5.


3.1.2.3 Creating a commit script

When you perform an operation on VSC Manager to modify the configuration information of virtual storage, VSC Manager executes a program or script to create a backup or copy of the virtual storage configuration information. This program or script is called a "Commit Script".

If the virtual storage configuration information is lost due for some reason, no virtual disk can be supplied to a transaction server. Even in case of such unexpected trouble, you must restore the virtual storage configuration information to resume operation. A commit script is intended to create a backup or copy of the virtual storage configuration information in case of any unexpected trouble.

Create a commit script in "/etc/opt/FJSVssmgr/current/VscCommitScript" and give it an execution right.
Note that "/opt/FJSVssmgr/lib/sample/vsc/VscCommitScript.sample" contains samples of commit scripts.


Commit script sample

#!/bin/sh
#
# All Rights Reserved, Copyright (c) Fujitsu Ltd. 2004
#
# Storage Software Virtual Storage Conductor
#
# CommitScript Sample
#
########################################################
CURRENT_DIR=/var/opt/FJSVssmgr/current
BKUP_DIR=/var/opt/FJSVssmgr/current/vsclog/VSCCOMPOSE_BAK
COMPOSE_DIR=vsccompose

if [ ! -d $BKUP_DIR ]; then
        mkdir -p $BKUP_DIR
fi
if [ $? -eq 0 ]; then
        cd $CURRENT_DIR
        tar cf $BKUP_DIR/compose.BAK.tar ./$COMPOSE_DIR
        if [ $? -eq 0 ]; then
                echo "Backup Complete."
                exit 0
        fi
fi
echo "Backup failed."
exit 1

Notes

Precautions on use