Вы находитесь на странице: 1из 19

MODULE 14: ISCSI CONNECTIVITY

EXERCISE

In this exercise, you verify iSCSI connectivity on your assigned Linux machine and Windows machine.
OBJECTIVES

By the end of this exercise, you should be able to:

Configure iSCSI on a storage system


Configure Windows for multipath I/O (MPIO)
Install the NetApp device-specific module (DSM) for a Windows system
Install NetApp Host Utilities for a Windows system
Configure iSCSI on a Windows system
Confirm an iSCSI session on a storage system
Configure a second iSCSI session on a Windows system
Confirm the second iSCSI session on the storage system
Install Host Utilities on Red Hat Linux
Install the iSCSI software initiator for Red Hat Linux
Configure the iSCSI software initiator on Red Hat Linux
Confirm the iSCSI session or sessions on a storage system

TASK 1: CONFIGURE ISCSI ON A STORAGE SYSTEM

In this task, you will log in to your assigned storage system and configure the iSCSI services.
STEP ACTION

1.

Login to your assigned storage systems command-line interface.

2.

Enter this command to verify that the iSCSI service is running:


system> iscsi status

If iSCSI is not running, determine if it is properly licensed.


system> license

NOTE: Look for the license titled: iscsi.


If iSCSI is not licensed, enter the license code provided by your instructor:
system> license add XXXXX

Start the iSCSI services:


system> iscsi start

The iSCSI service should now be started.


3.

Look at the subcommands for iSCSI:


system> iscsi

E14-1

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

4.

Enter the following command to investigate storage systems IP interfaces:


system> ifconfig -a

e0a: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu


1500 inet 10.254.144.71 netmask 0xfffffc00 broadcast
10.254.147.255 ether 00:a0:98:08:1a:fa
(auto-1000t-fd-up) flowcontrol full
e0b: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu
1500 inet 10.254.144.75 netmask 0xfffffc00 broadcast
10.254.147.255 ether 00:a0:98:08:1a:fb
(auto-1000t-fd-up) flowcontrol full
e0c: flags=948043<UP,BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu
1500 inet 10.254.144.81 netmask 0xfffffc00 broadcast
10.254.147.255 ether 00:a0:98:08:1a:f8
(auto-1000t-fd-up) flowcontrol full
e0d: flags=108042<BROADCAST,RUNNING,MULTICAST,TCPCKSUM> mtu 150
ether 00:a0:98:08:1a:f9 (auto-unknown-cfg_down) flowcontrol full
lo: flags=1948049<UP,LOOPBACK,RUNNING,MULTICAST,TCPCKSUM> mtu
8160 inet 127.0.0.1 netmask 0xff000000 broadcast 127.0.0.1 ether
00:00:00:00:00:00 (VIA Provider)
In a production environment, you should assign one or more dedicated interfaces to your iSCSI
configuration. In this exercise environment you will use the configured interface e0a and e0b.
For a high-availability configuration, you would use at least two interfaces on different physical
interfaces.
5.

Record the interface name and IP addresses on the Master Configuration Worksheet
(Appendix B).

6.

Verify that iSCSI service has been enabled for the e0a and e0b interface:
system> iscsi interface show

If iSCSI has not been enabled for the interface, enter the following command:
system> iscsi interface enable e0a
system> iscsi interface enable e0b

7.

Disable iSCSI access to the e0c and e0d interfaces:


system> iscsi interface disable e0c
system> iscsi interface disable e0d

8.

Identify the worldwide node name (WWNN) of the storage system:


system> iscsi nodename

9.

E14-2

Record the WWNN on the Master Configuration Worksheet.

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

10.

Verify the target portal groups on the storage system by entering this command:
system> iscsi tpgroup show

Record the Target Portal Group (TPG) tag for e0a_default:


______________________________
Record the TPG tag for e0b_default: ___________________________________________
NOTE: We will use multipath I/O (MPIO), not multiple connections per session (MCS), so
there is no need to change the default target portal groups.

TASK 2: CONFIGURE WINDOWS FOR MPIO

