HP-UX
Storage System Configuration
If the OS native multipathing software is used, retain the default settings of the initiator and configure Host Access Mode and Preferred Path for HyperMetro as required. Table 7-13 lists the detailed settings.
HyperMetro Working Mode |
Storage System |
OS Setting |
Host Access Mode |
Preferred Path for HyperMetro |
Description |
---|---|---|---|---|---|
Load balancing |
Local storage |
HP-UX |
Load balancing |
N/A |
The host uses all paths of a disk with equal priority. |
Remote storage |
HP-UX |
Load balancing |
N/A |
||
Local preferred |
Local storage |
HP-UX |
Asymmetric |
Yes |
The host considers the paths from the local storage system as preferred paths, and those from the remote storage system as non-preferred paths. |
Remote storage |
HP-UX |
Asymmetric |
No |
- For details about the HP-UX versions, see the Huawei Storage Interoperability Navigator.
- If a LUN has been mapped to a host, you must restart the host for the configuration to take effect after you modify Host Access Mode or Preferred Path for HyperMetro. If you map the LUN for the first time, restart is not needed.
- Ensure that HyperMetro is working properly when modifying networking.
- When data is migrated from other Huawei storage systems (including OceanStor Dorado V3, OceanStor V3, and OceanStor V5) to OceanStor Dorado V6, configure the storage system by following instructions in "Recommended Configurations for OceanStor Dorado V6 for Taking Over Data from Other Huawei Storage Systems When the Host Uses the OS Native Multipathing Software" in the OceanStor Dorado Host Connectivity Guide for HP-UX.
Configuring the Load Balancing Mode
- Click the host name and choose Operation > Modify.Figure 7-41 Modifying the host properties
The information displayed on the GUI may vary slightly with the product version.
- For both the local and remote storage systems, set Host Access Mode to Load balancing.Figure 7-42 Settings on the local and remote storage systems
Configuring the Local Preferred Mode
- Click the host name and choose Operation > Modify.Figure 7-43 Modifying the host properties
- For the local storage system, set Host Access Mode to Asymmetric and Preferred Path for HyperMetro to Yes. For the remote storage system, set Host Access Mode to Asymmetric and Preferred Path for HyperMetro to No.Figure 7-44 Settings on the local storage systemFigure 7-45 Settings on the remote storage system
Host Configuration
Verifying Version and Patch Requirements
NMP requires that the operating system should not be earlier than HP-UX 11i v3 Update 4 (11.31.0903).
Run the following command to query the operating system version:
bash-4.1# swlist | grep HPUX11i HPUX11i-DC-OE B.11.31.1403 HP-UX Data Center Operating Environment bash-4.1#
According to the command output, the version is HP-UX 11i v3 1403, meeting requirements.
Enabling Multipathing Software
By default, NMP is enabled. No extra setting is required.
You can run the following command to check the load balancing policy and ALUA status of a LUN:
bash-4.1# scsimgr get_attr -D /dev/rdisk/disk12 -a load_bal_policy SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk12 name = load_bal_policy current = round_robin default = round_robin saved = bash-4.1# bash-4.1# scsimgr get_attr -D /dev/rdisk/disk12 -a alua_enabled SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk12 name = alua_enabled current = true default = true saved = bash-4.1#
According to the command output, the load balancing policy is round-robin, and ALUA is enabled.
disk12 is a device file created for the mapped LUN after connectivity is configured.
Configuring Multipathing Software
Retain the default settings. You can run the scsimgr lun_map -D /dev/rdisk/disk# command to view the disk path information and LUN attributes. For details, see Verification.
Verification
Verifying the Load Balancing Mode
- Run the ioscan -funNC disk command to check whether HyperMetro LUNs have been properly aggregated.HyperMetro LUNs should be aggregated as a drive letter on the host, such as disk12 in the following example:
bash-4.1# ioscan -funNC disk Class I H/W Path Driver S/W State H/W Type Description =================================================================== disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP DG146BB976 /dev/disk/disk2 /dev/disk/disk2_p1 /dev/disk/disk2_p2 /dev/rdisk/disk2 /dev/rdisk/disk2_p1 /dev/rdisk/disk2_p2 disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP DG146BB976 /dev/disk/disk3 /dev/disk/disk3_p1 /dev/disk/disk3_p2 /dev/disk/disk3_p3 /dev/rdisk/disk3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p2 /dev/rdisk/disk3_p3 disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV /dev/disk/disk5 /dev/rdisk/disk5 disk 12 64000/0xfa00/0xa esdisk CLAIMED DEVICE HUAWEI XSG1 /dev/disk/disk12 /dev/rdisk/disk12
- Run the scsimgr lun_map -D /dev/rdisk/disk# command to check the path status and number of paths.The number of paths should be the sum of the logical paths on both storage systems (consistent with the actual configuration).
bash-4.1# scsimgr lun_map -D /dev/rdisk/disk12 LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk12 Total number of LUN paths = 8 World Wide Identifier(WWID) = 0x6002d52100f14ac30485420100000015 LUN path : lunpath17 Class = lunpath Instance = 17 Hardware path = 0/2/1/0/4/0.0x2992010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath16 Class = lunpath Instance = 16 Hardware path = 0/2/1/0/4/0.0x2991010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath19 Class = lunpath Instance = 19 Hardware path = 0/2/1/0/4/0.0x2812010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath7 Class = lunpath Instance = 7 Hardware path = 0/2/1/0/4/0.0x2211002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath11 Class = lunpath Instance = 11 Hardware path = 0/2/1/0/4/0.0x2212002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath9 Class = lunpath Instance = 9 Hardware path = 0/2/1/0/4/0.0x2202002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath8 Class = lunpath Instance = 8 Hardware path = 0/2/1/0/4/0.0x2201002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath13 Class = lunpath Instance = 13 Hardware path = 0/2/1/0/4/0.0x2811010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE bash-4.1#
In the preceding command output, State=ACTIVE corresponds to preferred paths. State of eight paths (lunpath7, lunpath8, lunpath9, lunpath11, lunpath13, lunpath16, lunpath17, and lunpath19) is ACTIVE, which is consistent with the actual configuration. The configuration is successful.When a LUN mapped to the host does not have any service, the state of paths to this LUN on the host becomes UNOPEN. To restore the path status to ACTIVE, run the ioscan command or read or write the mapped LUN.
Verifying the Local Preferred Mode
- Run the ioscan -funNC disk command to check HyperMetro LUNs have been aggregated.HyperMetro LUNs should be aggregated as a drive letter on the host, such as disk12 in the following example:
bash-3.2# ioscan -funNC disk Class I H/W Path Driver S/W State H/W Type Description =================================================================== disk 2 64000/0xfa00/0x0 esdisk CLAIMED DEVICE HP DG146BB976 /dev/disk/disk2 /dev/disk/disk2_p1 /dev/disk/disk2_p2 /dev/rdisk/disk2 /dev/rdisk/disk2_p1 /dev/rdisk/disk2_p2 disk 3 64000/0xfa00/0x1 esdisk CLAIMED DEVICE HP DG146BB976 /dev/disk/disk3 /dev/disk/disk3_p1 /dev/disk/disk3_p2 /dev/disk/disk3_p3 /dev/rdisk/disk3 /dev/rdisk/disk3_p1 /dev/rdisk/disk3_p2 /dev/rdisk/disk3_p3 disk 5 64000/0xfa00/0x2 esdisk CLAIMED DEVICE TEAC DVD-ROM DW-224EV /dev/disk/disk5 /dev/rdisk/disk5 disk 12 64000/0xfa00/0xa esdisk CLAIMED DEVICE HUAWEI XSG1 /dev/disk/disk12 /dev/rdisk/disk12
- Run the scsimgr lun_map -D /dev/rdisk/disk# command to check the path status and number of paths.The number of paths should be the sum of the logical paths on both storage systems (consistent with the actual configuration).
bash-4.1# scsimgr lun_map -D /dev/rdisk/disk12 LUN PATH INFORMATION FOR LUN : /dev/rdisk/disk12 Total number of LUN paths = 8 World Wide Identifier(WWID) = 0x6002d52100f14ac30485420100000015 LUN path : lunpath13 Class = lunpath Instance = 13 Hardware path = 0/2/1/0/4/0.0x2811010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = STANDBY LUN path : lunpath7 Class = lunpath Instance = 7 Hardware path = 0/2/1/0/4/0.0x2211002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath16 Class = lunpath Instance = 16 Hardware path = 0/2/1/0/4/0.0x2991010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = STANDBY LUN path : lunpath9 Class = lunpath Instance = 9 Hardware path = 0/2/1/0/4/0.0x2202002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath8 Class = lunpath Instance = 8 Hardware path = 0/2/1/0/4/0.0x2201002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath17 Class = lunpath Instance = 17 Hardware path = 0/2/1/0/4/0.0x2992010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = STANDBY LUN path : lunpath11 Class = lunpath Instance = 11 Hardware path = 0/2/1/0/4/0.0x2212002d52f14ac3.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = ACTIVE LUN path : lunpath19 Class = lunpath Instance = 19 Hardware path = 0/2/1/0/4/0.0x2812010203040509.0x4001000000000000 SCSI transport protocol = fibre_channel State = UNOPEN Last Open or Close state = STANDBY
In the preceding command output, State=ACTIVE corresponds to preferred paths, and State=STANDBY corresponds to non-preferred paths. State of four paths (lunpath7, lunpath8, lunpath9, and lunpath11) is ACTIVE, and that of the other four (lunpath13, lunpath16, lunpath17, and lunpath19) is STANDBY, which are consistent with the actual configuration. The configuration is successful.
When a LUN mapped to the host does not have any service, the state of paths to this LUN on the host becomes UNOPEN. To restore the path status to ACTIVE, run the ioscan command or read or write the mapped LUN.