Skip to main content
Hitachi Vantara Knowledge

Configuration and pair management using CCI

You can use CCI commands to configure a global-active device system and manage GAD pairs.

Global-active device system configuration

The following illustration shows a completed GAD system configuration, which includes the following key components:

  • Host server connected to the primary and secondary storage systems with management software (alternate path or cluster or both, depending on the system configuration).
  • Primary and secondary storage systems at the primary and secondary sites. The following system components are configured on the storage systems:
    • The volumes that will become the primary and secondary volumes of GAD pairs
    • The GAD feature installed on the primary and secondary storage systems
    • A virtual storage machine on the secondary storage system. Virtual storage machines can be configured on both the primary and secondary storage systems, but in this sample system configuration only the secondary storage system has a virtual storage machine.
    • A resource group on the secondary storage system. Resource groups can be configured on both the primary and secondary storage systems, but in this sample configuration only the secondary storage system has a resource group.
    • An external volume group on each storage system for the quorum disk
    • Remote paths between the storage systems
    • A CCI command device on each storage system
  • External storage system with the quorum disk connected to both storage systems using Universal Volume Manager
GUID-8255FB0C-33A5-4AF6-B964-B348037EC90C-low.png

Primary storage system settings

The primary storage system components used in the procedures and examples in this chapter have the following settings.

Primary storage system

Model

Serial number

VSP 5000 series 11111*
* The serial number for the VSP G/F350, G/F370, G/F700, G/F900, VSP E990 is a six-digit number that begins with "4" (for example, 411111).
Primary volume

Actual LDEV ID

Capacity

Port attribute

Port name

LU number

22:22

1,024,000 blocks

Target

CL1-A

0

Ports for remote connections

Port name

Port attribute*

CL3-A

Bidirectional

CL4-A

Bidirectional

*You do not need to set the port attributes on VSP E990, VSP G/F350, G/F370, G/F700, G/F900 models.
External volume for the quorum disk

Actual LDEV ID

Port attribute

Port name

External volume group number

Path group ID

LU number

Quorum disk ID

99:99

Bidirectional

CL5-A

1-1

1

0

0

Pair

Pair type

Pair group name

Device name (LDEV ID)

Mirror ID

CTG ID

GAD

oraHA

dev1(22:22)

0

2

Secondary storage system settings

The secondary storage system components used in the procedures and examples in this chapter have the following settings.

Secondary storage system

Model

Serial number

VSP 5000 series

22222*

* The serial number for the VSP Gx00 models and VSP Fx00 models is a six-digit number that begins with "4" (for example, 422222).

Secondary volume

Actual LDEV ID

Capacity

Port attribute

Port name

LU number

44:44

1,024,000 blocks

Target

CL1-C

0

Ports for remote connections

Port name

Port attribute*

CL3-C

Bidirectional

CL4-C

Bidirectional

*You do not need to set the port attributes on VSP G/F350, G/F370, G/F700, G/F900 models, VSP E990.
External volume for the quorum disk

Actual LDEV ID

Port attribute

Port name

External volume group number

Path group ID

LU number

Quorum disk ID

88:88

Bidirectional

CL5-C

1-2

1

0

0

Resource group

Resource group name

Virtual storage machine

Model

Serial number

HAGroup1

VSP 5000 series

11111*

* The serial number for the VSP Gx00 models and VSP Fx00 models is a six-digit number that begins with "4" (for example, 411111).

Host group

Host group ID

Host group name

Usage

CL1-C-0

1C-G00

For the S-VOL

Pool volume

LDEV ID

Parity group

Capacity

77:77

13-4

100 GB

Pool

Pool ID

Pool name

Pool volume

0

HA_POOL

77:77

Pair

Pair type

Pair group name

Device name (LDEV ID)

Mirror ID

CTG ID

GAD

oraHA

dev1(44:44)

0

2

CCI server configuration

The CCI server configuration used in the procedures and examples in this chapter has the following settings.

CCI instances and configuration definition files

Instance number

Configuration definition files

Usage

0

horcm0.conf

For the operation of the primary storage system

1

horcm1.conf

For the operation of the secondary storage system

100

horcm100.conf

For the operation of the primary storage system from the viewpoint of the virtual storage machine (serial number: 11111)

101

horcm101.conf

For the operation of the secondary storage system from the viewpoint of the virtual storage machine (serial number: 11111)

For operations involving virtual storage machines, the parameters specified in the raidcom command and the objects displayed by the raidcom command are based on the virtual ID. In the procedures and examples in this chapter, there is no virtual storage machine defined in the primary storage system, but you can operate the primary storage system as if there is a virtual storage machine with the same serial number and model as the primary storage system.

External storage system settings

The external storage system used in the procedures and examples in this chapter has the following settings.

External storage system

Model

Serial number

VSP 5000 series

55555*

* The serial number for the VSP Gx00 models and VSP Fx00 models is a six-digit number that begins with "4" (for example, 433333).

WWN

Storage system at destination

WWN

Storage system at the primary site

50060e8008000140

Storage system at the secondary site

50060e8008000160

Initial state

The initial state before GAD configuration consists of one host, one primary storage system, and one secondary storage system.

  • Primary and secondary storage systems:
    • The GAD feature is installed on both storage systems.
    • Resource group 0 exists by default in both storage systems.
    • Dynamic Provisioning virtual volumes (DP-VOLs) are configured and have LU paths defined. These volumes will become the primary volumes of GAD pairs.
  • Host:
    • The required management software for your configuration, alternate path and /or cluster software, is installed.
    • The CCI software is installed.
    NoteThe creation of GAD pairs is not affected by the presence or absence of server I/O to the DP-VOLs.
GUID-203867AE-FA10-404D-8E72-CF3E1DE99AB9-low.png

Adding the external storage system for the quorum disk

Install an external storage system for the quorum disk. The storage system must be supported by Universal Volume Manager for connection as external storage.

If you use a disk in a server as the quorum disk or set no volume for the quorum disk, you do not need to install the external storage system.

Verifying the physical data paths

Make sure that the following physical data paths are connected and configured:

  • From the primary storage system to the secondary storage system: two or more paths
  • From the secondary storage system to the primary storage system: two or more paths
  • From the primary storage system to the external storage system: two or more paths
  • From the secondary storage system to the external storage system: two or more paths
  • From the host to the primary storage system: two or more paths
  • From the host to the secondary storage system: two or more paths

The following figure shows the physical data paths (redundant paths not shown). Although only one path is required for each location, it is important that you connect the storage systems using at least two physical paths. If you connect nodes using only one physical path, an unexpected failover might occur in the server, or the GAD pairs might be suspended, even though only one path or hardware failure has occurred. When maintenance is performed on the physical paths between storage systems, the GAD pairs must be suspended.

GUID-40E3D69E-CC6F-4EF6-8F78-CA735122080F-low.png

Creating command devices

A command device (CMD) is required on each storage system for communication between CCI and the storage system. The command device must be created in resource group 0 in the primary storage system and in the secondary storage system. After the command devices have been created, host recognition must be set to the command devices.

You can use HDvM - SN or the raidcom modify ldev command to create a command device.

GUID-0BCA2566-64D1-4DEA-AE9B-9B010FCC608D-low.png

Procedure

  1. Using Hitachi Command Suite, allocate a command device in Resource Group 0 in both storage systems and enable user authentication.

  2. If necessary, change the topology and fabric settings for the ports defined to the command devices.

  3. Define the volume to the port connected to the host.

Creating the configuration definition files

You must create four HORCM configuration definition files on the host for your GAD environment:

  • One that describes the primary storage system and P-VOLs
  • One that describes the secondary storage system and S-VOLs
  • One for operating the virtual storage machine (SN: 11111) on the primary storage system
  • One for operating the virtual storage machine (SN: 11111) on the secondary storage system

