Wednesday 30 November 2011


Fibre Channel Switch setup
====================
 I. FC Switch configuration  (Ex: Brocade )                                                                                                                               
  1. Open up a HyperTerminal
  2. Login as admin
  3. Enter password for password
  4. Type in configure
    1. Configure entire switch
  5. Type in Help
    1. List commands possible
  6. Type ipAddrSet
  7. Enter the Ethernet IP address
    1. Get from Tom York
  8. Enter the common SubNet Mask
    1. 255.255.252.0
  9. Hit enter twice after SubNet Mask
    1. Use default values
  10. Enter the gateway number, which is the same throughout the lab
    1. 147.145.175.254
  11. When ask to set respond by entering <y>
  12. Now type ipAddrShow
    1. Make sure the ip address held
  13. Now reboot
    1. This will take several minutes

 

II. Enable the Switches

  1. Connect to the internet
  2. Enter the address http:// ip address of the switch
  3. Now click on zone admin
  4. Enter admin for user name
  5. And enter password for password
  6. For zone selection select switch/port level zoning
  7. And click <ok>
  8. Click port zone tab
  9. Click create zone
  10. Name zone
  11. Go to switch port, domain and select ports 0 through 7
  12. Click add mem =>
  13. Create another zone
  14. Select ports 8 through 15
  15. Now select port config tab
  16. Highlight both new zone add them
    1. Under file zones
  17. Add mem =>
  18. Click enable config and then apply and okay
    1. All located on bottom of screen

                                                                                                                   
Switch Initialization:
·         At the Power ON, boot PROM diagnostics :
Ø       Verify CPU DRAM Memory.
Ø       Initialize base Fabric Operating System (FOS).
·         The Initialized FOS does the following:
Ø       Execute Power-On Self Test (POST) on switch.
Ø       Initialize ASICs & Front panel.
Ø       Initialize link for all ports (put online).
Ø       Explore the Fabric and determine the Principal Switch.
Ø       Assign Addresses to Ports.
Ø       Build Unicast routing table.
Ø       Enable N-Port operations.

Fabric Port Initialization Process: (From Switch Prospective)

Transition 1: At the beginning, verify if anything is plugged to Switch Port.
Transition 2: At FL-Port, Is there any Loop connections present in the Switch.
Transition 3: At G-Port, Verifying if any other (switch or Hubs) devices connected.
Transition 4: After G-Port, Verifying if Switch or Point-to-Point devices connected.

Communication Protocols:
  • Fabric Devices typically
Ø       FLOGI à PLOGI to Name Server à SCR to Fabric Controller à Register & Query [using FC Common Transport (FC_CT) Protocol] à LOGON.
  • Loop Devices typically
Ø       PRIVATE NL: LIP (PLOGI & PRLI will enable private storage devices that accept PRLI & thus “appear” Fabric capable)
Ø       PUBLIC NL: LIP à FLOGI à PLOGI à SCR à Register & Query à LOGO & then PLOGI à & Communicate with other end nodes in the fabric.
Ø       LIP Process include: LIP, LISM, LIFA, LIPA, LIHA, LISA and LIRP & LILP.

Friday 25 November 2011

Create SWAP file system


What is swap partition?

Swap partition is used for paging in memory management method by which computer can store and retrieve data from secondary storage (Hard disk) and then for use in primary storage (RAM).

What is paging?

Operating system retrieves data from secondary storage in same size blocks called  pages

Why its required?

The main purpose of this file system is when an Application or process data not fit into physical memory (RAM) then disk storage (Hard disk) is used as temporary memory.

Example:Your system having 1GB RAM and running Apache web server and because of huge traffic on server 1 GB RAM exceded. Then memory management schemes moved the low proiprty process (tasks) to Swap file sysem and started execute remaining high priority process first.

If system needs run moved process then it copies pages from swap partion to System RAM.

what is the size of swap partition?

Common recommendation is 2 times of your physical RAM.

But According to Open BSD FAQ:

Nonsense rule: Twice the size of your main system RAM for Servers

Many people follow an old rule of thumb that your swap partition should be twice the size of your main system RAM. This rule is nonsense. On a modern system, that's a LOT of swap, most people prefer that their systems never swap. You don't want your system to ever run out of RAM+swap, but you usually would rather have enough RAM in the system so it doesn't need to swap

My recommendation: If you are a kernel hacker (debugging and fixing kernel issues) and generating core dumps, you need twice the RAM swap space.

example: Your server having 2GB RAM then Swap partion should be 4GB

How to create swap partition?

There are 2 methods

1.While installing new OS
2.After installing OS


While installing new OS

While installing new OS you have to select new partion of file system type SWAP with Size.

After installing OS
Check previous swap partitions and their size as below.

cat /proc/swaps
swapon -s
free -m
top

Create a file for swap usage as shown below







Use the mkswap command to make our file swap-consumable for the Linux kernel. Again as root, carefully 








To turn on our swap file, we should run swapon







Add the following line to /etc/fstab and reboot the system for the swap
to take into effect.
/root/swap-fs swap swap defaults 0 0

