Starwind ISCSI Procedure

12
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

description

storage

Transcript of Starwind ISCSI Procedure

Page 1: 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

Page 2: Starwind ISCSI Procedure

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

Page 3: Starwind ISCSI Procedure

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:

Page 4: Starwind ISCSI Procedure

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.

Page 5: Starwind ISCSI Procedure

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

Page 6: Starwind ISCSI Procedure

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 didn’t create the target node.

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

Page 7: Starwind ISCSI Procedure

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.

Page 8: Starwind ISCSI Procedure

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.

Page 9: Starwind ISCSI Procedure

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 :

Page 10: Starwind ISCSI Procedure

Discovering the Target :

iscsiadm --mode discovery -t sendtargets --portal <Stroage IP>

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.

Page 11: Starwind ISCSI Procedure
Page 12: Starwind ISCSI Procedure

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