In this task, you log in to your assigned Windows Server 2008 machine and configure MPIO.
STEP ACTION

1.

Connect to your assigned Windows machine.

2.

If Server Manager doesnt automatically appear, click the Server Manager icon next to the Start
button on the Windows Server 2008 desktop.

Server Manager appears:

E14-3

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

3.

On the list in the left pane, click Features.


Currently, your system has two features installed. We will now install the MPIO feature.

4.

Click Add Features.


The Add Features Wizard appears.

5.

On the Select Features page, select Multipath I/O and click Next.

6.

On the Confirm Installation Selections page, click Install.


After the feature installs, the Installation Results page appears, indicating that the installation
was successful.
NOTE: If Windows automatic updating is disabled, a warning dialog box may appear.

7.
E14-4

Click Close.

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

TASK 3: INSTALL THE NETAPP DSM FOR WINDOWS

In this task, you will install NetApp Multipath I/O Device Specific Module (DSM) on your Windows Server
2008 system.
STEP ACTION

1.

On the desktop of your Windows Server 2008 system, click the ANCDA class files shortcut.
The shortcut takes you to C:\_files\ANCDA.

2.

Double-click ntap_win_mpio_3.4_setup_x64.msi to launch the DSM 3.4 installer.


NOTE: Data ONTAP 8.1 or later, please use the DSM 3.5 or later.
If a security warning appears, click Run to continue.
After a while, the DSM Wizard appears.

3.

On the title page of the DSM Wizard, click Next.

4.

Agree to the license agreement and click Next.

5.

Add the license provided by your instructor and click Next.

6.

On the Data ONTAP DSM Management Service Credentials page, add the administrator login
and password provided by your instructor and click Next.

7.

Review the driver information and click Next.

8.

Accept the default destination folder by clicking Next.

9.

Click the Install button.

10.

After the installation completes, click Finish and answer No at the prompt to restart.
NOTE: You will restart the system after you install Windows Host Utilities.

11.

If Server Manager doesnt automatically appear, click the Server Manager icon next to the Start
button.

12.

On the list in the left pane, expand the Diagnostics node.

13.

Click Device Manager.

14.

Expand the System devices node and verify that Data ONTAP DSM was installed.

15.

Right-click Data ONTAP DSM and select Properties.


The Properties dialog box appears.

16.

E14-5

Click the Driver tab and review the current driver version.

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

TASK 4: INSTALL THE NETAPP HOST UTILITIES FOR WINDOW

In this task, you will install the NetApp Windows Host Utilities Kit (HUK).
STEP ACTION

1.

On your Windows Server 2008 system, click the ANCDA class files shortcut.
The shortcut takes you to C:\_files\ANCDA.

2.

Double-click netapp_windows_host_utilities_5.3_x64.msi.
If prompted with a security warning, confirm and continue.

3.

On the title page of the installation wizard, click Next.

4.

Agree to the license agreement and click Next.

5.

On the Support for Multipathing page, select Yes, install support for Multipath I/O and click
Next.

6.

Confirm the destination folder and click Next.

7.

Click Install.

8.

After the installation is complete, click Yes to restart the Windows Server 2008 system.

9.

Wait about two minutes and attempt to reconnect to your Windows Server 2008 system.

10.

Open a command prompt window by clicking the shortcut on your desktop.

11.

Navigate to the installation folder for Windows Host Utilities:


C:\> cd

12.

C:\Program Files\NetApp\Windows Host Utilities

List the files in this directory:


C:\Program Files\NetApp\Windows Host Utilities> dir

13.

Check the version of Windows Host Utilities with this command:


C:\Program Files\NetApp\Windows Host Utilities> san_version
Windows Host Utilities 5.2.3297.2229
NetApp version: 5.2

TASK 5: CONFIGURE ISCSI ON WINDOWS

In this task, you log in to your assigned Windows machine and configure iSCSI for a first iSCSI session.
NOTE: There are several ways to configure the iSCSI service. We will use the iSCSI initiator method.
STEP ACTION

1.

If Server Manager isnt already open, click the Server Manager icon next to the Start button.

2.