Thursday 24 November 2011

100 Storage Interview questions


[ Hard Disk ]

1. Explain the inner structure or layout of a Hard disk ?
2. Explain what is meant by CHS ?
3. What is Cylinder,Head,Sector,Track,clusters ?
4. What is LBA ?
5. Name some of the hard disk vendors ? What are the specifications of a hard disk you consider when you are working as storage admin or storage tester ?
6. Explain CPACS( Capacity,Performance,Availability,Cost,Scalability) importance in Storage ?
7. Name some of the Storage components ?
8. Explain each of below Storage components
            Hosts [ Servers ]
            Internetworking Components
            Network Devices [ Switches , Hubs ]
            Cable Connectivity
            Storage Subsystems
            Hard drives
            Tape drives
            JBOD [ Just a Bunch Of Disks ]
            Enclosures
            Arrays
            NAS [ Network attached Storage ]
            SAN [ Storage Area Network ]
9. Explain the difference between DAS-NAS-SAN ?
10.Explain below standards or Protocol interfaces ?
            IDE   : Integrated Device Electronics
            ATA   : Advanced Technology Attachment
            SATA : Serial ATA
            SCSI  : Small Computer System Interface
            SAS   : Serial attached SCSI
            FC     : Fibre Channel
            ISCSI : SCSI over IP
11. Sort above mentioned protocols interms of Performance  and Cost ?

[ MAGNETIC TAPE ]

12. What is a magnetic tape ?
13. Mention different types of magnetic tapes ?

[ STORAGE OPERATING SYSTEMS ]

14. Mention some of the major operating systems which you have worked on with respect to Storage experience ?
15. Mention different processor types & latest processors what you have used in your work ?
16. Why we need to be aware of processor & OS combinations ?
17. What difference a 64 bit Windows 2003 Server from normal 32 bit ? Which processors are 32 bit & 64 bit from Intel ?

[  SCSI  ]

18. What was the name for SCSI before it was standardised by ANSI ?
19. Why SCSI had very good market share compared to ATA/IDE/PATA ?
20. Whats Ultra1,Ultra2,Ultra3 in SCSI ?
21. Mention the difference between Narrow & Wide SCSI ?
22. What is the maximum no. of devices supported in narrow,wide SCSI?
23.I have a SCSI peripheral but I do not know if it has the single-ended, HVD or LVD interface. Is there an easy way to tell?
24. Explain SE ?
25. What is LVD & HVD ?
26. Differentiate between SE, LVD, HVD ?
27. Mention the advantages of SCSI ?
28. WHat is meant by Hot plug or Hot swap ?
29. Among IDE/ATA, SCSI, SAS, SATA , FC which ones support Hot plug/Hot swap ?
30. What is NCQ ?
31. What is TCQ ?
32. What is SCSI ID & why is it important ?
33. HOw SCSI id is configured for a SCSI hard disk drive (HDD) ?
34. Mention device types supported in SCSI 3 ?
35. Mention device types supported in SCSI 2 ?
36. Mention device types supported in SCSI 1 ?
37. Give examples for each of the below :
            Block devices (SBC)
            Stream devices (SSC)
            Graphic devices (SGC)
            Medium changer devices (SMC)
            RAID Controllers (SCC)
            CD-ROMS (MMC)
38. Explain connector types & their no. of pins in SCSI ?
39. What is the maximum length of cable permitted in SCSI ?
40. What is daisy chaining ?
41. What are the different types of SCSI cards ?
42. Mention different SCSI phases ?
43. Explain what happens in each of the below phases :
            arbitration
            selection
            message out
            message in
            command data out
            data in           
            status
            bus free
44. What is a terminator & why is it needed in SCSI ?
45. Mention some SCSI commands ?
46. Explain each of below
            -Test unit ready:
            -Inquiry:
            -Request sense:
            -Start/Stop unit:
            -Read capacity:
            -Format unit
            -Read (four variants)
            -Write (four variants)
            -Log sense:
            -Mode sense:
            -Mode select:
