Top
PRIMECLUSTER Global Disk Services  Configuration and AdministrationGuide 4.7

9.6.2 Deleting iSCSI Initiator Settings

When deleting the configuration of the mirroring among servers, after deleting the objects of the mirroring among servers, iSCSI initiator settings must be deleted by the following procedure.

  1. Confirm the iSCSI target name used for the mirroring among servers.

    Confirm the target name by executing the following command on both nodes.

    # targetcli ls iscsi 1

    [Output example]

    o- iscsi .................................................................... [Targets: 1]
      o- iqn.2003-01.org.linux-iscsi.node1.x8664:sn.c053e5d35899 ................... [TPGs: 1]

    This output example shows that "iqn.2003-01.org.linux-iscsi.node1.x8664:sn.c053e5d35899" is the target name.

  2. Confirm that the iSCSI target information used for the mirroring among servers on any node.

    # iscsiadm -m node

    [Output example]

    192.168.56.10:3260,1 target-0201
    192.168.56.20:3260,1 target-0101

    In this example, the target name and the portal name are as below.

    Target name

    Portal name

    target-0201

    192.168.56.10:3260,1

    target-0101

    192.168.56.20:3260,1

  3. Log out from the iSCSI session used for the mirroring among servers on both nodes.

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

    Specify the target name and the portal name confirmed in step 2 to targetname and portalname.

    In the example, execute the following 2 commands on each node.

    [Execution Example]

    # iscsiadm -m node -T target-0201 --portal 192.168.56.10:3260,1 --logout
    # iscsiadm -m node -T target-0101 --portal 192.168.56.20:3260,1 --logout
  4. Delete the iSCSI initiator information for the mirroring among servers on both nodes.

    # iscsiadm -m node -o delete -T targetname --portal portalname

    Specify the target name and the portal name confirmed in step 2 to targetname and portalname.

    In this example, execute the following 2 commands on each node.

    [Execution example]

    # iscsiadm -m node -o delete -T target-0201 --portal 192.168.56.10:3260,1
    # iscsiadm -m node -o delete -T target-0101 --portal 192.168.56.20:3260,1