In the left pane, expand the Configuration node and select Services.

E14-6

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

3.

Locate the Microsoft iSCSI Initiator Service.

4.

Right-click Microsoft iSCSI Initiator Service and select Properties.


The Microsoft iSCSI Initiator Service Properties dialog box appears.

5.

Ensure that the Startup type is Automatic.

6.

Click Start.

7.

Click OK to close the dialog box.


The iSCSI service should start every time that Windows is started.

8.

Click the Start button.

9.

In the Search programs and files text box, enter iscsi initiator.

E14-7

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

10.

Under the programs category, click iSCSI Initiator.


The iSCSI Initiator Properties dialog box appears:

11.

Click the Configuration tab.

12.

Record the Windows Server 2008 WWNN on the Master Configuration Worksheet.

E14-8

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

13.

Click the Discovery tab and then click the Discover Portal button.

The Discover Target Portal dialog box appears.


14.

Enter the IP address of e0a that you recorded on the Master Configuration Worksheet. Leave the
port as 3260.

15.

Click Advanced.
The Advanced Settings dialog box appears:

E14-9

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

16.

On the General Tab, from the Local adapter drop-down list, select Microsoft iSCSI Initiator.
From the Initiator IP drop-down list, select first interface on your Windows Server 2008
machine.

17.

Click OK.

18.

Click OK to add the target port.

19.

Click the Targets tab.


You now should see one discovered target:

What is the current status of this target? ___________________________


20.

Ensure the target is highlighted. Click the Properties button.


How many current sessions are there? _________________________________

21.

Click the Portal Groups tab.


How many portal groups has Windows identified? _______________________

22.

Click OK, which closes the Properties dialog box.

23.

On the Targets tab, ensure that storage systems IQN is highlighted and click Connect.
The Connect to Target dialog box appears.

24.

E14-10

Select Enable multi-path. Then click Advanced.

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

25.

Select these options:

Local adapter: Microsoft iSCSI Initiator


Initiator IP: the first interface on your Windows Server 2008 machine
Target portal IP: the first target portal IP address.

26.

Click OK.

27.

Click OK.
Back in the iSCSI Initiator Properties dialog box, the status of the target should now be
Connected.

E14-11

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

28.

Click Properties again.


The Properties dialog box appears.
What is the target portal group tag of the connect session? _________________
Which storage system and interface is this target portal group tag associated with?
___________________________________________________

29.

Click the Favorite Targets tab.


Because you accepted the default and made this a favorite target, the storage systems target
appears on this tab:

You have now successfully established connectivity between the Windows initiator and the
targets on the storage system.

TASK 6: CONFIRM AN ISCSI SESSION ON A STORAGE SYSTEM

In this task, you will log in to your assigned storage system and confirm an iSCSI session.
STEP ACTION

1.

From your assigned storage systems PuTTY Telnet window, enter the following command to
investigate the current iSCSI sessions:
system> iscsi session show

Does the storage system have any iSCSI sessions? _____________________________


How can you tell whether your assigned Windows machine is connected to your storage system?
___________________________________________

E14-12

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

TASK 7: CONFIGURE A SECOND ISCSI SESSION ON WINDOWS

In this task, you will log in to your assigned Windows machine and configure iSCSI for the second iSCSI
session.
STEP ACTION

1.

On your assigned remote Windows machine, ensure that the iSCSI Initiator Properties dialog
box is open to the Targets tab.

2.

On the Targets tab, ensure that storage systems IQN is highlighted and click the Properties
button.

3.

Click Add session.

4.

The Connect to Target dialog box appears. Select Enable multi-path and click Advanced.

5.

Select these options:

Local adapter: Microsoft iSCSI Initiator


Initiator IP: the second interface on your Windows Server 2008 machine
Target portal IP: the second target portal IP address

6.

Click OK.

7.

Click OK again.

8.

In the Discovered targets box, ensure that the IQN of the storage system is selected and click
Properties.

9.

Verify that there are two sessions, and select the second session.

E14-13

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

10.

Verify that the TPG tag is the TPG tag for the e0b_default TPG on the storage system.

11.