47. What is SCSI arbitration and selection ? How is this resolved ?
48. Name some of the vendors of SCSI HBA,SCSI hard drives ?
49. Does SCSI work in both directions (is it a bidirectional bus ) ?
50. What is "multimode LVD" or LVD/MSE SCSI?
51. What are the benefits of LVD SCSI?
52. Is LVD SCSI backward compatible?
53. What is Ultra160 or U160 SCSI?
54. I have heard of U160/m SCSI. What is it?
55. Is Ultra160 SCSI backward compatible?
56. Is Ultra 160 SCSI better than fibre channel?
57. Is Ultra 160 SCSI better than EIDE?
58. What is Fast-20 [or Fast-40 or Fast-80] SCSI?
59. Can I connect an Ultra 2 Wide (LVD) disk to an Ultra Wide adapter?
60. What is Double Transition clocking?
61. What is "Domain Validation"?
62. What is CRC?
63. I recently purchased a new SCSI drive with an SCA (or SCA-2) connector. How do I connect this to my cabled SCSI system?
64. What is QAS?
65. What is SCSI "packetization" (also called information units)?
66. What are the five optional features of Ultra 160 (Ultra 3) SCSI?
67. All the new hard disk drives have the LVD/MSE interface. Can I use them on a Narrow single-ended SCSI bus?
68. I know I can place a LVD/MSE peripheral on a single-ended bus, but the LVD interface is Wide (34 pair cables) and the single-ended bus is Narrow (25 pair cables). Any problems here?
69. Can I attach Narrow devices to a Wide SCSI bus?
70. I have heard the term "idc" applied to internal SCSI ribbon cables. What does it mean?
71. Can I attach Wide peripherals to a Narrow SCSI bus?
72. I note that in several of your FAQs you recommend the use of 68-pin to 50-pin adapters. Aren't they "impedance lumps" in the SCSI transmission line that can cause reflections and associated problems?
73. I had a problem with my SCSI bus. It was much slower than I thought it should be. When I used a new SCSI cable that was six feet longer than the one it replaced, the system performance returned to what I think it should be. Why?
74. How can I connect a HVD device to my single-ended bus? [or vice versa]
75. How can I connect a HVD device to my LVD bus?
76. I have a LVD/MSE bus with several multimode peripherals, and I want to add a single-ended peripheral to it. I know that LVD/MSE is backward compatible through the single-ended interface, but when I add the single-ended peripheral, the LVD peripherals really slow down. Can something be done to resolve this.
77. How can I connect a LVD peripheral to my single-ended SCSI bus?
78. Why does my LVD/MSE bus slow down when I connect even one single-ended peripheral?
79. I connected what I believed to be a single-ended peripheral to my multimode (LVD/MSE) bus, thinking the bus would switch to the single-ended mode and operate, although at a slower speed. The bus simply shut down. What happened?
80. How can I connect a LVD peripheral to an HVD SCSI bus?
81. What are LUNs? why are they important ?
82. Can I have more than one computer on my SCSI bus?
83. What is the difference between SCSI and IDE (or EIDE or ATAPI)?
84. Among SCSI or IDE which is better for enterprise storage  and for desktop ?
85. Will my single-ended to differential converter also do differential to single-ended conversion?
86. terminators. Where should they be placed?
87. What is the difference between passive and active terminators?
88. Should I use passive or active terminators?
89. I need a terminator for my SCSI bus consisting of a number of HVD disk drives. I do not need a pass-through HVD terminator, but that is all I can find. Can I use it for the terminator at the end of this HVD bus?
90. How can I tell if an unmarked terminator is SE or differential?

[ SAN Related Interview Questions ]

91. What is LUN masking?
92. What is SAN zoning?
93. What are different types of zoning & how do they differ ?
94. What are hard and soft zoning? What is port zoning ? What is WWN zoning ?
95. What is a World Wide Name (WWN) & why is it important ?
96. In a FC HBA how can i find WWN ?
97. How are iSCSI, iFCP and FCIP secured over IP networks?
98. What are the differences between FC & iSCSI ?
99. Mention some of the issues you faced while working on SAN & how did you resolve them ?
100.What was the most challenging troubleshooting you did while working on SAN. Please give the steps & commands used ?


Wednesday 23 November 2011

RAID Q & A


1. What is RAID?
Redundant Array of Independent Drives (or Disks), also known as Redundant Array of Inexpensive Drives (or Disks) (RAID) is an important term for data storage schemes that divide and/or replicate data among multiple hard drives. They offer, depending on the scheme, increased data reliability and/or throughput.

RAID is a way of storing the same data in different drives(thus, redundantly) on multiple hard disks.

