SlideShare a Scribd company logo
1 of 24
iSCSI
Internet Small Computer System Interface
iSCSI
• iSCSI is a TCP/IP based protocol for sending
SCSI commands over IP based networks.
• This allows iSCSI infrastructure to extend
beyond a local LAN, and be used on a WAN or
even over the internet.
iSCSI
Benefits
• Low cost – iSCSI uses the existing network
infrastructure so there is no need to buy
expensive equipment.
• Easy installation and maintenance of iSCSI
SANs – commonly used TCP/IP network
protocols require less IT expertise. Therefore,
no special training is required for network
administrators.
Benefits
• Excellent performance – it is a very good alternative to
the more expensive Fibre Channel technology.
• No distance limitation – using IP networking solves the
problem with data replication to remote sites.
• Interoperability and flexibility – iSCSI uses standard
Ethernet switches so there is no need to install special
cabling and switches required with Fibre Channel, it can
also run at different Ethernet speed.
Benefits
• Compatibility – It is compatible with many
commonly used standards, respected and
recognized by the Internet Engineering Task Force
(IETF).
• Multipathing – iSCSI supports Multipathing to
improve network resiliency.
• Security – iSCSI offers security features such as
Challenge Handshake Authentication Protocol (2-
way CHAP) and Internet Protocol Security (IPsec).
iSCSI SANs are especially recommended
to organizations:
• with limited budget and IT infrastructure,
• spread across several physical locations and
willing to consolidate their storage resources,
• requiring remote data replication and disaster
recovery,
• needing immediate and fast access to data
and backup sets,
iSCSI SANs are especially recommended
to organizations:
• working as Application Service Providers
(ASPs), Internet Service Providers (ISPs) or
Storage Service Providers (SSPs),
• utilizing demanding server Virtualization
projects requiring network storage solutions.
Key iSCSI Terms
• IQN: iSCSI Qualified Names are used to identify both
targets and initiators.
• Target: Storage resource on an iSCSI server.
• Initiator: A Client is called an initiator.
• Node: A single iSCSI target or initiator.
• Portal: A portal is an IP address on a target or initiator.
Steps: Creating an iSCSI volume
Step 1: Create LVM Drive for LUNs (Logical Unit
Number)
Step 2: Create Logical Volumes for LUNs
Step 3: Define LUNs in Target Server
Commands to Create LVM Drive
Check the drive first:
# fdisk -l /dev/vda
Now, Create partition on that drive:
# fdisk -cu /dev/vda
• The option ‘-c‘ switch off the DOS compatible
mode.
• The option ‘-u‘ is used to listing partition tables,
give sizes in sectors instead of cylinders.
Commands to Create LVM Drive
# fdisk -cu /dev/vda
Choose n to create a New Partition:
Command (m for help): n
Choose p to create a Primary partition:
Command action
e extended
p primary partition (1-4): p
Commands to Create LVM Drive
Give a Partition number which you need to
create:
Partition number (1-4): 1
Define the size of that partition, use the default
settings to use full size of Drive.
Choose the type of partition:
Command (m for help): t
Commands to Create LVM Drive
Choose which partition want to change the type:
Selected partition 1
Hex code (type L to list codes): 8e
Changed system type of partition 1 to 8e (Linux LVM)
Check the changes by print (p) option to list the
partition table
Command (m for help): p
Write the changes using w to exit from fdisk
Commands to Create LVM Drive
• Reboot the system and list the Partition table
using the following fdisk command.
# fdisk -l /dev/vda
Commands to Create Logical Volumes
• Create Physical volume:
# pvcreate /dev/vda1
• Create a Volume group with name of iSCSI to
identify the group:
# vgcreate testvg /dev/vda1
• List volume group using vgs or vgdisplay:
#vgs testvg
Commands to Create Logical Volumes
• Create one or more Logical volumes:
# lvcreate -L 8G -n lv1 testvg
# lvcreate -L 8G -n lv2 testvg
• List the Physical volume, Volume group, logical
volumes to confirm:
# pvs && vgs && lvs
# lvs
Commands to Define LUNs in Target Server
• Install the package scsi-target-utils:
# yum –y install scsi-target-utils
• Start the service
# service tgtd start; chkconfig tgtd on
• Open and edit Target configuration file
‘/etc/tgt/targets.conf’
Commands to Define LUNs in Target Server
• Append the following volume definition in target
conf file.
iSCSI qualified name
2 LVs Shared for particular LUN.
Example:
<target iqn.2014-07.com.test:tgt1>
backing-store /dev/testvg/lv1
</target>
• Save and close the file
Commands to Define LUNs in Target Server
• Reload the configuration by starting tgd service
# /etc/init.d/tgtd reload
• Verify the available LUNs
# tgtadm --mode target --op show
Configure an iSCSI Initiator
• Install the package iscsi-initiator-utils:
# yum –y install scsi-initiator-utils
• Change the initiator name in the following file:
‘/etc/iscsi/initiatorname.iscsi’
• Start the service
# service iscsi start; chkconfig iscsi on
Discover the target
Use the iscsiadm command to start the iSCSI
discovery:
# iscsiadm -m discovery -t st -p 192.168.0.10
To show the Information about target:
# iscsiadm -m node
Log in to the target
Use the iscsiadm command to log in to
discovered iSCSI target:
# iscsiadm -m node –T <IQN name> -p 192.168.0.10 -l
• To stop using target:
# iscsiadm -m node –T <IQN name> -p 192.168.0.10 –u
To delete all information about a target:
# iscsiadm -m node –T <IQN name> -p 192.168.0.10 –op delete
List the iSCSI drives
• By Path
# ls –la /dev/disk/by-path
• By id
# ls –la /dev/disk/by-path

