The QHASM.SessionHYPERSWAP_STATUS_List LIST view contains HyperSwap information about the list of PowerHA sessions nodes and devices in a cluster.
The values returned for the columns in this view contain information represented differently from the panels of the Work with ASP Copy Descriptions (WRKASPCPYDHyperSwap Status (WRKHYSSTS) CL command.
Authorization
The authorization ID of the statement must include the following privileges:
*OBJOPR and *READ authority on QHASM/SSNHYS_LIST.
Input/output system configuration (*IOSYSCFG) special authority.
Info |
---|
Note: At least one node in a device domain must be active for sessions in the device domain to be returned. |
Results Table
The table describes the columns in the view. The system name used here is SSNHYS_LIST. The schema is QHASM.
Column Name | System Column Name | Data Type | Description |
---|
NODE |
NODE | VARCHAR( |
8) |
A valid simple name that uniquely identifies a node. |
ASP_ |
DEVICE |
ASPDEV | VARCHAR(10) Nullable | The |
name of the Auxiliary Storage Pool (ASP) group the HyperSwap status is for. Possible values are: * |
SYSBAS |
The session is a FlashCopy session.
*GEOMIR
The session is a Geographic Mirroring session.
*GLOBALMIR
The session is a Global Mirror session.
*METROMIR
The session is a Metro Mirror session.
STORAGE_TYPE
STGTYPE
VARCHAR(3)
CLUSTER_RESOURCE_GROUP
CRG
VARCHAR(10)
Nullable
The name of the cluster resource group (CRG) associated with this session.
Contains the null value if the session type is *FLASHCOPY.
SOURCE_SITE
SRCSITE
VARCHAR(8)
Nullable
HyperSwap status is returned for disk unit pairs in the System ASP (ASP 1) and the User ASPs (ASP numbers 2 through 32). name Contains the null value if HyperSwap status is not known for the device on this node. This could be due to a failure communicating with the node, or because the node is not active in the cluster. | |||
FIRST_STORAGE_IDENTIFIER | STGID1 | VARCHAR(20) Nullable | The unique identifier for the storage device that a logical unit (volume) resides in. Possible values are: |
ASP
ASP Session (DS8000 or Geographic Mirroring)
CSM
CSM ASP Session
SVC
SVC ASP Session
NOT CONFIGURED name | |||
FIRST_STORAGE_ACCESSIBLE | STGID1ACS | VARCHAR(3) Nullable | Whether the storage device is accessible or not. Possible values are: YES The storage device is accessible. NO The storage device is not accessible. Contains the null value if |
TARGET_SITE
HyperSwap status is not known for the device on this node. | ||
SECOND_STORAGE_IDENTIFIER | STGID2 | VARCHAR( |
20) Nullable | The |
Contains the null value if the session type is *FLASHCOPY.
SOURCE_NODE
SRCNODE
VARCHAR(8)
The name of the cluster node that is attached to the source copy of the ASP.
TARGET_NODE
TGTNODE
VARCHAR(8)
Nullable
unique identifier for the storage device that a logical unit (volume) resides in. Possible values are: NOT CONFIGURED name | |||
SECOND_STORAGE_ACCESSIBLE | STGID2ACS | VARCHAR(3) Nullable | Whether the storage device is accessible or not. Possible values are: YES The storage device is accessible. NO The storage device is not accessible. Contains the null value if |
SWITCHOVER_REVERSE_REPLICATE
SWTRVSREPL
HyperSwap status is not known for the device on this node. | ||
STORAGE_AFFINITY | STGAFNTY | VARCHAR(3) Nullable |
Whether the affinity of the storage device is used or not. Possible values are: |
YES |
The affinity of the storage device is used. |
NO |
The affinity of the storage device is not |
used. Contains the null value if |
ASP_DEVICE
HyperSwap status is not known for the device on this node. | ||
COPY_STATUS | CPYSTS | VARCHAR( |
SOURCE_COPY_DESCRIPTION
SRCCPY
VARCHAR(10)
The name of an ASP copy description for the ASP device that is currently the source copy.
TARGET_COPY_DESCRIPTION
TGTCPY
VARCHAR(10)
The name of an ASP copy description for the ASP device that is currently the target copy.
DEVICE_DOMAIN
DEVDMN
VARCHAR(10)
20) |
The name of the Auxiliary Storage Pool (ASP) device description.
Nullable | A summary of the status of the HyperSwap ACTIVE-SYNCHRONIZED All of the HyperSwap relationships for the device are active and all of the copies of the volumes are synchronized. SUSPENDED One or more of the HyperSwap relationships for the device are currently suspended. RESUMING HyperSwap is currently resuming. TWO PRIMARY One or more of the HyperSwap relationships for the device consists of two primary volumes. STORAGE FAILURE There are problems when communicating with the storage devices. NOT CONFIGURED The HyperSwap relationships are not configured on this node for the device. INVALID The configuration of HyperSwap relationships on this node for the device is not valid. Contains the null value if HyperSwap status is not known for the device on this node. |
Examples
Example 1 - Get
...
all the HyperSwap relationships
The following example gets the HyperSwap relationships for a list of sessions in the device domain for the local nodenodes and devices.
Code Block | ||
---|---|---|
| ||
SELECT DISTINCTNODE, SESSIONASP_NAMEDEVICE, SESSIONCOPY_TYPESTATUS FROM QHASM.SESSIONHYPERSWAP_STATUS_LIST; | ||
Panel | ||
atlassian-light_bulb_on | ||
panelIcon | :light_bulb_on: | |
panelIconText | :light_bulb_on: | |
bgColor | #E3FCEF | |
Tip: This SQL service returns one row per IASP device in a session. This example uses the DISTINCT keyword to ensure only one entry per session is returned even in complex environments with multiple IASP devices. |
Example 1 - Sample Output
NODE | ASP_ |
---|
DEVICE |
---|
COPY_ |
---|
STATUS |
---|
NODEA |
SVCGLOBAL
*GLOBALMIR
FLASH
DEVICE1 | ACTIVE-SYNCHRONIZED | |
NODEA | DEVICE2 |
SQLSTATE Values
Errors and warnings returned by this function are returned as SQL state values. Possible SQLSTATE values returned by this view are:
SQLSTATE | Message |
---|---|
42501 | Not authorized to object |
HYS_LIST in QHASM type *FILE | |
42502 | CURRENT USER DOES NOT HAVE *IOSYSCFG SPECIAL AUTHORITY |
42704
560CR | NO VALID LICENSE FOR IBM POWERHA FOR I FOUND |
560CR | POWERHA FOR I ENTERPRISE EDITION NOT INSTALLED ON NODE &1 |
560CR | GRACE PERIOD EXPIRED FOR POWERHA FOR I ENTERPRISE EDITION ON NODE &1 |
560CR | USAGE LIMIT EXCEEDED FOR POWERHA FOR I ENTERPRISE EDITION ON NODE &1 |
560CR | POWERHA FOR I STANDARD EDITION NOT INSTALLED ON NODE &1 |
560CR | GRACE PERIOD EXPIRED FOR POWERHA FOR I STANDARD EDITION ON NODE &1 |
560CR | USAGE LIMIT EXCEEDED FOR POWERHA FOR I STANDARD EDITION ON NODE &1 |
560CR | POWERHA FOR I STANDARD EXPRESS NOT INSTALLED ON NODE &1 |
560CR | GRACE PERIOD EXPIRED FOR POWERHA FOR I STANDARD EXPRESS ON NODE &1 |
560CR | USAGE LIMIT EXCEEDED FOR POWERHA FOR I STANDARD EXPRESS ON NODE &1 |
57012 | CLUSTER RESOURCE SERVICES NOT ACTIVE OR NOT RESPONDING |
58004 | AN UNEXPECTED ERROR OCCURRED. SEE JOBLOG FOR MORE INFORMATION |