2. What are the advantages of RAID?
Increased redundancy
Increased data availability
Higher READ/Write performance in some RAID levels
Higher Data throughput
better reliability

    *  Higher Data Security: Through the use of redundancy, most RAID levels provide protection for the data stored on the array. This means that the data on the array can withstand even the complete failure of one hard disk (or sometimes more) without any data loss, and without requiring any data to be restored from backup. This security    feature is a key benefit of RAID and probably the aspect that drives the creation of more RAID arrays than any other. All RAID levels provide some degree of data protection, depending on the exact implementation, except RAID level 0.
    * Fault Tolerance: RAID implementations that include redundancy provide a much more reliable overall storage subsystem than can be achieved by a single disk. This means there is a lower chance of the storage subsystem as a whole failing due to hardware failures. (At the same time though, the added hardware used in RAID means the chances of having a hardware problem of some sort with an individual component, even if it doesn't take down the storage subsystem, is increased; see this full discussion of RAID reliability for more.)
    * Improved Availability: Availability refers to access to data. Good RAID systems improve availability both by providing fault tolerance and by providing special features that allow for recovery from hardware faults without disruption. See the discussion of RAID reliability and also this discussion of advanced RAID features.
    * Increased, Integrated Capacity: By turning a number of smaller drives into a larger array, you add their capacity together (though a percentage of total capacity is lost to overhead or redundancy in most implementations). This facilitates applications that require large amounts of contiguous disk space, and also makes disk space management simpler. Let's suppose you need 300 GB of space for a large database. Unfortunately, no hard disk manufacturer makes a drive nearly that large. You could put five 72 GB drives into the system, but then you'd have to find some way to split the database into five pieces, and you'd be stuck with trying to remember what was were. Instead, you could set up a RAID 0 array containing those five 72 GB hard disks; this will appear to the operating system as a single, 360 GB hard disk! All RAID implementations provide this "combining" benefit, though the ones that include redundancy of course "waste" some of the space on that redundant information.
    * Improved Performance: Last, but certainly not least, RAID systems improve performance by allowing the controller to exploit the capabilities of multiple hard disks to get around performance-limiting mechanical issues that plague individual hard disks. Different RAID implementations improve performance in different ways and to different degrees, but all improve it in some way. See this full discussion of RAID performance issues for more.



3. What are different levels of RAID?
There are many levels like
RAID 0,RAID 1,RAID 2,RAID 3,RAID 4,RAID 5,RAID 10,RAID 01,RAID 50,RAID 6
But popular are RAID 0,RAID 1,RAID 5,RAID 10,RAID 01,RAID 50,RAID 6
generally used are R0,R1,R5

4. Explain RAID0, RAID1, RAID5 ?
RAID 0:
The lowest designated level of RAID, level 0, is actually not a valid type of RAID. It was given the designation of level 0 because it fails to provide any level of redundancy for the data stored in the array. Thus, if one of the drives fails, all the data is damaged.

RAID 0 uses a method called striping. Striping takes a single chunk of data like a graphic image, and spreads that data across multiple drives. The advantage that striping has is in improved performance. Twice the amount of data can be written in a given time frame to the two drives compared to that same data being written to a single drive.

RAID 1

RAID version 1 was the first real implementation of RAID. It provides a simple form of redundancy for data through a process called mirroring. This form typically requires two individual drives of similar capacity. One drive is the active drive and the secondary drive is the mirror. When data is written to the active drive, the same data is written to the mirror drive.

RAID 5

This is the most powerful form of RAID that can be found in a desktop computer system. Typically it requires the form of a hardware controller card to manage the array, but some desktop operating systems can create these via software. This method uses a form of striping with parity to maintain data redundancy. A minimum of three drives is required to build a RAID 5 array and they should be identical drives for the best performance.


5. Whats the difference between RAID0 & RAID1 ?

RAID 0+1

This is a hybrid form of RAID that some manufacturers have implemented to try and give the advantages of each of the two versions combined. Typically this can only be done on a system with a minimum of 4 hard drives. It then combines the methods of mirroring and striping to provide the performance and redundancy. The first set of drives will be active and have the data striped across them while the second set of drives will be a mirror of the data on the first two.

RAID 10 or 1+0

RAID 10 is effectively a similar version to RAID 0+1. Rather than striping data between the disk sets and then mirroring them, the first two drives in the set are a mirrored together. The second two drives form another set of disks that is are mirror of one another but store striped data with the first pair. This is a form of nested RAID setup. Drives 1 and 2 are a RAID 1 mirror and drives 3 and 4 are also a mirror. These two sets are then setup as stripped array.


6. Whats the difference between RAID1 & RAID5 ?
RAID1 : Minimum 2 drives are required . Gives only 50% disk space.

RAID5 : Minimum 3 drives are required . Gives only (n-1)X Capacity where n is the no. of disks, disk space.


7. Whats the difference between RAID3 & RAID5 ?
RAID 3 and RAID 4: Striped Set (3 disk minimum) with Dedicated Parity, the parity bits represent a memory location each, they have a value of 0 or 1, whether the given memory location is empty or full, thus enhancing the speed of read and write. : Provides improved performance and fault tolerance similar to RAID 5, but with a dedicated parity disk rather than rotated parity stripes. The single disk is a bottle-neck for writing since every write requires updating the parity data. One minor benefit is the dedicated parity disk allows the parity drive to fail and operation will continue without parity or performance penalty.

RAID 5 does not have a dedicated parity drive but the parity is rotated across all the drives hence the parity is distributed.
RAID 5: Striped Set (3 disk minimum) with Distributed Parity: Distributed parity requires all but one drive to be present to operate; drive failure requires replacement, but the array is not destroyed by a single drive failure. Upon drive failure, any subsequent reads can be calculated from the distributed parity such that the drive failure is masked from the end user. The array will have data loss in the event of a second drive failure and is vulnerable until the data that was on the failed drive is rebuilt onto a replacement drive.

8. Whats the difference between RAID01 & RAID10 ?
RAID 0+1: Striped Set + Mirrored Set (4 disk minimum; Even number of disks) provides fault tolerance and improved performance but increases complexity. Array continues to operate with one failed drive. The key difference from RAID 1+0 is that RAID 0+1 creates a second striped set to mirror a primary striped set, and as a result can only sustain a maximum of a single disk loss, whereas 1+0 can sustain multiple drive losses as long as no two drive loss comprise a single pair.

RAID 1+0: Mirrored Set + Striped Set (4 disk minimum; Even number of disks) provides fault tolerance and improved performance but increases complexity. Array continues to operate with one or more failed drives. The key difference from RAID 0+1 is that RAID 1+0 creates a striped set from a series of mirrored drives.


9. How many minimum disk drives are needed for R0,R1,R5,R10,R01 ?
R0: Minimum 1
R1: Minimum 2
R5: Minimum 3
R10: Minimum 4
R01: Minimum 4

10.How RAID 5 works and how parity is calculated ?
The parity calculation is typically performed using a logical operation called "exclusive OR" or "XOR". As you may know, the "OR" logical operator is "true" (1) if either of its operands is true, and false (0) if neither is true. The exclusive OR operator is "true" if and only if one of its operands is true; it differs from "OR" in that if both operands are true, "XOR" is false.


11.Other than RAID feature what are the other features in Software Management Functionalities?
Hotspare
Raid level migration (RLM)
SNMP interaction/management

12.What is initialization ?
Intialization is the process of preparing a drive for storage use. It erases all data on the drive & makes way for new file system creation.

13.What is Check consistency ?
Consistency check or CC verifies correctness of data in logical drives. This is a feature of some of the RAID hardware controller cards.

14.What is background initialization?
This is a Consistency check process forced when a new logical drive is created. This is an automatic operation that starts 5 minutes after the new logical drive is created.

15.What is a RAID array ?
RAID array is a group of disks which are configured with RAID. That means they are in a redundant setup to tolerate any disk failures.

16.Whats the difference between a JBOD & a RAID array ?
Just A Bunch Of Disks (JBOD) - hard disks that aren't configured in a RAID configuration. They are just disks piled or connected in one single enclosure.

RAID is having the advantage of bearing a disk failure & still give data availability.

17.When JBOD is preferred over RAID array ?
When there is no need for redundancy & when it is ok if there is some hard disk failure or data unavilability in such scenarios JBOD is prefered over RAID because JBOD is inexpensive storage solution. It is also easy to setup & start using compared to RAID.

18.What is a hot spare ?
Hot spare is an extra,unused disk drive that is part of the disk subsystem. It is usually in standby mode ready for service if a drive fails. Whenever there is a drive failure this hotspare kicksin & takes over that failed drive's role.

19.What is a Logical drive or Virtual drive ?
The partitioning or division of a large hard drive into smaller units. A single, large Physical Drive can be partitioned into two or more smaller Logical Drives.

20.What is rebuilding of array ?
Whenever there is a disk failure in the RAID array the array goes to DOWNGRADED STATE. SO when we plug out the failed drive & insert a new functioning drive the RAID configured array starts regenerating the data to the newer drive. This process is called rebuilding.

21.What you do when a drive in an array fails, how you bring it back to optimal online mode ?
We swap out failed drive & plugin new functioning drive & wait for the rebuilding process to complete. We make sure rebuild process happens without any error. Once that completes array is back to optimal online state.

22.What are the different states an array can be in and explain each state?
Online
Downgraded
Offline
Rebuilding

23.Explain Online,Offline,Degraded states of an array ?
Online - when all drives are working fine
Downgraded - Whenever there is a drive failure but still the array is functioning fine
Offline - Array or whole data storage is down
Rebuilding - Storage access is there but since a new drive has been inserted in place of a failed drive data is being written to new drive which might slow down the performance of the whole RAID array.

24.What is the difference between a global hotspare & a dedicated hotspare ?
Global hotpsare is available for the any  array in the whole enclosure or Storage subsystem.

If there is an enclosure having 10 drives & we have 3 drives in RAID5(1st array) , 3 more drives in second RAID5(2nd array) & 2 more drives in RAID 1 config.We can specify in RAID config utility whether a Dedicated hotspare is assigned for 1st RAID5 array. If there is a drive failure in 2nd or 3rd array this dedicated hotspare will not be involved there. But if the array for which this is dedicated has any drive failure this dedicated hotspare takes over .

25.How RAID is configured through BIOS ?
If we have a Hardware RAID controller card it gives an option while machine booting to enter into RAID BIOS utility. Here we have options which give us options to create RAID using a semi-GUI(DOS based GUI) interface.

26.HoW RAID is configured in OS level?
Once we install device drivers & also RAID config or management utility using that we can configure RAID in OS level.

27.What is the difference between a software RAID & hardware RAID ?
In order for RAID to function, there needs to be software either through the operating system or via dedicated hardware to properly handle the flow of data from the computer system to the drive array. This is particularly important when it comes to RAID 5 due to the large amount of computing required to generate the parity calculations.

In the case of software implementations, CPU cycles are taken away from the general computing environment to perform the necessary tasks for the RAID interface. Software implementations are very low cost monetarily because all that is necessary to implement one is the hard drives. The problem with software RAID implementations is the performance drop of the system. In general, this performance hit can be anywhere from 5% or even greater depending upon the processor, memory, drives used and the level of RAID implemented. Most people do not use software RAID anymore due to the decreasing costs of hardware RAID controllers over the years.

Hardware RAID has the advantage of dedicated circuitry to handle all the RAID drive array calculations outside of the processor. This provides excellent performance for the storage array. The drawbacks to hardware RAID have been the costs. In the case of RAID 0/1 controllers, those costs have become so low that many chipset and motherboard manufacturers are including these capabilities on the motherboards. The real costs rest with RAID 5 hardware that require more circuitry for added computing ability.

28.Which is best RAID level for performance and which is best for redundancy?
RAID 0 for performance
RAID 5 or RAID 6 better for redundancy(availibility)

FC Q & A


1. What is FC ?

Fibre Channel is a gigabit-speed network technology primarily used for storage networking. Fibre Channel is standardized in the T11 Technical. It t has become the standard connection type for storage area networks (SAN) in enterprise storage. Despite common connotations of its name, Fibre Channel signaling can run on both twisted pair copper wire and fiber-optic cables.

Fibre Channel Protocol (FCP) is the interface protocol of SCSI on the Fibre Channel.


2. What are the advantages of FC ?

Highest bandwidth 4Gbps,10Gbps
Better signal quality since it is optical
Longer media support 1 Km,10Km & more with expanders or switches
Support to maximum no. of device connectivity ( in switched mode upto 16 million devices)

3. Mention the differences between FC & SCSI ?

FC is not a shared bus while SCSI is .
FC has support to maximum 16 million devices – SCSI maximum 16 devices
FC has maximum bandwidth of 10Gbps while SCSI max ~3 Gbps
FC is optical(generally) while SCSI is electrical transmission
FC has minimum latency & does not have problems of SCSI like clock skewness,noise collision,cross talk


4. Explain the layers in FC Protocol ?

Fibre Channel is a layered protocol. It consists of 5 layers, namely:

 FC0 The physical layer, which includes cables, fiber optics, connectors, pinouts etc.
 FC1 The data link layer, which implements the 8b/10b encoding and decoding of signals.
 FC2 The network layer, defined by the FC-PI-2 standard, consists of the core of Fibre Channel, and defines the main protocols.
 FC3 The common services layer, a thin layer that could eventually implement functions like encryption or RAID.
 FC4 The Protocol Mapping layer. Layer in which other protocols, such as SCSI, are encapsulated into an information unit for delivery to FC2.

5. What are the functions of layer2 and layer3 in FC ?

Above answer is a brief one (plz find attachment FCLayers.pdf which goes in detail)

6. What are different FC topologies ?

Point to Point , Arbitrated Loop (FC-AL) , Switched

7. What is the difference between point to point  & Switched in FC ?

Point-to-Point is limited to two devices but they can talk at greater distances than SCSI
allows.

Switched fabric can theoretically allow 16 million nodes to talk (16^6 – There are 6
Port Identifier (PID) slots with 16 hex choices per slot)). The committee reserves ½
million of these addresses for well known addresses and testing purposes.