The configuration definition files for the examples follow. For details about creating CCI configuration definition files, see the Command Control Interface Installation and Configuration Guide. The examples show files on a Windows host.

When you specify a command device for HORCM_CMD, adding the serial number of the storage system and the LDEV number as shown is recommended.

HORCM file for the primary storage system: horcm0.conf
HORCM_MON
#ip_address        service         poll(10ms)     timeout(10ms)
localhost          31000           -1             3000

HORCM_CMD
\\.\CMD-511111-52735
HORCM file for the secondary storage system: horcm1.conf
HORCM_MON
#ip_address        service         poll(10ms)     timeout(10ms)
localhost          31001           -1             3000

HORCM_CMD
\\.\CMD-522222-52734
HORCM file for the virtual storage machine (SN: 11111) on the primary storage system: horcm100.conf
HORCM_MON
#ip_address        service        poll(10ms)      timeout(10ms)
localhost         31100          -1              3000
HORCM_CMD
\\.\CMD-511111-52735

HORCM_VCMD
# redefine Virtual DKC Serial# as unitIDs511111
511111
HORCM file for the virtual storage machine (SN: 11111) on the secondary storage system: horcm101.conf
HORCM_MON
#ip_address service poll(10ms) timeout(10ms)
localhost 31101 -1 3000
HORCM_CMD
\\.\CMD-522222-52734

HORCM_VCMD
# redefine Virtual DKC Serial# as unitIDs511111
511111

Starting CCI

After creating the CCI configuration definition files, you can start the CCI software. Because you are not yet operating the virtual storage machine, you only need to start instances (0 and 1). You do not yet need to start instances (100 and 101) for the virtual storage machine.

Procedure

  1. Start CCI instances 0 and 1.

    horcmstart 0 1
    starting HORCM inst 0
    HORCM inst 0 starts successfully.
    starting HORCM inst 1
    HORCM inst 1 starts successfully.
  2. Enter the user name and password, and perform user authentication.

    raidcom -login <username> <password> -IH0
    raidcom -login <username> <password> -IH1

Next steps

The -IH option in this example is used for each command to specify an instance. You can also perform the operation using a shell for each instance. To start the shell, specify an instance number to the environment variable HORCMINST, and then execute the command.

Connecting the primary and secondary storage systems

To connect the primary and secondary storage systems, you will first set the port attributes on both storage systems, physically connect the storage systems, and then add the remote paths between the storage systems.

Setting the port attributes (VSP 5000 series)

The Bidirectional port attributes must be set on the primary and secondary storage system ports for GAD command and data transfer. Specify the same path group ID for bidirectional remote connection.

GUID-F129CF5D-2DB3-4548-B8B7-0B706665C108-low.png

Procedure

  1. Change the attribute of port (CL3-A) on the primary storage system to Bidirectional.

    raidcom modify port -port CL3-A -port_attribute ALL -IH0
  2. Change the attribute of port (CL4-A) on the primary storage system to Bidirectional.

    raidcom modify port -port CL4-A -port_attribute ALL -IH0
  3. Change the attribute of port (CL3-C) on the secondary storage system to Bidirectional.

    raidcom modify port -port CL3-C -port_attribute ALL -IH1
  4. Change the attribute of port (CL4-C) on the secondary storage system to Bidirectional.

    raidcom modify port -port CL4-C -port_attribute ALL -IH1
  5. Use the same procedure to change the port attributes for the alternate paths. The alternate paths are not shown in the illustration.

Check command and output examples
  1. Display the port information for the primary storage system.
    raidcom get port -IH0
    PORT   TYPE  ATTR  SPD  LPID  FAB  CONN  SSW   SL   Serial#  WWN               PHY_PORT
    CL3-A FIBRE TAR AUT EF N FCAL N 0 511111 50060e8008000100 -
    CL3-A FIBRE MCU AUT EF N FCAL N 0 511111 50060e8008000100 -
    CL3-A FIBRE RCU AUT EF N FCAL N 0 511111 50060e8008000100 -
    CL3-A FIBRE ELUN AUT EF N FCAL N 0 511111 50060e8008000100 -
    CL4-A FIBRE TAR AUT E8 N FCAL N 0 511111 50060e8008000120 -
    CL4-A FIBRE MCU AUT E8 N FCAL N 0 511111 50060e8008000120 -
    CL4-A FIBRE RCU AUT E8 N FCAL N 0 511111 50060e8008000120 -
    CL4-A FIBRE ELUN AUT E8 N FCAL N 0 511111 50060e8008000120 -
  2. Display the port information for the secondary storage system. Confirm that the port attributes have been changed as intended.
    raidcom get port -IH1
    PORT   TYPE  ATTR  SPD  LPID  FAB  CONN  SSW   SL   Serial#  WWN               PHY_PORT
    CL3-C FIBRE TAR AUT EF N FCAL N 0 522222 50060e8008000200 -
    CL3-C FIBRE MCU AUT EF N FCAL N 0 522222 50060e8008000200 -
    CL3-C FIBRE RCU AUT EF N FCAL N 0 522222 50060e8008000200 -
    CL3-C FIBRE ELUN AUT EF N FCAL N 0 522222 50060e8008000200 -
    CL4-C FIBRE TAR AUT E8 N FCAL N 0 522222 50060e8008000220 -
    CL4-C FIBRE MCU AUT E8 N FCAL N 0 522222 50060e8008000220 -
    CL4-C FIBRE RCU AUT E8 N FCAL N 0 522222 50060e8008000220 -
    CL4-C FIBRE ELUN AUT E8 N FCAL N 0 522222 50060e8008000220 -
    (snip)

Adding remote connections

Add bidirectional remote connections between the primary and secondary storage systems. Specify the same path group ID to the bidirectional remote connections.

GUID-1070F07C-1209-4D99-9A16-F789D043AF55-low.png
Note
  • When the remote storage system is VSP 5000 series, specify 5 + serial number (6 digits in total) in CCI, or specify the serial number only (5 digits in total) in Device Manager - Storage Navigator.
  • When the remote storage system is VSP G1x00 or VSP F1500, specify 3 + serial number (6 digits in total) in CCI, or specify the serial number only (5 digits in total) in Device Manager - Storage Navigator.
  • To specify VSP 5000 series , enter R900 .
  • VSP 5000 series is displayed as R9 in command output.
  • To specify VSP G/F350, G/F370, G/F700, G/F900, VSP E990, enter M800.
  • VSP G/F350, G/F370, G/F700, G/F900, VSP E990 are displayed as M8 in command output.

Procedure

  1. Add a remote connection with path group ID 0 from primary storage system port (CL3-A) to secondary storage system port (CL3-C).

    raidcom add rcu -cu_free 522222 R900 0 -mcu_port CL3-A -rcu_port CL3-C -IH0
  2. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH0
    HANDLE   SSB1    SSB2    ERR_CNT      Serial#   Description
    00c3        -       -          0       511111   -
  3. Add a remote connection with path group ID 0 from secondary storage system port (CL4-C) to primary storage system port (CL4-A).

    raidcom add rcu -cu_free 511111 R900 0 -mcu_port CL4-C -rcu_port CL4-A -IH0
  4. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH1
    HANDLE   SSB1    SSB2    ERR_CNT      Serial#   Description
    00c3        -       -          0       522222   -
  5. Add the alternate paths between the storage systems using the raidcom add rcu_path command. These alternate paths are not shown in the illustration.

Check command and output examples

On the primary storage system, display remote connection information.

raidcom get rcu -cu_free 522222 R900 0 -IH0
Serial# ID  PID  MCU RCU  M/R T  PNO  MPORT  RPORT  STS_CD  SSIDs ...
 522222 R9    0    -   -  RCU F    0  CL3-A  CL3-C  NML_01  -

