View
212
Download
0
Category
Tags:
Preview:
Citation preview
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Host Installation and Integration for Block
Upon completion of this module, you should be able to:• Describe Linux storage connectivity limits and guidelines• Describe the implementation of Linux FC connectivity• Describe the implementation of Linux iSCSI connectivity
Linux Host Installation and Integration for Block 1
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Host Installation and Integration for Block
This lesson covers the following topics:• Linux system limits and guidelines• Linux HBA utilities• Linux data alignment
Lesson 1: Linux storage connectivity
Linux Host Installation and Integration for Block 2
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Connectivity: Requirements
• One or more VNX storage systems• One or more Linux hosts• Supported HBAs, HBA drivers, switches and cables• Correctly configured switch zoning• Correctly configured network• A management station in the environment
Supported host and OS Supported browser Supported JRE Network connectivity to storage systems
3Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Operating System Limits and Guidelines
• 16 Fibre Channel initiator ports per Linux host (Single or dual ported)• No mixing of HBAs from different vendors or HBAs with different PCI-interfaces (PCI-Express
with PCI-X HBAs)
Host Initiators
SAN connections used for multipathing must be homogenous
• The number of logical units seen by a host system is dependent on the OS SCSI scan algorithm and HBA LUN scan limits
Logical Units
Supported Protocols: Fibre Channel, Fibre Channel over Ethernet (FC0E), and iSCSI
4Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Host HBA Utilities
• Depending on the supported HBA one of the following utilities can be used to view host connectivity Emulex HBAs: OneCommand Manager Qlogic: SANsurfer CLI or GUI Brocade: Host Connectivity Manager
5Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Emulex OneCommand Manager: Port Information
6Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
OneCommand Manager: Target Mapping tab
7Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Qlogic SANsurfer scli example
8Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Brocade Host Connectivity Manager
9Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Using fdisk to Align a Linux Partition
2048
Select the primary partition
Enter expert mode
Offset to the begin at 128
Write the changes to disk
Create a new partition
10Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Host Installation and Integration for Block
During this lesson the following topics were covered:• Linux system limits and guidelines• Linux HBA utilities• Linux data alignment
Lesson 1: Summary
Linux Host Installation and Integration for Block 11
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Host Installation and Integration for Block
This lesson covers the following topics:• VNX FC connections to a Linux host• VNX FCoE connections to a Linux host• VNX iSCSI connections to a Linux host
Lesson 2: Linux FC and iSCSI Connectivity
Linux Host Installation and Integration for Block 12
Copyright © 2014 EMC Corporation. All Rights Reserved.
Viewing Block Storage Ports
Linux Host Installation and Integration for Block 13
Copyright © 2014 EMC Corporation. All Rights Reserved.
Initiator Registration Records: Fibre
Number of initiators is model dependent
• Some HBAs and CNAs have two ports• Each path consumes one initiator record
An initiator is an HBA or CNA port that can access the storage system• Single path• Multipath• Alternate path
Access from a server to an SP in a storage system can be:
Linux Host Installation and Integration for Block 14
Copyright © 2014 EMC Corporation. All Rights Reserved.
Initiator Registration Records Format: Fibre Channel• Hostname• Host IP address• Host HBA WWNs
128 bit number - WWNN + WWPN
• VNX port WWNs 128 bit number - WWNN + WWPN
• Operating system type Allows appropriate response to host SCSI commands
Linux Host Installation and Integration for Block 15
Copyright © 2014 EMC Corporation. All Rights Reserved.
Unisphere Host Initiators: Fibre
Linux Host Installation and Integration for Block 16
Copyright © 2014 EMC Corporation. All Rights Reserved.
Initiator Information: Fibre
Linux Host Installation and Integration for Block 17
Copyright © 2014 EMC Corporation. All Rights Reserved.
Emulex hbacmd listbas and targetmappings commands
VNX port numbers
Linux Host Installation and Integration for Block 18
Copyright © 2014 EMC Corporation. All Rights Reserved.
Qlogic SANsurfer scli example
Linux Host Installation and Integration for Block 19
Copyright © 2014 EMC Corporation. All Rights Reserved.
Viewing SP Fibre Channel Port Properties
Linux Host Installation and Integration for Block 20
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Servers and FCoE CNA Adapters
Linux Host Installation and Integration for Block 21
Copyright © 2014 EMC Corporation. All Rights Reserved.
Initiator Registration Records: iSCSI Names
• iSCSI address Uniquely identifies nodes Two variations
iqn. – iSCSI Qualified Name (IQN) iqn.1992-04.com.emc:cx.fnm00130702376.a5 iqn.1992-04.com.emc:cx.fnm00130702376.b5
eui. – Extended Unique Identifier (EUI) eui.50060162AEA5574E
Linux Host Installation and Integration for Block 22
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux iSCSI NIC Initiator File and Target Discovery• Each server connected to an iSCSI storage system must have a
unique iSCSI initiator name for its NICs• Linux iSCSI driver gives the same name to all NICs in a server• /etc/initiatorname.iscsi
Displays the host iscsi iqn initiator name
• /var/lib/iscsi/nodes Displays discovered iSCSI target ports and iqn identifier
Linux Host Installation and Integration for Block 23
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux initiator and target discovery commands
Display iscsi initiator name
Display iscsi target port iqn names
Displays iscsi network IP address
Directory for iscsi node information
Linux Host Installation and Integration for Block 24
Copyright © 2014 EMC Corporation. All Rights Reserved.
Unisphere Host Initiators: iSCSI
Linux Host Installation and Integration for Block 25
Copyright © 2014 EMC Corporation. All Rights Reserved.
Initiator Information: iSCSI
Click icon to add picture
Linux Host Installation and Integration for Block 26
Copyright © 2014 EMC Corporation. All Rights Reserved.
Viewing iSCSI Front-end Port Properties
Linux Host Installation and Integration for Block 27
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Host Installation and Integration for Block
During this lesson the following topics were covered:• VNX FC connections to a Linux host• VNX FCoE connections to a Linux host• VNX iSCSI connections to a Linux host
Lesson 2: Summary
Linux Host Installation and Integration for Block 28
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Host Installation and Integration for Block
This lesson covers the following topics:• Implementing Linux FC Connectivity• Implementing Linux iSCSI Connectivity
Lesson 3: Implementing Linux Connectivity
Linux Host Installation and Integration for Block 29
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Connectivity Steps
Check and validate all host to VNX connectivity• OCManager utility
(Emulex)• SANsurfer (Qlogic)• Unisphere Initiators • naviseccli –h <SP IP
address> port –list –hba
• Unisphere Server Utility for iSCSI
Create a storage
group, add LUNs and
connect your Linux host
Perform a LUN scan or reboot the host to see the newly
provisioned LUNs
Run fdisk • Partiton
disk• Create a
file system• Mount the
file system
Linux Host Installation and Integration for Block - 30
Copyright © 2014 EMC Corporation. All Rights Reserved.
Host Registration
Registration makes a host known to the storage system
• Automatically• Manually
Connectivity depends on the protocol being used:
• Fabric logins tell the VNX which ports and HBAs are connected• iSCSI logins tell the VNX which ports and initiators (hardware or
software based) are connected
31Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Unisphere Host Agent InstallationDownload the latest software
EMC Online Support website
Verify that host agent is installed:
rpm –qa | grep UnisphereHostAgent*
Same procedures are used to download and install other packages (Navisphere CLI, Unisphere Server Utility, admsnap)
Agent can be started and stopped • /
etc/init.d
Linux Host Installation and Integration for Block 32
Copyright © 2014 EMC Corporation. All Rights Reserved.
Configuring the Unisphere Host Agent
• Host agent configuration file must include an entry that defines the user who will issue the CLI commands as a privileged user
Linux Host Installation and Integration for Block 33
Copyright © 2014 EMC Corporation. All Rights Reserved.
Hostagent Commands
Linux Host Installation and Integration for Block
• Hostagent can be: Started Stopped Verified
Execute the ./hostagent command/s from the /etc/init.d directory
Verify agent status
Stop the agent
Verify the hostagent process is stopped
Start the agent
Verify the hostagent is running
34
Copyright © 2014 EMC Corporation. All Rights Reserved.
Verify Host Agent with Unisphere
Linux Host Installation and Integration for Block
Selecting the LUN Status tab and clicking on Updateproduces a Error when the agent is not available.
35
Copyright © 2014 EMC Corporation. All Rights Reserved.
Naviseccli port and getagent Commands
Linux Host Installation and Integration for Block 36
Copyright © 2014 EMC Corporation. All Rights Reserved.
Unisphere Server Utility
Linux Host Installation and Integration for Block 37
Copyright © 2014 EMC Corporation. All Rights Reserved.
Creating a Storage Group
38Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Adding LUNs to a Storage Group
39Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
Adding Hosts to a Storage Group
40Linux Host Installation and Integration for Block
Copyright © 2014 EMC Corporation. All Rights Reserved.
LUN Scanning
• Mechanisms for reconfiguring devices on a Linux host System Reboot
# reboot HBA driver reload Echoing the SCSI device list in /proc Executing a SCSI scan function through attributes exposed
to /sys SCSI scan through HBA vendor scripts
lun_scan for Emulex
Linux Host Installation and Integration for Block 41
Copyright © 2014 EMC Corporation. All Rights Reserved.
• After a reboot or bus rescan, verify the LUN is available to the OS by opening the scsi file from the /proc/scsi directory. LUN 60 is now available.
Verifying LUNs after a reboot or rescan: /proc/scsi
LUN as viewed in the storage group Selected LUNs
Linux Host Installation and Integration for Block 42
Copyright © 2014 EMC Corporation. All Rights Reserved.
Create and mount a Linux File System mkfs.ext3 to create a file system on the emcpower partiton
mkdir to make a directory and mount the file on the directory
Use touch <data> to write data to the mounted file system
Linux Host Installation and Integration for Block 43
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux iSCSI CHAP Configuration
Initiator or Mutual CHAP
Enable CHAP security for the NIC or iSCSI HBA before configuring CHAP on the storage system
CHAP data on the target must be the same on each NIC initiator.
Linux/driver revisions use different utilities and/or configuration files
iscsi.conf file (RH 4)
iscsiadm command for (RH 5 )
Linux Host Installation and Integration for Block 44
Copyright © 2014 EMC Corporation. All Rights Reserved.
Linux Host Installation and Integration for Block
During this lesson the following topics were covered:• Implementing Linux FC Connectivity• Implementing Linux iSCSI Connectivity
Lesson 3: Summary
Linux Host Installation and Integration for Block 45
Copyright © 2014 EMC Corporation. All Rights Reserved.
Summary
Key points covered in this module:• Connectivity requirements include:
Supported HBAs, HBA drivers, vendor management software, and proper cabling to the fabric switches.
Fabric switches properly configured and zoned Management station with supported OS, Web Browser, Java, and
network connectivity to the VNX.
• Several configuration are key to successful host integration, such as initiator records and port properties
• Steps to implement Linux connectivity in both a Fibre Channel and iSCSI environment.
Linux Host Installation and Integration for Block 46
Recommended