8. Explain FC-AL ?

Fibre Channel - Arbitrated Loop (FC-AL) is limited to 126 devices in a blocking architecture (plus one for FL_Port) . Without a switch only two of these devices can talk at a time, all others are “blocked” until those two are done. An arbitrated loop attached to a switch allows
queuing into and out of the port where the loop is attached. The embedded port will take
one AL_PA, so on a Brocade switch port there are 125 available AL_PAs.

28. What is AL_PA

Arbitrated Loop Physical Address. A 1-byte value used in the Arbitrated Loop topology used to identify L_Ports. This value will then also become the last byte of the address identifier for each public L_Port on the loop


9. How does FC Switch maintain the addresses?

                FC Switch uses simple name server to maintain the mapping table

10.Explain these terms : LIFA,LIPA,LIHA,LISA

LIFA : Loop Initialized Fabric Assigned (Address)

LIPA : Loop Initialized Previously Aquired (Address)

LIHA : Loop Initialized Hard Assigned (Address)

LISA : Loop Initialized Soft Assigned (Address)

These are different phases in which an FC node or device acquires its address

11.What are the different FC ports ?

N_port is a port on the node (e.g. host or storage device) used with both FC-P2P or FC-SW topologies. Also known as Node port.
NL_port is a port on the node used with an FC-AL topology. Also known as Node Loop port.
F_port is a port on the switch that connects to a node point-to-point (i.e. connects to an N_port). Also known as Fabric port. An F_port is not loop capable.
FL_port is a port on the switch that connects to a FC-AL loop (i.e. to NL_ports). Also known as Fabric Loop port.
E_port is the connection between two fibre channel switches. Also known as an Expansion port. When E_ports between two switches form a link, that link is referred to as an inter-switch link (ISL).
D_port is a diagnostic port, used solely for the purpose of running link-level diagnostics between two switches and to isolate link level fault on the port, in the SFP, or in the cable.
EX_port is the connection between a fibre channel router and a fibre channel switch. On the side of the switch it looks like a normal E_port, but on the side of the router it is a EX_port.