On the secondary storage system, display the remote connection information, and confirm that the serial number, model, and port name of the storage system are correct and that the path status is normal.

raidcom get rcu -cu_free 511111 R900 0 -IH1
Serial# ID  PID  MCU RCU  M/R T  PNO  MPORT  RPORT  STS_CD  SSIDs ...
 511111 R9    0    -   -  RCU F    0  CL4-C  CL4-A  NML_01  -

Creating the quorum disk

When a failure occurs, the quorum disk is used by the primary and secondary storage systems to determine which pair volume contained the latest data when the failure occurred.

This section provides instructions for setting up the quorum disk. You will map the disk on the external storage system to the primary and secondary storage systems. Make sure the external volume is formatted before proceeding. You should be familiar with Universal Volume Manager to set up the quorum disk.

An external volume for a quorum disk must be mapped to one external volume group.

Before creating a quorum disk, confirm that the volume in the external storage system is formatted.

If you do not set a volume for the quorum disk, you do not need to create ports for quorum disk paths, an external volume group, and an external volume. For details, see Setting external volumes as quorum disks.

Setting the port attributes for connecting the external storage system

This section provides instructions for setting the ports on the primary and secondary storage systems (VSP 5000 series) to the "Bidirectional" attribute in preparation for connecting to the external storage system.

GUID-894E5408-47DE-40DF-88D3-4D41D8974225-low.png

Procedure

  1. Change the attribute of the port (CL5-A) on the primary storage system to Bidirectional.

    raidcom modify port -port CL5-A -port_attribute ALL -IH0
  2. Change the attribute of the port (CL5-C) on the secondary storage system to Bidirectional.

    raidcom modify port -port CL5-C -port_attribute ALL -IH1
Check command and output examples

Display port information for the primary storage system.

raidcom get port -IH0
PORT   TYPE  ATTR   SPD  LPID  FAB  CONN  SSW   SL   Serial#  WWN               PHY_PORT
CL5-A FIBRE TAR AUT EF N FCAL N 0 511111 50060e8008000180 -
CL5-A FIBRE MCU AUT EF N FCAL N 0 511111 50060e8008000180 -
CL5-A FIBRE RCU AUT EF N FCAL N 0 511111 50060e8008000180 -
CL5-A FIBRE ELUN AUT EF N FCAL N 0 511111 50060e8008000180 -
(snip)

Display the port information for the secondary storage system. Confirm that the port attributes have been changed as intended.

raidcom get port -IH1
PORT   TYPE  ATTR   SPD  LPID  FAB  CONN  SSW   SL   Serial#  WWN               PHY_PORT
CL5-C FIBRE TAR AUT EF N FCAL N 0 522222 50060e8008000240 -
CL5-C FIBRE MCU AUT EF N FCAL N 0 522222 50060e8008000240 -
CL5-C FIBRE RCU AUT EF N FCAL N 0 522222 50060e8008000240 -
CL5-C FIBRE ELUN AUT EF N FCAL N 0 522222 50060e8008000240 -
(snip)

Creating external volume groups

Create external volume groups for the quorum disk to map the disk on the external storage system to the primary and secondary storage systems.

  • Verify that the volumes in the external storage system are formatted.
  • Use the raidcom discover lun -port command to verify that the same E_VOL_ID_C value (volume identifier included in the SCSI Inquiry command of the external volume) is displayed for the primary and secondary storage systems.

For details about creating external volume groups, see the Hitachi Universal Volume Manager User Guide.

GUID-2F8B4E1C-ACFA-4260-9D7E-D43CF8E8B330-low.png

Procedure

  1. Search for information about the external storage system port that is connected to port (CL5-A) on the primary storage system.

    raidcom discover external_storage -port CL5-A -IH0
    PORT   WWN               PM  USED  Serial#  VENDOR_ID PRODUCT_ID
    CL5-A  50060e8008000140  M   NO    55555    HITACHI VSP 5000 series 
  2. Display the LU that is defined to external storage system port (50060e8008000140) that is connected to primary storage system port (CL5-A). Check the LU number, and note the value shown in the E_VOL_ID_C field.

    raidcom discover lun -port CL5-A -external_wwn 50060e8008000140 -IH0
    PORT   WWN              LUN  VOL_Cap(BLK)  PRODUCT_ID  E_VOL_ID_C
    CL5-A  50060e8008000140   0      61440000  OPEN-V      HITACHI 500308235AAAA
  3. Map the LU (0) that is defined to the external storage system port (50060e8008000140) that is connected to the primary storage system port (CL5-A). Specify 1 for the path group ID, and specify 1-1 for the external volume group number.

    raidcom add external_grp -path_grp 1 -external_grp_id 1-1 
    -port CL5-A -external_wwn 50060e8008000140 -lun_id 0 -IH0
  4. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH0
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         511111     -
  5. Search for information about the external storage system port that is connected to port (CL5-C) on the secondary storage system.

    raidcom discover external_storage -port CL5-C -IH0
    PORT     WWN                PM  USED   Serial#  VENDOR_ID PRODUCT_ID
    CL5-C    50060e8008000160   M   NO     55555    HITACHI VSP 5000 series   
  6. Display the LU that is defined to external storage system port (50060e8008000160) that is connected to secondary storage system port (CL5-C). Check the LU number, and confirm that the E_VOL_ID_C field displays the same value as in step 2.

    raidcom discover lun -port CL5-C -external_wwn 50060e8008000160 -IH0
    PORT     WWN              LUN  VOL_Cap(BLK)  PRODUCT_ID  E_VOL_ID_C
    CL5-C    50060e8008000160   0      61440000  OPEN-V      HITACHI 500308235AAAA
  7. Map the LU (0) that is defined to external storage system port (50060e8008000160) that is connected to secondary storage system port (CL5-C). Specify 1 for the path group ID, and specify 1-2 for the external volume group number.

    raidcom add external_grp -path_grp 1 -external_grp_id 1-1 -port CL5-C 
    -external_wwn 50060e8008000160 -lun_id 0 -IH0
  8. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH0
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         522222     -
Check command and output examples
  1. On the primary storage system, display information about the external path to the volume in the external storage system.
    raidcom get path -path_grp 1 -IH0
    PHG GROUP STS CM IF MP# PORT   WWN                 PR LUN PHS  Serial# PRODUCT_ID LB PM DM
      1 1-1   NML E  D    0 CL5-A  50060e8008000140     1   0 NML    55555 VSP 5000 series  N  M D
  2. On the secondary storage system, display information about the external path to the volume in the external storage system. Confirm that the external storage system information is correct, including serial number, model, and WWN, and confirm that the path status and volume status are normal.
    raidcom get path -path_grp 1 -IH1
    PHG GROUP STS CM IF MP# PORT   WWN                 PR LUN PHS  Serial# PRODUCT_ID LB PM DM
      1 1-1   NML E  D    0 CL5-C  50060e8008000160     1   0 NML    55555 VSP 5000 series  N  M D

Creating external volumes

Using capacity in the external storage system, you will create virtual external volumes on the primary and secondary storage systems that will be mapped to the quorum disk.

GUID-CB235E32-5F07-43BD-BB6D-CA82520C8970-low.png

Procedure

  1. Specify external volume group (1-1) assigned to the primary storage system to create an external volume whose LDEV ID is 0x9999. Allocate all capacity in the external volume group.

    raidcom add ldev -external_grp_id 1-1 -ldev_id 0x9999 -capacity all -IH0
  2. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH0
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         511111     -
  3. Specify external volume group (1-2) assigned to the secondary storage system to create an external volume whose LDEV ID is 0x8888. Allocate all free space in the external volume group.

    raidcom add ldev -external_grp_id 1-2 -ldev_id 0x8888 -capacity all -IH1
  4. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH1
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         522222     -
Check command and output examples