More Related Content

What's hot

What's hot (20)

Understanding Cisco’ Next Generation SD-WAN Technology
Understanding Cisco’ Next Generation SD-WAN TechnologyUnderstanding Cisco’ Next Generation SD-WAN Technology
Understanding Cisco’ Next Generation SD-WAN Technology
 
Vxlan deep dive session rev0.5 final
Vxlan deep dive session rev0.5   finalVxlan deep dive session rev0.5   final
Vxlan deep dive session rev0.5 final
 
Comparison between ipv4 and ipv6
Comparison between ipv4 and ipv6Comparison between ipv4 and ipv6
Comparison between ipv4 and ipv6
 
Internet Protocol Version 6
Internet Protocol Version 6Internet Protocol Version 6
Internet Protocol Version 6
 
Sigtran protocol
Sigtran protocolSigtran protocol
Sigtran protocol
 
Fibre Channel over Ethernet (FCoE), iSCSI and the Converged Data Center
Fibre Channel over Ethernet (FCoE), iSCSI and the Converged Data CenterFibre Channel over Ethernet (FCoE), iSCSI and the Converged Data Center
Fibre Channel over Ethernet (FCoE), iSCSI and the Converged Data Center
 
Nat pat
Nat patNat pat
Nat pat
 
Smart health NDNoT named data network of things for healthcare services
Smart health NDNoT named data network of things for healthcare servicesSmart health NDNoT named data network of things for healthcare services
Smart health NDNoT named data network of things for healthcare services
 
Chapter 15 : routing concepts
Chapter 15 : routing conceptsChapter 15 : routing concepts
Chapter 15 : routing concepts
 
Introduction to vxlan
Introduction to vxlanIntroduction to vxlan
Introduction to vxlan
 
IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6IP Address - IPv4 & IPv6
IP Address - IPv4 & IPv6
 
MPLS Presentation
MPLS PresentationMPLS Presentation
MPLS Presentation
 
Cisco IPv6 Tutorial
Cisco IPv6 TutorialCisco IPv6 Tutorial
Cisco IPv6 Tutorial
 
Dhcp ppt
Dhcp pptDhcp ppt
Dhcp ppt
 
Sctp tutorial
Sctp tutorialSctp tutorial
Sctp tutorial
 
Ccna rse chp6 VLAN
Ccna rse chp6 VLANCcna rse chp6 VLAN
Ccna rse chp6 VLAN
 
Layer 2 switching
Layer 2 switchingLayer 2 switching
Layer 2 switching
 
Understanding DPDK
Understanding DPDKUnderstanding DPDK
Understanding DPDK
 
IPv6
IPv6IPv6
IPv6
 
CCNP ROUTE V7 CH1
CCNP ROUTE V7 CH1CCNP ROUTE V7 CH1
CCNP ROUTE V7 CH1
 

Viewers also liked

Cloud foundry architecture and deep dive
Cloud foundry architecture and deep diveCloud foundry architecture and deep dive
Cloud foundry architecture and deep dive
Animesh Singh
 
Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines
anynines GmbH
 
OpenStack & the Evolving Cloud Ecosystem
OpenStack & the Evolving Cloud EcosystemOpenStack & the Evolving Cloud Ecosystem
OpenStack & the Evolving Cloud Ecosystem
Mark Voelker
 

Viewers also liked (19)