12.What is a Fabric and what are its components ?

The hardware/network that connects workstations and servers to storage devices in a SAN is referred to as a "fabric." The SAN fabric or FC Fabric enables any-server-to-any-storage device connectivity through the use of Fibre Channel switching technology.
Its components are :
FC Network
FC Switch
FC HBA (Host Bus adaptor) cards
Servers/Hosts
Storage subsystems

13.Mention different types of flow controls in FC?

buffer to buffer   and End to End flow control

14.What is the difference between buffer to buffer   and End to End flow control ?

Fibre Channel devices transfer information from an output buffer in the transmitting node to an input buffer of the receiving node. This is called a buffer-to-buffer transfer. Each node may have from 1 to n buffers. The number of buffers in each node does not have to be equal. Each buffer is the size a frame may transfer in its payload.
The Fibre Channel standard does not define the actual length of the buffer or the method used to store the bytes in the buffer. Figure below shows how data is sent from the transmit buffer and received by the receive buffer.
End-to-end credit (EE_Credit).
This type of credit or flow control is negotiated between a source N_Port and a destination N_Port. This credit is managed using an acknowledgment (ACK) frame sent from the destination back to the source N_Port.

15.What are the different classes of Services and explain them ?
To ensure efficient transmission of different types of traffic, FC defines three classes of service. Users select service classes based on the characteristics of their applications, like packet length and transmission duration, and allocate the services by the Fabric Login protocol.
Class 1 is a service which provides dedicated connections, in effect providing the equivalent of a dedicated physical connection. Once established, a Class 1 connection is retained and guaranteed by the Fabric. This service guarantees the maximum bandwidth between two N_Ports, so this is the best for sustained, high throughput transactions. In Class 1, Frames are delivered to the destination Port in the same order as they are transmitted. Figure below shows the flow control management of a Class 1 connection.