Display information about the volume (LDEV ID: 0x9999).

raidcom get ldev -ldev_id 0x9999 -fx -IH0
Serial#  : 511111
LDEV : 9999
SL : 0
CL : 0
VOL_TYPE : OPEN-V-CVS
VOL_Capacity(BLK) : 61440000
NUM_PORT : 0
PORTs :
F_POOLID : NONE
VOL_ATTR : CVS : ELUN :
CMP : -
EXP_SPACE : -
E_VendorID : HITACHI
E_ProductID : OPEN-V
E_VOLID :
484954414348492035303530303030313036303000000000000000000000000000000000
E_VOLID_C : HITACHI 500308235AAAA................
NUM_E_PORT : 1
E_PORTs : CL5-A-0 0 50060e8008000140
LDEV_NAMING :
STS : NML
OPE_TYPE : NONE
OPE_RATE : 100
MP# : 0
SSID : 0007
RSGID : 0

Display the information about the volume (LDEV ID: 0x8888). Confirm that the information about the external volume is correct.

raidcom get ldev -ldev_id 0x8888 -fx -IH1
Serial#  : 522222
LDEV : 8888
SL : 0
CL : 0
VOL_TYPE : OPEN-V-CVS
VOL_Capacity(BLK) : 61440000
NUM_PORT : 0
PORTs :
F_POOLID : NONE
VOL_ATTR : CVS : ELUN :
CMP : -
EXP_SPACE : -
E_VendorID : HITACHI
E_ProductID : OPEN-V
E_VOLID :
484954414348492035303530303030313036303000000000000000000000000000000000
E_VOLID_C : HITACHI 500308235AAAA................
NUM_E_PORT : 1
E_PORTs : CL5-A-0 0 50060e8008000160
LDEV_NAMING :
STS : NML
OPE_TYPE : NONE
OPE_RATE : 100
MP# : 0
SSID : 0007
RSGID : 0

Setting external volumes as quorum disks

This section provides instructions for setting the virtualized external volumes in the primary and secondary storage systems as quorum disks. If you do not set a volume for the quorum disk, select Add Quorum Disk without LDEV to set the quorum disk. The same quorum disk ID must be set to the primary and secondary storage systems.

The serial number and model of the paired storage system is specified for the -quorum_enable option of the raidcom modify ldev command.

GUID-875349CF-EC29-41ED-B864-AC9C766CDC82-low.png
Note
  • When specifying the serial number for VSP 5000 series using CCI, add a “5” at the beginning of the serial number. For example, for serial number 11111, enter 511111. In the same way, for VSP G1x00 and VSP F1500, add a "3" at the beginning of the serial number.
  • To specify VSP 5000 series , enter R900 .
  • VSP 5000 series is displayed as R9 in command output.
  • To specify VSP G/F350, G/F370, G/F700, G/F900, VSP E990, enter M800.
  • VSP G/F350, G/F370, G/F700, G/F900, VSP E990 are displayed as M8 in command output.

Procedure

  1. Specify 0 to the quorum disk ID to set the volume (0x9999) in the primary storage system (serial number 22222, model VSP 5100) as a quorum disk. Specify the storage system's serial number and model.

    Use the raidcom modify ldev or raidcom add quorum command. If you do not set a volume for the quorum disk, use the raidcom add quorum command.
    raidcom modify ldev -ldev_id 0x9999 -quorum_enable 522222 R900 -quorum_id 0 -IH0
  2. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH0
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         511111     -
  3. Specify 0 to the quorum disk ID to set the volume (0x8888) in the secondary storage system (serial number 11111, model: VSP 5100) as a quorum disk. Specify the storage system's serial number and model.

    Use the raidcom modify ldev or raidcom add quorum command. If you do not set a volume for the quorum disk, use the raidcom add quorum command.
    raidcom modify ldev -ldev_id 0x8888 -quorum_enable 511111 R900 -quorum_id 0 -IH1
  4. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH1
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         522222     -
Check command and output examples

Display the information about the volume (LDEV ID: 0x9999). Use the raidcom get ldev or raidcom get quorum command. If you do not set a volume for the quorum disk, use the raidcom get quorum command.

raidcom get ldev -ldev_id 0x9999 -fx -IH0
Serial#  : 511111
LDEV : 9999
SL : 0
CL : 0
VOL_TYPE : OPEN-V-CVS
VOL_Capacity(BLK) : 61440000
NUM_PORT : 0
PORTs :
F_POOLID : NONE
VOL_ATTR : CVS : ELUN : QRD
CMP : -
EXP_SPACE : -
E_VendorID : HITACHI
E_ProductID : OPEN-V
E_VOLID :
484954414348492035303530303030313036303000000000000000000000000000000000
E_VOLID_C : HITACHI 500308235AAAA................
NUM_E_PORT : 1
E_PORTs : CL5-A-0 0 50060e8008000140
LDEV_NAMING :
STS : NML
OPE_TYPE : NONE
OPE_RATE : 100
MP# : 0
SSID : 0007
QRDID : 0
QRP_Serial# : 522222
QRP_ID : R9
ALUA : Disable
RSGID : 0
PWSV_S : -
CL_MIG : N

Display the information about volume (LDEV ID: 0x8888). Use the raidcom get ldev or raidcom get quorum command. If you do not set a volume for the quorum disk, use the raidcom get quorum command. Confirm that the following values are correct:

  • QRDID (quorum disk ID)
  • QRP_Serial# (serial number of the storage system that forms a GAD pair)
  • QRP_ID (model of the storage system that forms a GAD pair)
raidcom get ldev -ldev_id 0x8888 -fx -IH1
Serial#  : 522222
LDEV : 8888
SL : 0
CL : 0
VOL_TYPE : OPEN-V-CVS
VOL_Capacity(BLK) : 61440000
NUM_PORT : 0
PORTs :
F_POOLID : NONE
VOL_ATTR : CVS : ELUN : QRD
CMP : -
EXP_SPACE : -
E_VendorID : HITACHI
E_ProductID : OPEN-V
E_VOLID :
484954414348492035303530303030313036303000000000000000000000000000000000
E_VOLID_C : HITACHI 500308235AAAA................
NUM_E_PORT : 1
E_PORTs : CL5-A-0 0 50060e8008000160
LDEV_NAMING :
STS : NML
OPE_TYPE : NONE
OPE_RATE : 100
MP# : 0
SSID : 0007
QRDID : 0
QRP_Serial# : 511111
QRP_ID : R9
ALUA : Disable
RSGID : 0
PWSV_S : -
CL_MIG : N

Setting up the secondary storage system

This section provides instructions for creating a virtual storage machine (VSM) in the secondary storage system and configuring it for GAD pair operations.

To create a virtual storage machine, you add resources such as host group IDs and LDEV IDs to a resource group that is created for the virtual storage machine. You can also reserve the host group and the volume ID by only adding them to the resource group. Create a host group and a volume (actual volume) by specifying the reserved IDs so that the host group and the volume can be used on a GAD pair.

The following procedures describe how to create a GAD environment. If appropriate, you can use existing storage system resources, for example, Dynamic Provisioning pools and DP-VOLs that have already been created.

Creating a resource group (P-VOL not registered to a VSM)

When GAD setup is complete, the host sees the P-VOL and S-VOL of each pair as a single volume in a single storage system. Resource groups are created in the secondary storage system using the primary storage system's serial number and model as virtual information, so that the P-VOL and S-VOL of each pair share the same virtual storage machine information.

A virtual storage machine is composed of multiple resource groups that have the same virtual information. When you create a resource group and specify the virtual serial number and model, the resource group is registered in the virtual storage machine. If the virtual storage machine does not already exist in the storage system, it is created automatically when the resource group is created. The following illustration shows the creation of a resource group when the P-VOL is not already registered to a virtual storage machine.