Fiber Channel over Ethernet (FCoE) – Design, operations and management best p...
Fiber Channel over Ethernet (FCoE) – Design, operations and management best p...Fiber Channel over Ethernet (FCoE) – Design, operations and management best p...
Fiber Channel over Ethernet (FCoE) – Design, operations and management best p...
 
Cloud Foundry: Infrastructure Options
Cloud Foundry: Infrastructure OptionsCloud Foundry: Infrastructure Options
Cloud Foundry: Infrastructure Options
 
Building a Production Grade PostgreSQL Cloud Foundry Service | anynines
Building a Production Grade PostgreSQL Cloud Foundry Service  | anyninesBuilding a Production Grade PostgreSQL Cloud Foundry Service  | anynines
Building a Production Grade PostgreSQL Cloud Foundry Service | anynines
 
Cloud foundry architecture and deep dive
Cloud foundry architecture and deep diveCloud foundry architecture and deep dive
Cloud foundry architecture and deep dive
 
OpenStack - heat on boarding
OpenStack - heat on boardingOpenStack - heat on boarding
OpenStack - heat on boarding
 
Simplifying openstack instances networking
Simplifying openstack instances networkingSimplifying openstack instances networking
Simplifying openstack instances networking
 
Everyday life with Cloud Foundry in a big organization (Cloud Foundry Days To...
Everyday life with Cloud Foundry in a big organization (Cloud Foundry Days To...Everyday life with Cloud Foundry in a big organization (Cloud Foundry Days To...
Everyday life with Cloud Foundry in a big organization (Cloud Foundry Days To...
 
Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines Cloud Foundry on OpenStack - An Experience Report | anynines
Cloud Foundry on OpenStack - An Experience Report | anynines
 
Garden introduction for dea users public
Garden introduction for dea users   publicGarden introduction for dea users   public
Garden introduction for dea users public
 
Deploy Cloud Foundry using bosh_bootstrap
Deploy Cloud Foundry using bosh_bootstrapDeploy Cloud Foundry using bosh_bootstrap
Deploy Cloud Foundry using bosh_bootstrap
 
OpenStack Load Balancer as a Service (LBaaS) with openSUSE Leap
OpenStack Load Balancer as a Service (LBaaS) with openSUSE LeapOpenStack Load Balancer as a Service (LBaaS) with openSUSE Leap
OpenStack Load Balancer as a Service (LBaaS) with openSUSE Leap
 
Cloud Foundry Days Tokyo 2016
Cloud Foundry Days Tokyo 2016Cloud Foundry Days Tokyo 2016
Cloud Foundry Days Tokyo 2016
 
Routeサービスを使ったCloud FoundryアプリのAPI管理
Routeサービスを使ったCloud FoundryアプリのAPI管理Routeサービスを使ったCloud FoundryアプリのAPI管理
Routeサービスを使ったCloud FoundryアプリのAPI管理
 
Circle of Code with Cloud Foundry
Circle of Code with Cloud FoundryCircle of Code with Cloud Foundry
Circle of Code with Cloud Foundry
 
Big Data in the Cloud? Yes, you can do it in OpenStack
Big Data in the Cloud? Yes, you can do it in OpenStackBig Data in the Cloud? Yes, you can do it in OpenStack
Big Data in the Cloud? Yes, you can do it in OpenStack
 
Cloud foundry presentation
Cloud foundry presentation Cloud foundry presentation
Cloud foundry presentation
 
OpenStack & the Evolving Cloud Ecosystem
OpenStack & the Evolving Cloud EcosystemOpenStack & the Evolving Cloud Ecosystem
OpenStack & the Evolving Cloud Ecosystem
 
Cloud infrastructures - Slide Set 6 - BOSH | anynines
Cloud infrastructures - Slide Set 6 - BOSH | anyninesCloud infrastructures - Slide Set 6 - BOSH | anynines
Cloud infrastructures - Slide Set 6 - BOSH | anynines
 
Cloud Foundry Technical Overview
Cloud Foundry Technical OverviewCloud Foundry Technical Overview
Cloud Foundry Technical Overview
 

Similar to iSCSI: Internet Small Computer System Interface

Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)
Michael Dobe, Ph.D.
 
Ciscorouterasavpnserver 100218045815-phpapp01
Ciscorouterasavpnserver 100218045815-phpapp01Ciscorouterasavpnserver 100218045815-phpapp01
Ciscorouterasavpnserver 100218045815-phpapp01
slavenvvv
 
Net app ecmlp2495163
Net app ecmlp2495163Net app ecmlp2495163
Net app ecmlp2495163
forum4user
 
E2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane ThirionE2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane Thirion
sthirion
 

Similar to iSCSI: Internet Small Computer System Interface (20)

Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)Apache Street Smarts Presentation (SANS 99)
Apache Street Smarts Presentation (SANS 99)
 
NCS: NEtwork Control System Hands-on Labs
NCS:  NEtwork Control System Hands-on Labs NCS:  NEtwork Control System Hands-on Labs
NCS: NEtwork Control System Hands-on Labs
 
Qnap iei partners_day_2016 1108
Qnap iei partners_day_2016 1108Qnap iei partners_day_2016 1108
Qnap iei partners_day_2016 1108
 
Fiware cloud developers week brussels
Fiware cloud developers week brusselsFiware cloud developers week brussels
Fiware cloud developers week brussels
 
FreeSWITCH on Docker
FreeSWITCH on DockerFreeSWITCH on Docker
FreeSWITCH on Docker
 
FreeSWITCH on Docker
FreeSWITCH on DockerFreeSWITCH on Docker
FreeSWITCH on Docker
 
Cloud Platform Symantec Meetup Nov 2014
Cloud Platform Symantec Meetup Nov 2014Cloud Platform Symantec Meetup Nov 2014
Cloud Platform Symantec Meetup Nov 2014
 
Introduction to Stacki - World's fastest Linux server provisioning Tool
Introduction to Stacki - World's fastest Linux server provisioning ToolIntroduction to Stacki - World's fastest Linux server provisioning Tool
Introduction to Stacki - World's fastest Linux server provisioning Tool
 
Decisions behind hypervisor selection in CloudStack 4.3
Decisions behind hypervisor selection in CloudStack 4.3Decisions behind hypervisor selection in CloudStack 4.3
Decisions behind hypervisor selection in CloudStack 4.3
 
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
Habitat talk at CodeMonsters Sofia, Bulgaria Nov 27 2018
 
Detailed Introduction To Docker
Detailed Introduction To DockerDetailed Introduction To Docker
Detailed Introduction To Docker
 
Tech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on LinuxTech-Spark: SQL Server on Linux
Tech-Spark: SQL Server on Linux
 
NGINX Installation and Tuning
NGINX Installation and TuningNGINX Installation and Tuning
NGINX Installation and Tuning
 
Deep Dive: OpenStack Summit (Red Hat Summit 2014)
Deep Dive: OpenStack Summit (Red Hat Summit 2014)Deep Dive: OpenStack Summit (Red Hat Summit 2014)
Deep Dive: OpenStack Summit (Red Hat Summit 2014)
 
DPDK Summit 2015 - Intel - Keith Wiles
DPDK Summit 2015 - Intel - Keith WilesDPDK Summit 2015 - Intel - Keith Wiles
DPDK Summit 2015 - Intel - Keith Wiles
 
Ciscorouterasavpnserver 100218045815-phpapp01
Ciscorouterasavpnserver 100218045815-phpapp01Ciscorouterasavpnserver 100218045815-phpapp01
Ciscorouterasavpnserver 100218045815-phpapp01
 
Best Practices for Running Kafka on Docker Containers
Best Practices for Running Kafka on Docker ContainersBest Practices for Running Kafka on Docker Containers
Best Practices for Running Kafka on Docker Containers
 
QNAP NAS Training 2016
QNAP NAS Training 2016QNAP NAS Training 2016
QNAP NAS Training 2016
 
Net app ecmlp2495163
Net app ecmlp2495163Net app ecmlp2495163
Net app ecmlp2495163
 
E2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane ThirionE2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane Thirion
 

Recently uploaded

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

iSCSI: Internet Small Computer System Interface

  • 1. iSCSI Internet Small Computer System Interface
  • 2. iSCSI • iSCSI is a TCP/IP based protocol for sending SCSI commands over IP based networks. • This allows iSCSI infrastructure to extend beyond a local LAN, and be used on a WAN or even over the internet.
  • 4. Benefits • Low cost – iSCSI uses the existing network infrastructure so there is no need to buy expensive equipment. • Easy installation and maintenance of iSCSI SANs – commonly used TCP/IP network protocols require less IT expertise. Therefore, no special training is required for network administrators.
  • 5. Benefits • Excellent performance – it is a very good alternative to the more expensive Fibre Channel technology. • No distance limitation – using IP networking solves the problem with data replication to remote sites. • Interoperability and flexibility – iSCSI uses standard Ethernet switches so there is no need to install special cabling and switches required with Fibre Channel, it can also run at different Ethernet speed.
  • 6. Benefits • Compatibility – It is compatible with many commonly used standards, respected and recognized by the Internet Engineering Task Force (IETF). • Multipathing – iSCSI supports Multipathing to improve network resiliency. • Security – iSCSI offers security features such as Challenge Handshake Authentication Protocol (2- way CHAP) and Internet Protocol Security (IPsec).
  • 7. iSCSI SANs are especially recommended to organizations: • with limited budget and IT infrastructure, • spread across several physical locations and willing to consolidate their storage resources, • requiring remote data replication and disaster recovery, • needing immediate and fast access to data and backup sets,
  • 8. iSCSI SANs are especially recommended to organizations: • working as Application Service Providers (ASPs), Internet Service Providers (ISPs) or Storage Service Providers (SSPs), • utilizing demanding server Virtualization projects requiring network storage solutions.
  • 9. Key iSCSI Terms • IQN: iSCSI Qualified Names are used to identify both targets and initiators. • Target: Storage resource on an iSCSI server. • Initiator: A Client is called an initiator. • Node: A single iSCSI target or initiator. • Portal: A portal is an IP address on a target or initiator.
  • 10. Steps: Creating an iSCSI volume Step 1: Create LVM Drive for LUNs (Logical Unit Number) Step 2: Create Logical Volumes for LUNs Step 3: Define LUNs in Target Server
  • 11. Commands to Create LVM Drive Check the drive first: # fdisk -l /dev/vda Now, Create partition on that drive: # fdisk -cu /dev/vda • The option ‘-c‘ switch off the DOS compatible mode. • The option ‘-u‘ is used to listing partition tables, give sizes in sectors instead of cylinders.
  • 12. Commands to Create LVM Drive # fdisk -cu /dev/vda Choose n to create a New Partition: Command (m for help): n Choose p to create a Primary partition: Command action e extended p primary partition (1-4): p
  • 13. Commands to Create LVM Drive Give a Partition number which you need to create: Partition number (1-4): 1 Define the size of that partition, use the default settings to use full size of Drive. Choose the type of partition: Command (m for help): t
  • 14. Commands to Create LVM Drive Choose which partition want to change the type: Selected partition 1 Hex code (type L to list codes): 8e Changed system type of partition 1 to 8e (Linux LVM) Check the changes by print (p) option to list the partition table Command (m for help): p Write the changes using w to exit from fdisk
  • 15. Commands to Create LVM Drive • Reboot the system and list the Partition table using the following fdisk command. # fdisk -l /dev/vda
  • 16. Commands to Create Logical Volumes • Create Physical volume: # pvcreate /dev/vda1 • Create a Volume group with name of iSCSI to identify the group: # vgcreate testvg /dev/vda1 • List volume group using vgs or vgdisplay: #vgs testvg
  • 17. Commands to Create Logical Volumes • Create one or more Logical volumes: # lvcreate -L 8G -n lv1 testvg # lvcreate -L 8G -n lv2 testvg • List the Physical volume, Volume group, logical volumes to confirm: # pvs && vgs && lvs # lvs
  • 18. Commands to Define LUNs in Target Server • Install the package scsi-target-utils: # yum –y install scsi-target-utils • Start the service # service tgtd start; chkconfig tgtd on • Open and edit Target configuration file ‘/etc/tgt/targets.conf’
  • 19. Commands to Define LUNs in Target Server • Append the following volume definition in target conf file. iSCSI qualified name 2 LVs Shared for particular LUN. Example: <target iqn.2014-07.com.test:tgt1> backing-store /dev/testvg/lv1 </target> • Save and close the file
  • 20. Commands to Define LUNs in Target Server • Reload the configuration by starting tgd service # /etc/init.d/tgtd reload • Verify the available LUNs # tgtadm --mode target --op show
  • 21. Configure an iSCSI Initiator • Install the package iscsi-initiator-utils: # yum –y install scsi-initiator-utils • Change the initiator name in the following file: ‘/etc/iscsi/initiatorname.iscsi’ • Start the service # service iscsi start; chkconfig iscsi on
  • 22. Discover the target Use the iscsiadm command to start the iSCSI discovery: # iscsiadm -m discovery -t st -p 192.168.0.10 To show the Information about target: # iscsiadm -m node
  • 23. Log in to the target Use the iscsiadm command to log in to discovered iSCSI target: # iscsiadm -m node –T <IQN name> -p 192.168.0.10 -l • To stop using target: # iscsiadm -m node –T <IQN name> -p 192.168.0.10 –u To delete all information about a target: # iscsiadm -m node –T <IQN name> -p 192.168.0.10 –op delete
  • 24. List the iSCSI drives • By Path # ls –la /dev/disk/by-path • By id # ls –la /dev/disk/by-path