Class 2 is a Frame-switched, connectionless service that allows bandwidth to be shared by multiplexing Frames from multiple sources onto the same channel or channels. The Fabric may not guarantee the order of the delivery and Frames may be delivered out of order. This service class can be used, when the connection setup time is greater than the latency of a short message. Both Class 1 and Class 2 send acknowledgment Frames confirming Frame delivery. If delivery cannot be made due to congestion, a Busy frame  is returned and the sender tries again. 



Class 3 service is identical to Class 2, except that the Frame delivery is not confirmed. (Flow control is managed only on buffer level, see Figure 7) This type of transfer, known as datagram provides the quickest transmission by not sending confirmation. This service is useful for real- time broadcasts, where timeliness is key and information not received in time is valueless.
The FC standard also defines an optional service mode called intermix. Intermix is an option of Class 1 service, in which Class 1 Frames are guaranteed a special amount of bandwidth, but Class 2 and Class 3 Frames are multiplexed onto the channel, only when sufficient bandwidth is available to share the link .



ANOTHER KIND OF ANSWER  for above question
Class 1: dedicated connection between two communicators with acknowledgement of frame delivery.
Class 2: is connection less but provides acknowledgement
Class 3: is connection less and provides no notification of delivery
Class 4: allows fractional bandwidth for virtual circuits
            Class 5: Provides multicast with acknowledgment
            Class F: Is used for switch to switch communication in the fabric.

16. Describe in brief the composition of FC Frame?

                Start of the Frame locator
                Frame header (includes destination id and source id, 24 bytes/6 words)
                Data Payload (encapsulate SCSI instruction can be 0-2112 bytes in length)
                CRC (error checking, 4 bytes)
                                End of Frame (1 byte)

17.Explain FC login process ?

fabric login (FLOGI):    The process by which a Fibre Channel node establishes a logical connection to a fabric switch.


18.What is transmission character and transmission word ?

Transmission Character
A (valid or invalid) 10-bit character transmitted serially over the fibre. Valid Transmission Characters are determined by the 8B/10B encoding specification.
Transmission Word
A string of four consecutive Transmission Characters.


19.What is a frame, sequence and exchange ?

Frame
The basic unit of communication between two N_Ports. Frames are composed of a starting delimiter (SOF), a header, the payload, the Cyclic Redundancy Check (CRC), and an ending delimiter (EOF). The SOF and EOF contain the Special Character and are used to indicate where the frame begins and ends. The 24-byte header contains information about the frame, including the S_ID, D_ID, routing information, the type of data contained in the payload, and sequence/exchange management information. The payload contains the actual data to be transmitted, and may be 0-2112 bytes in length. The CRC is a 4-byte field used for detecting bit errors in the received frame.\

Sequence
A group of related frames transmitted unidirectionally from one N_Port to another.

Exchange
The highest level Fibre Channel mechanism used for communication between N_Ports. Exchanges are composed of one or more related sequences. Exchanges may be bidirectional or unidirectional.


20. What are the services provided by Fabric to all the nodes?

            a) Fabric Login
            b) SNS
            c) Fabric Address Notification
            d) Registered state change notification
            e) Broadcast Servers

21. What are the 5 states of Arbitrary Loop in FC?

            a) Loop Initialization
            b) Loop Monitoring
            c) Loop arbitration
            d) Open Loop