GUID-48337F86-6929-49F9-8981-3C567C3DACDE-low.png
Note
  • To specify VSP 5100 or VSP 5500, enter R900F.
  • To specify VSP 5100H or VSP 5500H, enter R900G.
  • VSP 5100 and VSP 5500 are displayed as R9F in command output.
  • VSP 5100H and VSP 5500H are displayed as R9G in command output.
  • To specify VSP G350, enter M850S1.
  • To specify VSP G370, enter M850S2.
  • To specify VSP G700, enter M850M3.
  • To specify VSP G900, enter M850H.
  • To specify VSP F350, enter M850S1F.
  • To specify VSP F370, enter M850S2F.
  • To specify VSP F700, enter M850M3F.
  • To specify VSP F900, enter M850HF.
  • To specify VSP E990, enter M900H.
  • VSP G350 is displayed as M850S1 in command output.
  • VSP G370 is displayed as M850S2 in command output.
  • VSP G700 is displayed as M850M3 in command output.
  • VSP G900 is displayed as M850H in command output.
  • VSP F350 is displayed as M850S1F in command output.
  • VSP F370 is displayed as M850S2F in command output.
  • VSP F700 is displayed as M850M3F in command output.
  • VSP F900 is displayed as M850HF in command output.
  • VSP E990 is displayed as M9H in command output.
Procedure

Specify the primary storage system's serial number and model for the virtual storage machine you are creating on the secondary storage system.

raidcom add resource -resource_name HAGroup1 -virtual_type 511111 R900F -IH1
Check command and output examples

Display the information about the resource groups of the secondary storage system. Information about all resource groups is displayed. Confirm the resource group name, resource group ID, virtual serial number, and virtual model.

raidcom get resource -key opt -IH1
RS_GROUP            RGID   V_Serial#  V_ID   V_IF    Serial#
meta_resource          0      522222  R9F     Y        522222
HAGroup1               1      511111  R9F     Y        522222
NoteIf you need to delete the virtual information set to the resource group, you must delete the resource group:
raidcom delete resource -resource_name HAGroup1 -IH1

Creating a resource group (P-VOL registered to a VSM)

You can create GAD pairs using volumes in virtual storage machines. When you want to create a GAD pair using volumes in VSMs, the VSM for the volume in the secondary site must have the same model and serial number as the VSM for the volume in the primary site.

GUID-7C6731D3-B985-40AF-BB7C-FC314BD272A3-low.png
Note
  • When specifying the serial number for VSP 5000 series using CCI, add a “5” at the beginning of the serial number. For example, for serial number 11111, enter 511111.
  • To specify VSP 5100 or VSP 5500, enter R900F.
  • To specify VSP 5100H or VSP 5500H, enter R900G.
  • To specify VSP, enter R700.
  • To specify VSP G350, enter M850S1.
  • To specify VSP G370, enter M850S2.
  • To specify VSP G700, enter M850M3.
  • To specify VSP G900, enter M850H.
  • To specify VSP F350, enter M850S1F.
  • To specify VSP F370, enter M850S2F.
  • To specify VSP F700, enter M850M3F.
  • To specify VSP F900, enter M850HF.
  • To specify VSP E990, enter M900H.
  • To specify HUS VM, enter M700.
Procedure

Specify the serial number and model of the virtual storage machine to which the P-VOL is registered for the virtual storage machine you are creating on the secondary storage system. Command for the sample configuration shown above:

raidcom add resource -resource_name HAGroup1 -virtual_type 55555 R900F -IH1

Reserving a host group ID

In the secondary storage system's resource group, you must reserve a host group ID to be used by the S-VOL.

GUID-B3E4C510-3B09-4400-8625-EA369EBFBDF0-low.png
Procedure

Reserve a host group ID (CL1-C-1) in resource group (HAGroup1).

raidcom add resource -resource_name HAGroup1 -port CL1-C-1 -IH1
Check command and output examples

Display information about the host group that is set to port (CL1-C). Confirm that the port name, host group ID, and host group name are correct.

raidcom get host_grp -port CL1-C -resource 1 -IH1
PORT   GID  GROUP_NAME                       Serial# HMD          HMO_BITs
CL1-C    0  1C-G00                            522222 WIN
NoteIf you reserve a host group for which no actual volume is defined in the resource group, specifying the -key host_grp option for the check command allows you to display the reserved host group. The following example shows the result of executing the check command.
raidcom get host_grp -port CL1-C -key host_grp -resource 1 -IH1
PORT   GID  GROUP_NAME                       Serial# HMD          HMO_BITs
CL1-C    0  1C-G00                            522222 WIN
CL1-C    1  HAVol                             522222 WIN
CL1-C    2  -                                 522222 -
CL1-C    3  -                                 522222 -
CL1-C    4  -                                 522222 -
CL1-C    5  -                                 522222 -

As shown in this example, the host groups with host group ID 0 to 5 are reserved in resource group 1. Actual volumes are defined for the host groups with host group ID 0 and 1. The host groups with host group ID 2 to 5 are reserved in the resource group, but actual volumes are not defined for them. The host groups with host group ID 6 to 254 are not displayed, because they are not reserved in resource group 1.

Deleting the virtual LDEV ID of the S-VOL

Delete temporarily the virtual LDEV ID of the volume to be added to the virtual storage machine.

GUID-8D60B34E-C18F-40CC-BE3B-28740EA3B7E2-low.png
Procedure

Delete the virtual LDEV ID of the volume (0x4444).

raidcom unmap resource -ldev_id 0x4444 -virtual_ldev_id 0x4444 -IH1
Check command and output examples

Display information about the volume (LDEV ID: 0x4444). For the volume whose virtual LDEV ID was deleted, fffe is displayed for VIR_LDEV (virtual LDEV ID).

raidcom get ldev -ldev_id 0x4444 -fx -IH1
Serial#  : 522222
LDEV : 4444 VIR_LDEV : fffe
SL : -
CL : -
VOL_TYPE : NOT DEFINED
SSID : -
RSGID : 0
NoteIf you need to reconfigure a deleted virtual LDEV ID, use the raidcom map resource command (example: raidcom map resource -ldev_id 0x4444 -virtual_ldev_id 0x4444 -IH1). The default virtual LDEV ID is the same as the actual LDEV ID. After reconfiguring the virtual LDEV ID, use the check command to confirm that the virtual LDEV ID is the same as the actual LDEV ID.

Reserving an LDEV ID for the S-VOL

In the newly created resource group, you will reserve an LDEV ID so that the volume is available to become the target volume of a global-active device pair.

GUID-0C2F7390-0F51-4399-9B28-5CE6F8617063-low.png
Procedure

Reserve the LDEV ID (0x4444) in the resource group (HAGroup1).

raidcom add resource -resource_name HAGroup1 -ldev_id 0x4444 -IH1
Check command and output examples

Display the information about volume (LDEV ID: 0x4444). Confirm that the number of the resource group in which the LDEV ID was reserved is displayed for RSGID.

raidcom get ldev -ldev_id 0x4444 -fx -IH1
Serial#  : 522222
LDEV : 4444 VIR_LDEV : fffe
SL : -
CL : -
VOL_TYPE : NOT DEFINED
SSID : -
RSGID : 1

Setting the GAD reserve attribute on the S-VOL

When you create a GAD pair, the P-VOL's LDEV ID is set as the virtual LDEV ID of the S-VOL. Before the pair can be created, the GAD reserve attribute must be set on the volume that will become the S-VOL. Setting the reserve attribute deletes the virtual LDEV ID of the volume, so that the virtual LDEV ID of the P-VOL can be set to the volume when the GAD pair is created.