Click OK, which closes the iSCSI Initiator Properties dialog box.

TASK 8: CONFIRM THE SECOND ISCSI SESSION ON A STORAGE SYSTEM

In this task, you will log in to your assigned storage system and confirm an iSCSI session.
STEP ACTION

1.

Verify the iSCSI sessions by entering the following command:


system> iscsi session show

How many sessions does the storage system have with your Windows machine? __________
2.

Verify the iSCSI connections by entering the following command:


system> iscsi connection show

How many connections does each session have with your Windows machine ____________

TASK 9: INSTALL HOST UTILITIES ON RED HAT LINUX

In this task, you will install the NetApp Host Utility Kit for your Red Hat Linux system.
STEP ACTION

1.

Use PuTTY to log in to your assigned Red Hat system.


All of the files that you will need for these exercises have already been added to your exercise
environment in /_files/ANCDA.

2.

Copy the exercise files from their source location to a new working directory:
# cp /_files/ANCDA/* /tmp

3.

Change to the working directory:


# cd /tmp

4.

Extract the Host Utilities package:


# tar zxf netapp_linux_host_utilities_5_0.tar.gz

5.

Change to the installation directory of the Host Utilities software and install the software:
# cd netapp_linux_host_utilities_5_0
# ./install

E14-14

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

6.

Verify that Host Utilities was installed correctly:


# cd /opt/netapp/santools
# ./san_version

Example output:
NetApp Linux Host Utilities version 5.0
NOTE: In your /etc/profile file, in the PATH env variable, you should add
/opt/netapp/santools, for the Host Utilities tool. In the following steps you will be told to
change to this directory to run several of the tools. If you set your profile with this directory, you
can skip these steps.
7.

Verify the version of the Host Utilities sanlun tool:


# ./sanlun version

Example Output:
sanlun version 5.0.90.3515

TASK 10: INSTALL THE ISCSI SOFTWARE INITIATOR FOR RED HAT LINUX

In this task, you will install the iSCSI software initiator package on your Red Hat Linux system.
STEP ACTION

1.

Log in to your assigned Red Hat Linux system.

2.

Change the directory to your class working directory:


# cd /tmp

3.

Install the iSCSI software initiator package:


# rpm -ivh iscsi-initiator-utils-6.2.0.868-0.18.el5.x86_64.rpm

TASK 11: CONFIGURE THE ISCSI SOFTWARE INITIATOR ON RED HAT LINUX

In this task, you determine the WWNN of your Red Hat Linux system, examine the iscsid.conf configuration
file, start the iSCSI daemon (service), configure Ethernet adapters to be used by the iSCSI initiator, assign
Ethernet interfaces for iSCSI usage, and configure and establish iSCSI target discovery and sessions.
STEP ACTION

1.

Record the WWNN for the Red Hat Linux machine on the Master Configuration Worksheet:
# cat /etc/iscsi/initiatorname.iscsi

You can record it here, as well:


___________________________________________________________________________

E14-15

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

2.

Examine the contents of the iscsid.conf configuration file:


# cat /etc/iscsi/iscsid.conf | more

Notice that you can use this file to configure Internet Storage Name Service (iSNS), Challenge
Handshake Authentication Protocol (CHAP), and iSCSI settings. For now, leave all of the
default values.
3.

Start the iSCSI daemon (service):


# service iscsi start

4.

Verify that the daemon is running:


# service iscsi status

5.

Determine the current network interface card (NIC) configuration on your Red Hat Linux
system:
# ifconfig -a

Example output:
eth0

Link encap:Ethernet

inet addr:10.254.132.63

HWaddr 00:21:5E:6F:18:C4
Bcast:10.254.135.255
Mask:255.255.252.0

inet6 addr: fe80::221:5eff:fe6f:18c4/64 Scope:Link


UP BROADCAST RUNNING MULTICAST

MTU:1500

Metric:1

RX packets:11779 errors:0 dropped:0 overruns:0 frame:0


TX packets:3965 errors:0 dropped:0 overruns:0
collisions:0 txqueuelen:1000
RX bytes:1092477 (1.0 MiB)

