PRIMECLUSTER Global File Services Configuration and Administration Guide 4.1 (Linux)
Contents Index PreviousNext

Chapter 10 File System Management> 10.4 Using the GFS Shared File System for RMS Cluster Operation

10.4.4 Setup procedure when the GFS Shared File System is to be used in the RMS cluster operation

This section explains the procedure through an example in the case of creating the GFS Shared File System used for the volume of GDS by RMS cluster employment from the state that a setup of CIP has completed.

For details on setting, see the "PRIMECLUSTER RMS Configuration and Administration Guide" and the "PRIMECLUSTER Global Disk Service Configuration and Administration Guide."

Procedure 1. Execution of automatic resource registration (common operation)

When automatic resource registration of disk equipment is not carried out yet, the following command is executed with a node, and a disk device is registered as a cluster resource.

# /etc/opt/FJSVcluster/bin/clautoconfig -r -n

Procedure 2. GDS volume creation (node A (active node), node B (standby node))

Create the GDS volume using the following method.

Note that a management partition exclusively for the GFS Shared File System must be prepared on the GFS Shared File System and a volume that differs from the disk class of the GDS volume that is to be used as the switchover file system must be allocated.

The following explanation assumes the node A (active node) host name to be sunny and the node B (standby node) host name to be moony.

[When a mirror volume is to be created]

sunny #sdxdisk -M -c class0001 -d sda=DISK1,sdb=DISK2 -a scope=sunny:moony, type=shared

sunny # sdxdisk -C -c class0001 -g grp0001 -d DISK1,DISK2

Note that a volume of at least 40 M byte is necessary for the management partition of the GFS Shared File System.

sunny # sdxvolume -M -c class0001 -g grp0001 -v GFSctl -s 81920
sunny # sdxvolume -M -c class0001 -g grp0001 -v volume0001 -s 17563648

moony # sdxvolume -N -c class0001 -v GFSctl
moony # sdxvolume -N -c class0001 -v volume0001

[When a single volume is to be created]

sunny # sdxdisk -M -c class0001 -d sda=DISK1:single -a scope=sunny:moony, type=shared

Note that a volume of at least 40 MB is necessary for the management partition of the GFS Shared File System.

sunny # sdxvolume -M -c class0001 -d DISK1 -v GFSctl -s 81920
sunny # sdxvolume -M -c class0001 -d DISK1 -v volume0001 -s 17563648

moony # sdxvolume -N -c class0001 -v GFSctl
moony # sdxvolume -N -c class0001 -v volume0001

Procedure 3. GFS Shared File System creation (node A (active node), node B (standby node))

Create the GFS Shared File System on either one of the nodes.

Use sfcmkfs(8) to create the GFS Shared File System.

Note that a management partition that is exclusively for the GFS Shared File System must be prepared on the GFS Shared File System and a volume that differs from the disk class of the GDS volume that is to be used as the switchover file system must be allocated.

When the GFS Shared File System is created for the first time after installation, activation of the GFS Shared File System is necessary before file system creation.

# sfcsetup -c /dev/sfdsk/class0001/rdsk/GFSctl

sunny # sfcsetup -a /dev/sfdsk/class0001/rdsk/GFSctl
moony # sfcsetup -a /dev/sfdsk/class0001/rdsk/GFSctl

sunny # sfcfrmstart
moony # sfcfrmstart

# sfcmkfs -o node=sunny,moony /dev/sfdsk/class0002/dsk/volume0001

Procedure 4. Adding the relevant GFS Shared File System to /etc/fstab (node A (active node), node B (standby node))

Add the mount information for the relevant GFS Shared File System to /etc/fstab on each node.

Be sure to specify "noauto" in the "mount options" field as a parameter of the mount information to be added.

/dev/sfdsk/class0001/dsk/volume0001 /sfcfs sfcfs rw,noauto 0 0

Procedure 5. Setting the definition of switchover of the RMS application as the RMS configuration (node A (active node), node B (standby node))

Set up the RMS configuration by using the RMS wizard, as follows:

  1. Start the RMS wizard by executing the hvw command.
  2. Create the RMS application.
  3. Create the RMS configuration definition of the RMS application.

    Select "Configuration-Generate" from the main RMS management menu.

  4. Activate the RMS configuration definition of the RMS application.

    Select "Configuration-Activate" on the main RMS management menu.

  5. End the RMS wizard.

In GFS Shared File System, the following measures are necessary in order to always use GDS volume by active state.

Procedure 6. Confirming settings (node A (active node), node B (standby node))

After mounting the GFS Shared File System on each node, start RMS and then confirm whether the settings of the /etc/fstab file and the RMS application are proper, paying attention to the following points:

If mounting of the GFS Shared File System fails, the following may be the cause of the failure:
Apply the indicated countermeasure:

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2004