NoteSetting the GAD reserve attribute (deleting the virtual LDEV ID) makes the volume unusable by some software products (for example, ShadowImage). For details, see the interoperability requirements for GAD.
GUID-61900609-A585-4D82-879A-DDE358C701E1-low.png
Procedure

Set the GAD reserve attribute to the LDEV ID (0x4444).

raidcom map resource -ldev_id 0x4444 -virtual_ldev_id reserve -IH1
Check command and output examples

Display the information about the volume (LDEV ID: 0x4444). For the LDEV ID to which the reserve attribute was set, ffff is displayed for VIR_LDEV (virtual LDEV ID).

raidcom get ldev -ldev_id 0x4444 -fx -IH1
Serial#  : 522222
LDEV : 4444 VIR_LDEV : ffff
SL : -
CL : -
VOL_TYPE : NOT DEFINED
SSID : -
RSGID : 1
NoteIf you need to release the GAD reserve attribute, use the raidcom unmap resource command (example: raidcom unmap resource -ldev_id 0x4444 -virtual_ldev_id reserve -IH1). After releasing the GAD reserve attribute, use the check command to confirm that fffe is displayed for VIR_LDEV (virtual LDEV ID).

Creating a host group

Create a host group to be used by the S-VOL of the GAD pair. The requirement to create a host group depends on the host group ID used by the S-VOL:

  • When the host group ID used by the S-VOL is 0

    The host group whose host group ID is 0 exists by default. Set a host mode to the host group (Windows host mode shown), as follows:

    raidcom modify host_grp -port CL1-C-0 -host_mode WIN -IH1

    Check command and output examples: Display the information about the host group that is set for the port (CL1-C), and confirm that the host mode is correct.

    raidcom get host_grp -port CL1-C -IH1
    PORT GID GROUP_NAME Serial# HMD HMO_BITs
    CL1-C 0 1C-G00 522222 WIN
  • When the host group ID used by the S-VOL is 1 or higher

    A host group whose host group ID is 1 or higher does not exist by default. Create a host group used by the S-VOL of the GAD pair, and set the host mode.

NoteIf you create a new host group but do not reserve the new host group ID in the resource group, add the new host group ID to the resource group as described in Reserving a host group ID.

If you connect multiple server hosts of different platforms to a port, create a host group for each platform.

GUID-0D4AE4DD-7573-41FC-84F7-4FE5F93DD17B-low.png

Procedure

  1. Create a host group (HAVol) with host group ID 1 on port (CL1-C).

    raidcom add host_grp -port CL1-C-1 -host_grp_name HAVol -IH1
  2. Set the host mode for the new host group (Windows host mode shown).

    raidcom modify host_grp -port CL1-C-1 -host_mode WIN -IH1
  3. Reserve host group (CL1-C-1) to resource group 1.

    raidcom add resource -resource_name HAGroup1 -port CL1-C-1 -IH1
Check command and output examples

Display the information about the host group that is set for port (CL1-C). Confirm that the port name, host group ID, and host group name are correct.

raidcom get host_grp -port CL1-C -IH1
PORT   GID  GROUP_NAME                       Serial# HMD          HMO_BITs
CL1-C    0  1C-G00                            522222 WIN
CL1-C    1  HAVol                             522222 WIN

Creating a pool

After creating host groups, you must create a pool volume, format the volume, and create a Dynamic Provisioning pool.

NoteThis example uses DP-VOLs. If you are using normal volumes, you do not need to create a pool.
GUID-97CCB61B-82CC-4161-B562-8E6617D3FD2C-low.png

Procedure

  1. Specify a parity group (13-4) to create a volume (pool volume) whose LDEV ID is 0x7777. The capacity is 100 GB.

    raidcom add ldev -ldev_id 0x7777 -parity_grp_id 13-4 -capacity 100G -IH1
  2. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH1
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         522222     -
  3. Perform Quick Format to the volume (0x7777).

    raidcom initialize ldev -operation qfmt -ldev_id 0x7777 -IH1
  4. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH1
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         522222     -
  5. Specify 0x7777 to the pool volume to create a pool for Dynamic Provisioning whose pool ID is 0 and whose pool name is HA_POOL.

    raidcom add dp_pool -pool_id 0 -pool_name HA_POOL -ldev_id 0x7777 -IH1
  6. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH1
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         522222     -
Check command and output examples

Confirm that volume (LDEV ID: 0x7777) is set for the pool volume of pool (pool ID: 0).

raidcom get ldev -ldev_id 0x7777 -fx -IH1
Serial#  : 522222
LDEV : 7777
SL : 0
CL : 0
VOL_TYPE : OPEN-V-CVS
VOL_Capacity(BLK) : 209715200
NUM_LDEV : 1
LDEVs : 7777
NUM_PORT : 0
PORTs :
F_POOLID : 0
VOL_ATTR : CVS : POOL
RAID_LEVEL  : RAID1
RAID_TYPE   : 2D+2D
NUM_GROUP : 1
RAID_GROUPs : 13-04
DRIVE_TYPE  : DKR5E-J1R2SS
DRIVE_Capa : 2286717474
LDEV_NAMING :
STS : NML
OPE_TYPE : NONE
OPE_RATE : 100
MP# : 0
SSID : 0007
RSGID : 0

Check the pool capacity.

raidcom get dp_pool -IH1
PID  POLS U(%)  AV_CAP(MB)  TP_CAP(MB) W(%) H(%) Num LDEV#  LCNT  TL_CAP(MB)
000  POLN   0       98196       98196   70   80    1 30583     0          0

Check the pool name.

raidcom get pool -key opt -IH1
PID  POLS U(%) POOL_NAME                            Seq# Num LDEV# H(%) VCAP(%) TYPE PM
000  POLN   0  HA_POOL                            522222   1 30583  80       -  OPEN N

Creating the S-VOL

Specify the volume that will become the S-VOL using the GAD reserve attribute and LDEV ID mapped earlier. The S-VOL must be the same size as the P-VOL.

GUID-A3A83BD4-7860-455E-A026-EE40EC9A6D33-low.png

Procedure

  1. Check the capacity of the P-VOL.

    raidcom get ldev -ldev_id 0x2222 -fx -IH0
    Serial#  : 511111
    LDEV : 2222
    SL : 0
    CL : 0
    VOL_TYPE : OPEN-V-CVS
    VOL_Capacity(BLK) : 1024000
    NUM_PORT : 0
    PORTs :
    F_POOLID : NONE
    VOL_ATTR : CVS : HDP
    B_POOLID : 0
    LDEV_NAMING :
    STS : NML
    OPE_TYPE : NONE
    OPE_RATE : 100
    MP# : 0
    SSID : 0005
    Used_Block(BLK) : 0
    RSGID : 0
  2. In the Dynamic Provisioning pool with pool ID 0, create a virtual volume (DP-VOL) with a capacity of 1,024,000 blocks and LDEV ID = 0x4444.

    raidcom add ldev -pool 0 -ldev_id 0x4444 -capacity 1024000 -IH1
  3. Confirm that asynchronous command processing has completed.

    raidcom get command_status -IH1
    HANDLE   SSB1    SSB2    ERR_CNT        Serial#     Description
    00c3        -       -          0         522222     -
Check command and output examples

Display the information for volume (LDEV ID: 0x4444). Confirm that the new volume satisfies the following requirements:

  • The GAD reserve attribute is set (virtual LDEV ID (VIR_LDEV) is ffff).
  • The volume has the same capacity as the P-VOL.
  • The volume is a DP-VOL (volume attribute (VOL_ATTR) is HDP).
    NoteThis example uses DP-VOLs. This requirement does not apply if you are using normal volumes.