TX bytes:412740 (403.0 KiB)

Interrupt:106 Memory:c8000000-c8012100

6.

Determine if any interfaces are currently configured:


# iscsiadm -m iface

Example output:
iscsiadm: No interfaces found.

7.

Configure an interface definition (iface0):


# iscsiadm -m iface -I iface0 --op=new

8.

Assign the Ethernet interface eth0 to the iSCSI-configured name iface0:


# iscsiadm -m iface -I iface0 --op=update -n iface.net_ifacename -v
eth0

9.

Verify the configured iSCSI interface definitions:


# iscsiadm -m iface

Example output:
iface0 tcp,default,eth0

E14-16

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

10.

Navigate to the configuration files in which the iSCSI interface definitions are located:
# cd /var/lib/iscsi/ifaces
# ls -l

Example output:
total 16
-rw------- 1 root root 147 Sep 23 04:18 iface0

11.

Examine the contents of the configuration files:


# cat iface0

Example output:
# BEGIN RECORD 2.0-868
iface.iscsi_ifacename = iface0
iface.net_ifacename = eth0
iface.hwaddress = default
iface.transport_name = tcp
# END RECORD

12.

Familiarize yourself with the iscsiadm tool, which you will use to configure and manage the
iSCSI initiator daemon.
To view syntax and options:
# iscsiadm -h

For a description of the options, review the manual page:


# man iscsiadm

13.

In the command-line interface for your Red Hat Linux software, enter this command:
# iscsiadm -m discovery -t st -p XXX.XXX.XXX.XXX -I iface0

NOTE: The IP address should be the address of e0a for your assigned storage system.
Example output:
10.254.133.239:3260,1000 iqn.1992-08.com.netapp:sn.101201757

14.

From Red Hat Linux, list the nodes and portals discovered and their TPG number:
# iscsiadm -m node

Example output:
10.254.133.239:3260,1000 iqn.1992-08.com.netapp:sn.101201757

15.

Reveiw the detailed information for the target node and portal:
# iscsiadm -m node -T iqn_returned_from_last_step

16.

On your storage system run this command:


system> iscsi session show

E14-17

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

17.

On the Red Hat Linux system, run this command:


# iscsiadm -m session

Are there any current sessions with Linux? _______________


18.

Log in to the storage system:


# iscsiadm -m node -l

If you have an open command-line interface session, on the storage console, you will see this
output:
system> ... ISCSI: New session from initiator iqn.199405.com.redhat:6d9443554d at IP addr 10.254.132.63

Now are there sessions on the storage system? ______________


19.

Enter this command to verify the iSCSI session:


system> iscsi session show

20.

Review the current iSCSI session or sessions on the initiator side:


# iscsiadm -m session

21.

Review the details for a specific session:


# iscsiadm -m session -i -r session_id_from_last_step

TASK 12: CONFIRM AN ISCSI SESSION OR ISCSI SESSIONS ON A STORAGE SYSTEM

In this task, you will confirm the existence of iSCSI session(s) established from your Red Hat Linux system.
STEP ACTION

1.

Determine if the iSCSI sessions that you saw on your Red Hat Linux system are also on your
storage system:
system> iscsi session show

Example output:
...
Session 38
Initiator Information
Initiator Name: iqn.1994-05.com.redhat:6d9443554d
ISID: 00:02:3d:01:00:00
Initiator Alias: dev05s2.development.netappu.com

How many sessions are there from your Red Hat Linux system? _________________
Does this match the number you saw on your Red Hat Linux system? ________

E14-18

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

STEP ACTION

2.

Review the details of a session:


system> iscsi session show -v session_number

Do the IP addresses from the initiator and target correspond


to the IP addresses on your Linux system and storage system? _________________
Which Ethernet interface is being used on your storage system? _______________
Is this interface enabled for iSCSI? ___________
END OF EXERCISE

E14-19

Accelerated NCDA Boot Camp Data ONTAP 7-Mode: iSCSI Connectivity

2011 NetApp, Inc. This material is intended only for training. Reproduction is not authorized.

Вам также может понравиться