Starwind ISCSI Procedure

  • View
    218

  • Download
    1

Embed Size (px)

DESCRIPTION

storage

Text of Starwind ISCSI Procedure

  • STAR WIND ISCSI PROCEDURE

    Install The Starwind application from the website:

    www.starwindsoftware.com

    Open Starwind Management console.

    Right Click on the Star window Server - Add Star Wind Server

  • Add new star wind dialog box will appear. As follows:

  • Give the IP Address of the starwind server in the host column and the default port will be 3261.

    At the left pane of the starwind management console. The SAN device is added with two options

    1) TARGETS 2) DEVICES

    Mounting the HDD in the SAN :

    Right Click on the Devices under Starwind Servers in the left pane of the management console.

    Click on the Add Device option. Add device wizard dialog box will appear as follows:

  • Select Create a new virtual disk and click next. It ask for the device type as follows:

    Select the deduplicated disk device and click next.

    Select the device type as a virtual hard disk and click next

    Select the virtual disk location and name and allocate the size for the virtual disk.

    The virtual disk name should end with .spdata format.

  • Click on next. Select the cache mode as write-back-caching and select the max available cache size as 128MB. And click next.

  • Select create replica if you want the same configuration for other device. Here uncheck the create replica and click next.

    Choose the target attachment mode to unassigned as we didnt create the target node.

    Now click on next. It will display the summary of the device. And it is not attached to any target.

  • Now the disk is attached to the device. But it is not connected to any target.

    Client Side configuration:

    Here Client IP is 192.168.200.8

    Check whether the iscsi initiator is installed in the machine or not

    Rpm qa |grep i iscsi

    If the iscsi-initiator is not installed. Then install the iscsi-initiator-utils package

    Check the IQN no. of the server.

    Adding the Client to the target :

    Open starwind management console. Right click on the devices on the left pane.

    Select Attach to target option.

  • Select create new target option. Click next

    Give the IQN no in the target alias. ( we can give the ip address also but it is less secured)

    Here I gave the IP address.

  • Click on next. Then the target is attached to the device.

    Configuring ISCSI in the client :

    The iscsi configuration file location is /etc/iscsi/iscsid.conf.

    Open the iscsi configuration file

    Change the following in the file and save the file.

    Now start the iscsi service :

  • Discovering the Target :

    iscsiadm --mode discovery -t sendtargets --portal

    iscsiadm --mode discovery -t sendtargets --portal 192.168.60.124

    It will generate a unique iqn no. to connect to the target.

    Connecting to the target:

    iscsiadm -m node --targetname "IQN No " --portal "Storage IP : port" --login

    iscsiadm -m node --targetname "iqn.2008-08.com.starwindsoftware:192.168.60.124-192.168.200.8" --portal "192.168.60.124:3260" login

    To check the SAN is mounted or not in the client.

  • To disconnect from the SAN:

    To disconnect from the SAN first unmount the mounted SAN disk from the server.

    iscsiadm -m node --targetname "iqn no." --portal "storage ip" logout

    iscsiadm -m node --targetname "iqn.2008-08.com.starwindsoftware:192.168.60.124-192.168.200.8" --portal "192.168.60.124:3260" --logout