raidcom get ldev -ldev_id 0x4444 -fx -IH1
Serial#  : 522222
LDEV : 4444 VIR_LDEV : ffff
SL : 0
CL : 0
VOL_TYPE : OPEN-V-CVS
VOL_Capacity(BLK) : 1024000
NUM_PORT : 0
PORTs :
F_POOLID : NONE
VOL_ATTR : CVS : HDP
B_POOLID : 0
LDEV_NAMING :
STS : NML
OPE_TYPE : NONE
OPE_RATE : 100
MP# : 0
SSID : 0009
Used_Block(BLK) : 0
RSGID : 1

Adding an LU path to the S-VOL

Add an LU path between the port connected to the server and the S-VOL. The host does not recognize the S-VOL, because the virtual LDEV ID has not yet been defined to the volume for the S-VOL.

GUID-C1E48562-5FE7-40A1-9D4E-FE4A326BC557-low.png
Procedure

Specify host group (CL1-C-1) and LU (0) to add an LU path to S-VOL (0x4444).

raidcom add lun -port CL1-C-1 -lun_id 0 -ldev_id 0x4444 -IH1
Check command and output examples

Display the information about the LU paths that are defined in host group (CL1-C-1).

raidcom get lun -port CL1-C-1 -fx -IH1
PORT   GID  HMD            LUN  NUM     LDEV  CM    Serial#  HMO_BITs
CL1-C    0  WIN            0    1       4444   -     522222

Updating the CCI configuration definition files

Before creating the GAD pair, you must update the CCI configuration definition files on the primary and secondary storage systems to add the information for the volumes that will become the P-VOL and S-VOL.

Shutting down CCI

You must shut down both CCI instances before editing the configuration definition files.

Procedure (Windows shown)

Shut down instance 0 and instance 1.

horcmshutdown 0 1
inst 0:
HORCM Shutdown inst 0 !!!
inst 1:
HORCM Shutdown inst 1 !!!

Editing CCI configuration definition files

Seeing examples of configuration definition files can help you when you edit your own configuration definition files. The following examples show the configuration definition files for a Windows host. The following information is important to know as you edit configuration definition files:

  • Make sure to specify the actual LDEV IDs for the GAD pair volumes, not the virtual LDEV IDs.
  • If you use CCI to operate a GAD pair created by Device Manager - Storage Navigator, the MU# in the configuration definition file of CCI must be the same as the mirror ID you specified when creating the GAD pair by Device Manager - Storage Navigator.

    If the MU# does not match the mirror ID, you cannot operate the GAD pair using CCI.

Example of primary HORCM file, horcm0.conf

The underlined lines below show the updates for the volumes in the sample configuration in this chapter. Make sure to enter the information for your system in your configuration definition files.

HORCM_MON
#ip_address        service         poll(10ms)     timeout(10ms)
localhost          31000           -1             3000

HORCM_CMD
\\.\CMD-511111-52735

HORCM_LDEV
#GRP    DEV             SERIAL          LDEV#           MU#
oraHA   dev1            511111          22:22           h0

HORCM_INST
#GPR    IP ADR             PORT#
oraHA   localhost          31001
Example of secondary HORCM file, horcm1.conf

The underlined lines below show the updates for the volumes in the sample configuration in this chapter. Make sure to enter the information for your system in your configuration definition files.

HORCM_MON
#ip_address        service         poll(10ms)     timeout(10ms)
localhost          31001           -1             3000

HORCM_CMD
\\.\CMD-522222-52734

HORCM_LDEV
#GRP    DEV             SERIAL          LDEV#           MU#
oraHA   dev1            522222          44:44           h0

HORCM_INST
#GPR    IP ADR             PORT#
oraHA   localhost          31000

Restarting CCI

After editing the configuration definition files, restart both CCI instances.

Procedure (Windows shown)

Start instances 0 and 1.

horcmstart 0 1
starting HORCM inst 0
HORCM inst 0 starts successfully.
starting HORCM inst 1
HORCM inst 1 starts successfully.

Creating the GAD pair

After verifying that the virtual LDEV ID and enabling the ALUA mode, you can create the GAD pair.

Verifying the virtual LDEV ID at the secondary site

Before creating a GAD pair, check that the same virtual LDEV ID as that of the primary volume does not exist in the virtual storage machine of the secondary site, which has the same serial number and model as the primary storage system. If the same virtual LDEV ID as the primary volume exists, you cannot create the GAD pair.

Operate the virtual storage machine to check that the virtual LDEV ID does not exist. Specify the virtual storage machine for HORCM_VCMD of the configuration definition file, and then start CCI.

Procedure

  1. Start instances (100 and 101) for confirming the virtual LDEV IDs.

    horcmstart 100 101
    starting HORCM inst 100
    HORCM inst 100 starts successfully.
    starting HORCM inst 101
    HORCM inst 101 starts successfully.
  2. Confirm the P-VOL's virtual LDEV ID.

    raidcom get ldev -ldev_id 0x2222 -fx -IH100
    Serial# : 511111 
    LDEV : 2222
    (Omitted)

    VIR_LDEV (virtual LDEV ID) information is not displayed if it is the same as LDEV (actual LDEV ID) information. The virtual LDEV ID in the output example is the same as the actual LDEV ID.

  3. Check that the same virtual LDEV ID as that of the primary volume does not exist in the virtual storage machine of the secondary site. After you execute this command, if virtual LDEV ID 0x2222 is not displayed, the same virtual LDEV ID (0x2222) as that of the primary volume does not exist in the virtual storage machine of the secondary site.

    raidcom get ldev -ldev_id 0x2222 -key front_end -cnt 1 -fx -IH101

    When you specify the virtual storage machine for HORCM_VCMD in the configuration definition file and execute the raidcom get ldev command by specifying the -cnt option, the virtual LDEV IDs in the range specified by the -cnt option are displayed.

    TipTo display the volume information as a list for each volume, use the -key front_end option for the raidcom get ldev command.

Revising the virtual LDEV ID at the secondary site

If the same virtual LDEV ID as the primary volume is displayed for the virtual storage machine of the secondary site, there might be errors in the GAD system implementation plan. Revise the system configuration.

The example when the same virtual LDEV ID as that of the P-VOL (0x2222) is assigned to the volume (LDEV ID: 0xfefe) in the virtual storage machine of the secondary machine is shown below.

Procedure

  1. Check whether the same virtual LDEV ID as that of the primary volume is assigned to the virtual storage machine of the secondary site.

    raidcom get ldev -ldev_id 0x2222 -key front_end -cnt 1 -fx -IH101
    Serial# LDEV# SL CL VOL_TYPE VOL_Cap(BLK) PID ATTRIBUTE Ports PORT_No:LU#:GRPNAME ...
    511111 2222 - - NOT DEFINED

    The virtual LDEV ID (0x2222) is assigned to the virtual storage machine of the secondary site.

  2. Confirm the actual LDEV ID of the volume whose virtual LDEV ID is 0x2222.

    raidcom get ldev -ldev_id 0x2222 -fx -IH101
    Serial# : 511111 PHY_Serial# : 522222
    LDEV : 2222 PHY_LDEV : fefe
    SL : -
    CL : -
    VOL_TYPE : NOT DEFINED
    SSID : -
    RSGID : 1

    In this example, the virtual LDEV ID (0x2222) is assigned to the volume whose actual LDEV ID is 0xfefe.

  3. To use the virtual LDEV ID (0x2222) for a GAD pair volume, use the raidcom unmap resource command to remove assignment of the virtual LDEV ID (0x2222) from the volume whose LDEV ID is 0xfefe.

    raidcom unmap resource -ldev_id 0xfefe -virtual_ldev_id 0x2222 -IH1
  4. Confirm that the assignment of the virtual LDEV ID (0x2222) is removed from the volume whose LDEV ID is 0xfefe.

    raidcom get ldev -ldev_id 0x2222 -key front_end -cnt 1 -fx -IH101

    When you specify the virtual storage machine for HORCM_VCMD in the configuration definition file, and execute the raidcom get ldev command by specifying the -cnt option, the virtual LDEV IDs existing in the specified range by the -cnt option are displayed.

    After you execute the above command, if the virtual LDEV ID 0x2222 is not displayed, the same virtual LDEV ID (0x2222) as that of the primary volume does not exist in the virtual storage machine of the secondary site.

