No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Huawei SAN Storage Host Connectivity Guide for SUSE

HUAWEI SAN Storage Host Connectivity Guide for SUSE Linux Servers
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Host Configuration

Host Configuration

Configuring Host IP Addresses

  1. Modify the parameters of host ports in their respective configuration files. Figure 5-15 provides an example configuration for port eth1.

    Figure 5-15 Configuring the IP address

  2. Restart the network service.

    For versions earlier than SUSE 12, run the following command:

    /etc/init.d/network restart

    For SUSE 12 and later versions, run the following command:

    systemctl restart network.service

Checking iSCSI Software on the Host

After SUSE is installed, run the rpm -qa |grep iscsi command to check the iSCSI software installation.

[root@root ~]# rpm -qa |grep iscsi 
yast-iscsi-client-2.17.42-1.4 
yast-iscsi-server-2.17.11-1.58 
open-iscsi-2.0.873-0.32.1

The output shows that iSCSI software is installed.

If iSCSI software is not installed or the installed iSCSI software is of an early version, use the YaST tool to install or upgrade the software.

  1. On the command-line interface (CLI), enter yast to start the tool, as shown in Figure 5-16.

    Figure 5-16 YaST tool interface

    In the menu on the left, choose Software.

  2. In the menu on the right, choose Software Management, as shown in Figure 5-17.

    Figure 5-17 Software management

  3. In Search, enter iscsi to query the iSCSI software, as shown in Figure 5-18.

    Figure 5-18 Querying the iSCSI software

  4. In the output, choose the iSCSI software package that you want to install, as shown in Figure 5-19.

    Figure 5-19 iSCSI software package

  5. Choose Action and press Enter. In the menu that is displayed, choose Install, as shown in Figure 5-20.

    Figure 5-20 Installing the software

  6. Choose Accept to start the software installation, as shown in Figure 5-21.

    Figure 5-21 Accept installation

  7. After the installation is complete, choose Quit to exit from the YaST tool, as shown in Figure 5-22.

    Figure 5-22 Exiting from the YaST tool

Configuring Initiators

  1. Start the iSCSI service.

    For versions earlier than SUSE 12, run the following command:

    /etc/init.d/open-iscsi start 
    For SUSE 12 and later versions, run the following command:
    systemctl start iscsi.service

  2. View the host initiator information.

    [root@root ~]#cat /etc/iscsi/initiatorname.iscsi 
    InitiatorName=iqn.1996-04.de.suse:01:1fe172a469b1

    The output shows that the host initiator name is iqn.1996-04.de.suse:01:1fe172a469b1.

    NOTE:

    An iSCSI initiator name must comply with the following format:

    iqn.domaindate.reverse.domain.name:optional name

    An iSCSI initiator name contains only:

    • Special characters: hyphens (-), periods (.), and colons (:)
    • Lower-case letters
    • Digits

    An iSCSI initiator name can contain a maximum of 223 characters.

  3. Query targets.

    For example, if the service IP address of the storage port is 192.168.5.6, run the following command on the host to query targets:

    [root@root ~]# iscsiadm -m discovery -t st -p 192.168.5.6 
    Starting iscsid:                                           [  OK  ] 
    192.168.5.6:3260,260 iqn.2006-08.com.huawei:oceanstor:21000022a10b7bb2::192.168.5.6

  4. Log in to the target.

    [root@root ~]# iscsiadm -m node -p 192.168.5.6 -l 
    Logging in to [iface: default, target: iqn.2006-08.com.huawei:oceanstor:21000022a10b7bb2::192.168.5.6, portal: 192.168.5.6,3260] (multiple) 
    Login to [iface: default, target: iqn.2006-08.com.huawei:oceanstor:21000022a10b7bb2::192.168.5.6, portal: 192.168.5.6,3260] successful.

  5. Configure the iSCSI service to run upon system startup.

    For versions earlier than SUSE 12, run the following command:

    chkconfig open-iscsi on
    For SUSE 12 and later versions, run the following command:
    systemctl enable iscsi.service

  6. Configure the host to automatically access the target upon startup.

    [root@root ~ ]# iscsiadm -m node -o update -n node.startup -v automatic

  7. If CHAP authentication is not required between the storage system and host, the host initiator configuration is completed. If CHAP authentication is required, run the iscsiadm command.

    [root@root ~]# iscsiadm -m node -o update -p 192.168.5.6 -n node.session.auth.authmethod -v CHAP 
    [root@root ~]# iscsiadm -m node -o update -p 192.168.5.6 -n node.session.auth.username -v root 
    [root@root ~]# iscsiadm -m node -o update -p 192.168.5.6 -n node.session.auth.password -v huawei123456 
    [root@root ~]# /etc/init.d/iscsi restart 
    Stopping iSCSI daemon:  
    iscsid dead but pid file exists                            [  OK  ] 
    Turning off network shutdown. Starting iSCSI daemon:       [  OK  ] 
                                                               [  OK  ] 
    Setting up iSCSI targets: Logging in to [iface: default, target: iqn.2006-08.com.huawei:oceanstor:21000022a10b7bb2::192.168.5.6, portal: 192.168.5.6,3260] 
    Login to [iface: default, target: iqn.2006-08.com.huawei:oceanstor:21000022a10b7bb2::192.168.5.6, portal: 192.168.5.6,3260]: successful 
                                                               [  OK  ]
    NOTE:

    When the iscsiadm command is executed, the user name and password of the initiator that was added to the storage system are required. If the user name and password used in this command are different from the initiator's, you will fail to establish connections between the storage system and the host.

    The command syntax is as follows:

    iscsiadm -m node -o update -p targetip -n node.session.auth.authmethod -v CHAP 
    iscsiadm -m node -o update -p targetip -n node.session.auth.username -v username 
    iscsiadm -m node -o update -p targetip -n node.session.auth.password -v password

    For SUSE 12 and later versions, run the following command to restart the iSCSI service:

    systemctl restart iscsi.service

Download
Updated: 2019-05-16

Document ID: EDOC1000150158

Views: 37683

Downloads: 532

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next