SUSE
Storage System Configuration
If UltraPath is used, retain the default settings of the initiator and configure Host Access Mode and Preferred Path for HyperMetro as required. Table 7-6 lists the detailed settings.
HyperMetro Working Mode |
Storage System |
OS Setting |
Host Access Mode |
Preferred Path for HyperMetro |
Description |
---|---|---|---|---|---|
Load balancing mode |
Local storage |
Linux |
Load balancing |
N/A |
The host uses all paths of a disk with equal priority. |
Remote storage |
Linux |
Load balancing |
N/A |
||
Local preferred mode |
Local storage |
Linux |
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 |
Linux |
Asymmetric |
No |
Configuring the Load Balancing Mode
- Click the host name and choose Operation > Modify.Figure 7-11 Modifying the host properties
The information displayed on the GUI may vary slightly with the product version.
- Set Host Access Mode to Load balancing for both the local and remote storage systems.Figure 7-12 Setting the host access mode
Configuring the Local Preferred Mode
- Click the host name and choose Operation > Modify.Figure 7-13 Modifying the host properties
The information displayed on the GUI may vary slightly with the product version.
- 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-14 Settings on the local storage systemFigure 7-15 Settings on the remote storage system
Host Configuration
Install, configure, and use UltraPath by following instructions in the OceanStor UltraPath for Linux User Guide.
- To obtain the document, log in to Huawei's technical support website (https://support.huawei.com/enterprise/), enter UltraPath in the search box, and select the associated path to the documentation page. Then find and download the desired document. To download software, click the Software Download tab and find the desired software.
- Use UltraPath 21.6.1 or a later compatible version when your storage systems are OceanStor Dorado V6 series 6.0.
- Set the HyperMetro working mode.
You can set the HyperMetro working mode using either of the following methods:
Method 1: Run the upadm set hypermetro workingmode=auto command to configure UltraPath to automatically adapt the HyperMetro working mode. This setting enables UltraPath to periodically query the host access mode configured on HyperMetro storage systems and adapt its HyperMetro working mode according to the host access mode.
Method 2: Run the following command to set UltraPath to work in a fixed HyperMetro working mode:Command
Example
set hypermetro workingmode=[priority | balance] primary_array_id=ID
upadm set hypermetro workingmode=priority primary_array_id=0
The following table describes the parameters in the command.
Parameter
Description
Default Value
workingmode
HyperMetro working mode.
- priority: local preferred mode
- balance: load balancing mode
priority
priority is recommended. balance is applicable when two active-active data centers are in the same equipment room or on the same floor.
primary_array_id
ID of the preferred storage system. The ID is allocated by UltraPath. Select the storage system that resides in the same data center as the application host.
Run the upadm show array command to obtain the storage system ID.
NOTE:- In priority mode, the value of the parameter indicates the storage system to which I/Os are preferentially delivered.
- In balance mode, the value of the parameter indicates the storage system where the first slice section resides.
None
NOTE:Mapping relationship between application hosts and storage systems:
- Storage system A is the preferred system for all application hosts in data center A.
- Storage system B is the preferred system for all application hosts in data center B.
If you set UltraPath to automatically adapt the HyperMetro working mode, ensure that the host access mode on the storage system is consistent with that on the physical network.
- Configure the load balancing policy.
If HyperMetro works in load balancing mode, you can run the upadm set hypermetro loadbalancemode=[split-size | round-robin] command to configure the load balancing policy. The following table describes the parameters in the command.
Parameter
Description
Default Value
loadbalancemode
Load balancing policy for HyperMetro systems.
- split-size: slicing mode across storage systems.
In this mode, UltraPath delivers I/Os to a specific storage system based on the start addresses of I/Os, slice size, and preferred storage system. For example, if the slice size is 128 MB, the I/Os whose start addresses range from 0 to 128 MB (excluding 128 MB) are preferentially delivered to the preferred storage system and the I/Os whose start addresses range from 128 MB to 256 MB (excluding 256 MB) are delivered to the non-preferred storage system. The default slice size is 128 MB. You can run the upadm set hypermetro split_size command to change it.
- round-robin: round-robin mode across storage systems.
In this mode, UltraPath selects two storage systems in turn to deliver I/Os.
split-size
- split-size: slicing mode across storage systems.