Next steps

NoteAfter releasing the virtual LDEV ID assignment, if you execute the raidcom get ldev command without specifying the -cnt option, the following error code and message are output:
raidcom: [EX_EGPERM] Permission denied with the Resource Group

In the example above, the virtual LDEV ID (0x2222) has not been defined after you released the virtual LDEV ID assignment. Therefore, the user of the virtual storage machine does not have access authority.

When a command is executed specifying a virtual storage machine (that is, using HORCM_VCMD), both the actual ID and the virtual ID of the specified resource must be assigned to the user. When the virtual storage machine is not specified (that is, using HORCM_CMD), the user can execute the command only if the actual ID of the specified resource is assigned to the user.

Setting the ALUA mode

To specify the preferred path in a cross-path configuration, you must enable the ALUA mode. Before creating a GAD pair, enable the ALUA mode of the P-VOL. If the ALUA mode of the P-VOL is enabled, the ALUA mode of the S-VOL is also enabled when a GAD pair is created.

Note
  • It is not necessary to set the ALUA mode if the cross-path configuration is not used.
  • If you add new LUNs, ensure that you set the ALUA attribute to that of existing LUNs. Otherwise, you will lose the settings on previously provisioned LUNs on the same host.
Command example
raidcom modify ldev -ldev_id 0x2222 -alua enable -IH0
Check command and output example

Use the following command to verify that the ALUA mode is set correctly (ALUA: Enable is displayed).

raidcom get ldev -ldev_id 0x2222 -fx -IH0
Serial# : 511111
LDEV : 2222
SL : 0
CL : 0
VOL_TYPE : OPEN-V-CVS
VOL_Capacity(BLK) : 1024000
NUM_PORT : 0
PORTs :
F_POOLID : NONE
VOL_ATTR : CVS : HDP
B_POOLID : 0
LDEV_NAMING :
STS : NML
OPE_TYPE : NONE
OPE_RATE : 100
MP# : 0
SSID : 0005
Used_Block(BLK) : 0
ALUA : Enable
RSGID : 0

Creating a global-active device pair

When GAD configuration is complete, you can start creating GAD pairs. When a pair is created, the P-VOL LDEV ID is set as the S-VOL's virtual LDEV ID. When the paircreate operation completes, the pair status becomes PAIR, and the P-VOL and S-VOL can accept I/O from the host. When a pair is deleted, the S-VOL's virtual LDEV ID is deleted, and the GAD reserve attribute remains set on the S-VOL.

Note
  • When you create a GAD pair, make sure that the available pool capacity for Dynamic Provisioning below the warning threshold is more than the capacity of the secondary volume. If you create a GAD pair at the secondary storage system when the available pool capacity below the warning threshold is less than the capacity of the secondary volume, SIM (SIM=620xxx, where xxx is the pool ID) is issued (the used capacity exceeds the warning threshold).
  • You cannot create a GAD pair by using instances (100 and 101) for confirming the virtual LDEV IDs. To create a GAD pair, use instances (0 and 1) for operating storage systems.
  • Restarting the server is required if both of the following conditions are true:
    • You create a GAD pair specifying the volume, that the server recognizes, as a primary volume with the ALUA mode disabled.
    • You create a GAD pair with the ALUA mode of a primary volume enabled.
GUID-B390CDBF-F7D0-4D5F-A69D-37E30AE10772-low.png
NoteConsistency groups are supported on the VSP Gx00 models with DKCMAIN firmware version 83-03-xx or later, and the VSP Fx00 models with DKCMAIN firmware version 83-04-2x or later.
Procedure

Specify 0 for the quorum disk ID and specify 2 for the consistency group ID to create a GAD pair.

paircreate -g oraHA -fg never 2 -vl -jq 0 -IH0

To register GAD pairs to a consistency group, specify the -fg option when creating the pair. If you create a pair and do not specify a consistency group ID, the ID for an unused consistency group in the storage system will be automatically assigned.

The following example shows a command used to create a GAD pair without registering the pair to a consistency group:

paircreate -g oraHA -f never -vl -jq 0 -IH0
Check command and output examples

Confirm that a GAD pair is created.

pairdisplay -g oraHA -fxce -IH0
Group   PairVol(L/R) (Port#,TID, LU),Seq#,LDEV#.P/S,Status,Fence,   
%,P-LDEV# M CTG JID AP EM       E-Seq# E-LDEV# R/W
oraHA   dev1(L)     (CL1-A-0, 0,   0)511111  2222.P-VOL PAIR NEVER ,  
100  4444 -   2   0  -  -            -       - L/M
oraHA   dev1(R)     (CL1-C-1, 0,   0)522222  4444.S-VOL PAIR NEVER ,  
100  2222 -   2   0  -  -            -       - L/M

Confirm that the copy progress reaches 100%.

Adding an alternate path to the S-VOL

Add an alternate path to the S-VOL on the host using the alternate path software. For some alternate path software the alternate path is added automatically. Make sure that the host has recognized the GAD secondary volume correctly.

GUID-D8029021-BE75-46B7-B5E6-06942A38D331-low.png
CautionIf Hitachi Dynamic Link Manager (HDLM) is installed on the server and host mode option 78 is set to the host group of the storage system, add the alternate path, and then execute the dlnkmgr refresh -gad command to incorporate the storage system settings to HDLM. For details about HDLM, see the HDLM user documentation.

Setting a nonpreferred cross path

After adding an alternate path to the S-VOL of a GAD pair from a server, set the asymmetric access status of the host group.

In a cross-path configuration, if the ALUA mode is enabled for the first time, all paths including cross paths between a server and a storage system are set as the preferred path. Therefore, you need to set the asymmetric access status of the cross path as a nonpreferred path. By doing so, paths between the server and the storage system in the primary site and between the server and the storage system in the secondary site can be preferably used.

Note
  • It is not necessary to set the asymmetric access status if the cross-path configuration is not used.
  • Before setting the asymmetric access status, enable the ALUA mode. See Setting the ALUA mode.
Command example
raidcom modify lun -port CL1-A-0 -lun_id all 
-asymmetric_access_state non_optimized -IH0
Check command and output example

Check if the asymmetric access status is set correctly, and then make sure that the ALUA mode (AL) is enabled (E) and that the nonpreferred access status (AAS) of the cross path is set to nonpreferred (AN).

raidcom get lun -port CL1-A-0 -key opt_page1 -fx -IH0
PORT  GID HMD        LUN NUM LDEV CM Serial# AL AAS
CL1-A   0 LINUX/IRIX   0   1 2222  -  511111 E  AN

Releasing the differential data managed in a pool

If differential data management fails due to insufficient pool capacity, you must release the differential data (pages) managed in the pool. You also need to release pages when you downgrade to a microcode version that does not support GAD pairs with DP-VOLs larger than 4,194,304 MB.

Procedure

  1. Delete all GAD pairs that use the V-VOL for which you want to release the pages using the pairsplit -S command.

  2. Make sure that system option mode 755 is set to OFF. When system option mode 755 is set to ON, you cannot reclaim zero pages. For details about setting system option modes, contact your Hitachi Vantara LLC representative.

  3. Restore the blocked pool. For details, see the Provisioning Guide for the storage system.

  4. Release the V-VOL pages using the raidcom modify ldev command. Releasing pages might take some time. For details, see the Provisioning Guide for the storage system.