e) Close Loop


22.How many connections  are possible in FC ?

16 million devices connection in switched topology

23.What are the maximum devices supported in each topologies of FC ?

Point to Point : 2 devices
FC-AL : 126 devices
Switched : 16 million

24.What is the difference between FC & iSCSI ?

FC is designed to transmit data between computer devices at data rates of up to 4 gigabits per second (Gbps) (and 10 Gbps in the near future). It is designed to connect computer servers to shared storage devices and for interconnecting storage controllers and drives. It's a high-performance, high-cost technology.

iSCSI (or Internet Small Computer System Interface) is an IP-based storage networking standard that has been touted for the wide range of choices it offers in both performance and price. Some analysts say iSCSI is reliable enough for important data and is frequently used for Microsoft Exchange storage. And, because iSCSI uses TCP/IP and SCSI, which have existed for decades and are well understood in the storage world, it's an appealing option for many in the industry.

 25. Why do we need Login in FC?

            Port Login: To exchange service parameters between N_Ports and N_Ports
Process Login: To establish the SCSI operating environment between two N_PORTS

27. Explain the below terms


LIP
Loop Initialization Primitive Sequence. This Primitive Sequence applies only to the Arbitrated Loop topology. It is transmitted by an L_Port to (re)initialize the Loop.
LIFA
Loop Initialization Fabric Assigned Frame. This is the first Frame transmitted in the Loop initialization process after a temporary Loop master has been selected. L_Ports which have been assigned their AL_PA by the Fabric will select their AL_PA's in this frame as it makes its way around the Loop.
LIHA
Loop Initialization Hard Assigned Frame. This is the third Frame transmitted in the Loop initialization process after a temporary Loop master has been selected. L_Ports which have been programmed to select a particular AL_PA (if available) by the manufacturer will select their AL_PA's in this frame as it makes its way around the Loop.
LILP
Loop Initialization Loop Position Frame. This is the second Frame transmitted in the Loop initialization process after all L_Ports have selected an AL_PA (after LISA has been around the loop). This Frame is transmitted around the Loop so that all L_Ports may know the relative position of all other L_Ports around the Loop. Support for this Frame by an L_Port is optional.
LIPA
Loop Initialization Previously Assigned Frame. This is the second Frame transmitted in the Loop initialization process after a temporary Loop master has been selected. L_Ports which had an AL_PA prior to the Loop initialization will select their AL_PA's in this frame as it makes its way around the Loop.
LIRP
Loop Initialization Report Position Frame. This is the first Frame transmitted in the Loop initialization process after all L_Ports have selected an AL_PA (after LISA has been around the loop). This Frame is transmitted around the Loop so that all L_Ports report their relative physical position on the loop. Support for this Frame by an L_Port is optional.
LISA
Loop Initialization Soft Assigned Frame. This is the fourth Frame transmitted in the Loop initialization process after a temporary Loop master has been selected. L_Ports which did not select an AL_PA in any of the previous Loop Initialization Frames (LIFA, LIPA, or LIHA) will select their AL_PA's in this frame as it makes its way around the Loop.
LISM
Loop Initialization Select Master Frame. This Frame applies only to the Arbitrated Loop topology. It is the first frame transmitted in the initialization process in which L_Ports select an AL_PA. It is used to select a temporary Loop master, or the L_Port that will subsequently initiate transmission of the remaining initialization frames (LIFA, LIPA, LIHA, LISA, LIRP, and LILP).

29. Explain the below terms

Participating Mode
The normal operating mode for an L_Port on a Loop. An L_Port in this mode has acquired an AL_PA and is capable of communicating on the Loop.
Primitive Sequence
An Ordered Set transmitted repeatedly and used to establish and maintain a link. LR, LRR, NOS, and OLS are Primitive Sequences used to establish an active link in a connection between two N_Ports or an N_Port and an F_Port. LIP, LPB, and LPE are Primitive Sequences used in the Arbitrated Loop topology for initializing the Loop and enabling or disabling an L_Port.
Primitive Signal
An Ordered Set used to indicate an event. Idle and R_RDY are used in all three topologies. ARB, OPN, CLS, and MRK are used only in the Arbitrated Loop topology.
Private Loop
An Arbitrated Loop which stands on its own, i.e., it is not connected to a Fabric.
Private NL_Port
An NL_Port which only communicates with other ports on the loop, not with the Fabric. Note that a Private NL_Port may exist on either a Private Loop or a Public Loop.
Public Loop
An Arbitrated Loop which is connected to a Fabric.
Public NL_Port
An NL_Port which may communicate with other ports on the Loop as well as through an FL_Port to other N_Ports connected to the Fabric.


30. Name some of FC components & their vendors which u might have used ?

FC Cables : Single Mode , Multi Mode
FC HBA cards : Qlogic , Emulex , Brocade
FC Switches : Brocade , McData , HP , Cisco
FC Storage arrays  : HP, Netapp , EMC2 , IBM , Hitachi , Dell