Top
PRIMECLUSTER Global Disk Services  Configuration and AdministrationGuide 4.4
FUJITSU Software

4.8.4 Establishing iSCSI Session

Set the following configuration for all nodes in which the mirroring function among servers is used.

When performing the mirroring among servers in node 1 and node 2, the "current node" and "another node" in the following procedure are indicated nodes below.

The node to perform the procedure

Current node

Another node

Node 1

Node 1

Node 2

Node 2

Node 2

Node 1

  1. Search and register the target portal of the current node and confirm the portal name of the current node.

    # iscsiadm -m discovery --type sendtargets --portal IPaddress

    Point

    • For IPaddress, specify the IP address for the mirroring among servers on the current node.

    • Confirm the portal name displayed in the same line as the target name of the current node which was set in "4.8.3 Creating iSCSI Target."

    Execution example

    # iscsiadm -m discovery --type sendtargets --portal 192.168.56.20
      192.168.56.20:3260,1 target-0101

    In this example, the target name and the portal name of the current node are as follows:

    • Target name: target-0101

    • Portal name: 192.168.56.20:3260,1

  2. Change the connection setup with the target portal of the current node.

    # iscsiadm --mode node --op update --targetname targetname --name=node.startup --value=manual
    # iscsiadm -m node -p portalname -o update -n node.session.timeo.replacement_timeout -v 30
    # iscsiadm -m node -p portalname -o update -n 'node.conn[0].timeo.noop_out_timeout' -v 5
    # iscsiadm -m node -p portalname -o update -n 'node.conn[0].timeo.noop_out_interval' -v 5

    Point

    • For targetname, specify the target name of the current node.

    • For portalname, specify the portal name of the current node.

    Execution example:

    # iscsiadm --mode node --op update --targetname target-0101 --name=node.startup --value=manual
    # iscsiadm -m node -p 192.168.56.20:3260,1 -o update -n node.session.timeo.replacement_timeout -v 30
    # iscsiadm -m node -p 192.168.56.20:3260,1 -o update -n 'node.conn[0].timeo.noop_out_timeout' -v 5
    # iscsiadm -m node -p 192.168.56.20:3260,1 -o update -n 'node.conn[0].timeo.noop_out_interval' -v 5
  3. Search and register the target portal of another node and confirm the portal name of another node.

    # iscsiadm -m discovery --type sendtargets --portal IPaddress

    Point

    • For IPaddress, specify the IP address for the mirroring among servers on another node.

    • Confirm the portal name displayed in the same line as the target name of another node which was set in "4.8.3 Creating iSCSI Target."

    Execution example:

    # iscsiadm -m discovery --type sendtargets --portal 192.168.56.10
      192.168.56.10:3260,1 target-0201

    In this example, the target name and the portal name of the another node are as follows:

    • Target name: target-0201

    • Portal name: 192.168.56.10:3260,1

  4. Change the connection setup with the target portal of another node.

    # iscsiadm --mode node --op update --targetname targetname --name=node.startup --value=manual
    # iscsiadm -m node -p portalname -o update -n node.session.timeo.replacement_timeout -v 30
    # iscsiadm -m node -p portalname -o update -n 'node.conn[0].timeo.noop_out_timeout' -v 5
    # iscsiadm -m node -p portalname -o update -n 'node.conn[0].timeo.noop_out_interval' -v 5

    Point

    • For targetname, specify the target name of another node.

    • For portalname, specify the portal name of another node.

    Execution example

    # iscsiadm --mode node --op update --targetname target-0201 --name=node.startup --value=manual
    # iscsiadm -m node -p 192.168.56.10:3260,1 -o update -n node.session.timeo.replacement_timeout -v 30
    # iscsiadm -m node -p 192.168.56.10:3260,1 -o update -n 'node.conn[0].timeo.noop_out_timeout' -v 5
    # iscsiadm -m node -p 192.168.56.10:3260,1 -o update -n 'node.conn[0].timeo.noop_out_interval' -v 5
  5. Log in to the target of the current node.

    # iscsiadm -m node -T targetname --portal portalname --login

    Point

    • For targetname, specify the target name of current node.

    • For portalname, specify the portal name of current node.

    Execution example:

    # iscsiadm -m node -T target-0101 --portal 192.168.56.20:3260,1 --login
  6. Log in to the target of another node.

    # iscsiadm -m node -T targetname --portal portalname --login

    Point

    • For targetname, specify the target name of another node.

    • For portalname, specify the portal name of another node.

    Execution example:

    # iscsiadm -m node -T target-0201 --portal 192.168.56.10:3260,1 --login
  7. Confirm the status of the iSCSI session and the device name of the iSCSI device.

    # iscsiadm -m session -P 3

    Point

    Confirm the following:

    • The connection status and session status of iSCSI must be "LOGGED IN."

    • For the iSCSI devices on the current node for the disks on the current node and another node, on which the mirroring among servers is performed, the status must be "running".

    Execution example

    # iscsiadm -m session -P 3
    iSCSI Transport Class version xxxxxxxx
    version xxxxxxxx
    Target: target-0201
            Current Portal: 192.168.56.10:3260,1
            Persistent Portal: 192.168.56.10:3260,1
                    **********
                    Interface:
                    **********
                    ...
                    iSCSI Connection State: LOGGED IN
    iSCSI Session State: LOGGED_IN
    Internal iscsid Session State: NO CHANGE ... ************************ Attached SCSI devices: ************************ Host Number: 12 State: running scsi12 Channel 00 Id 0 Lun: 0 scsi12 Channel 00 Id 0 Lun: 1 Attached scsi disk sdd State: running Target: target-0101 Current Portal: 192.168.56.20:3260,1 Persistent Portal: 192.168.56.20:3260,1 ********** Interface: ********** ... iSCSI Connection State: LOGGED IN
    iSCSI Session State: LOGGED_IN
    Internal iscsid Session State: NO CHANGE ... ************************ Attached SCSI devices: ************************ Host Number: 13 State: running scsi13 Channel 00 Id 0 Lun: 0 scsi13 Channel 00 Id 0 Lun: 1 Attached scsi disk sde State: running

    In this example, the iSCSI device name of the current node is "sde" and the iSCSI device name of another node is "sdd".

  8. Check that the symbolic link file indicating the created iSCSI device has been created in /etc/opt/FJSVsdx/.sdx_by_id directory. It may take some time to create the symbolic link file. If the symbolic link file does not exist, check it again after some time.

    # ls -l /etc/opt/FJSVsdx/.sdx_by_id/

    Execution example:

    # ls -l /etc/opt/FJSVsdx/.sdx_by_id/*
    lrwxrwxrwx 1 root root 8 Dec 4 17:57 /etc/opt/FJSVsdx/.sdx_by_id/sdx_1SDX01 -> /dev/sde lrwxrwxrwx 1 root root 8 Dec 4 18:23 /etc/opt/FJSVsdx/.sdx_by_id/sdx_1SDX02 -> /dev/sdd

Note

  • After configuring this setting, do not restart the node until all the settings described in "6.3 Shared Disk Resource Registration" are configured. If you have already started the node, take the step "5. Log in to the target of the current node." and the following steps again.

  • After registering the iSCSI device that is set by this procedure, do not log out of the target. When logging out of the target by mistake, restart the node.