SCSI Status Codes

SCSI Targets return the following status codes to indicate the “status” of a request made to in by a SCSI Initiator.

Value      Description

00h           GOOD

02h           CHECK CONDITION

04h           CONDITION MET

08h           BUSY

10h           INTERMEDIATE

14h           INTERMEDIATE-CONDITION MET

18h           RESERVATION CONFLICT

22h           Obsolete

28h           TASK SET FULL

30h           ACA ACTIVE

40h           TASK ABORTED

Others      Reserved

Posted in SCSI Tutorial, Storage Area Network | Tagged , | Leave a comment

Configuring Cisco 5010/5020: Use non-Cisco SFPs for FCoE Ports

Switch# config t

Switch(config)# service unsupported-transceiver

Switch(config)# copy running-config startup-config

Switch(config)# reload

Posted in Cisco 5010/5020, SAN Configuration | Tagged , | Leave a comment

Steps to Configure FCoE Port Mirroring

Example:
Source(monitored) Port: 35
Destination(monitoring) Port: 6
Monitor session id: 2
Commands:
———
switch# configure terminal
switch(config)# no monitor session all
switch(config)# monitor session 2
switch(config)# interface ethernet 1/6
switch(config-if)# lldp transmit
switch(config-if)# lldp receive
switch(config-if)# priority-flow-control mode auto
switch(config-if)# switchport mode trunk
switch(config-if)# spanning-tree port type edge trunk
switch(config-if) # switchport trunk allowed vlan 1,1002
switch(config-if) # no shut
switch (config)# interface vfc 6
switch (config-if)# no bind interface ethernet 1/6
switch(config-if)# exit
switch(config)# interface ethernet 1/6
switch(config-if)# switchport monitor
switch(config-if)# exit
switch(config)# monitor session 2
switch(config-monitor)# destination interface ethernet 1/6
switch(config-monitor)# source interface vfc 35
switch(config-monitor)# source vlan 1002
switch(config-monitor)# no shut

Reference: Click Here.

Posted on by born27thfeb | Leave a comment

Configuring Cisco 5010/5020: Enable Jumbo Frames

1. Create qos class in switch.
FCF4(config)# class-map type qos

2. Create network-qos class in switch.
FCF4(config-cmap-qos)# class-map type network-qos
FCF4(config-cmap-nq)# pollicy-map type network-qos
FCF4(config-cmap-nq)# class type network-qos class-default

3. Change the MTU size
FCF4(config-cmap-nq-c)# mtu 9216
FCF4(config-cmap-nq-c)# system qos
FCF4(config-sys-qos)# service-policy type network-qos

Posted in Cisco 5010/5020, SAN Configuration | Tagged , | Leave a comment

Configuring Cisco 5010/5020: Zoning (Create Zones)

1. Create a zone and add ports.
FCF4(config)# zone name zone1 vsan 1

For WWN zoning, add port name of storage and CNA (recommended)
FCF4(config)# member pwwn < WWN of storage and/or CNA >

For port zoning, add the fc port as member of the zone
FCF4(config)# member interface fc x/1 < x is FC port you want to include in zone >
FCF4(config)# member fwwn < WWN of VFC X created above >

2. Add zone to zoneset and activate.
FCF4(config)# zoneset name zoneset1 vsan 1
FCF4(config)# member zone1
FCF4(config)# zoneset activate name zoneset1 vsan 1

Posted in Cisco 5010/5020 | Tagged , | Leave a comment

Configuring Cisco 5010/5020: Configure Ethernet Port for FCoE & enable DCBX

Script to Configure the Ethernet Port for FCoE traffic and enable DCBX for all the ports in the FCoE Switch

#!/bin/sh
SWITCH=172.35.10.129

(
sleep 5

echo admin

sleep 5

echo <password>

sleep 5

echo “configure”
sleep 5

for (( i = 1 ; i < = 20; i++ ))
do
echo “interface ethernet 1/$i”
sleep 5
echo “lldp transmit”
sleep 5
echo “lldp receive”
sleep 5
echo “priority-flow-control mode auto”
sleep 5
echo “switchport mode trunk”
sleep 5
echo “no shutdown”
sleep 5
echo “interface vfc $i”
sleep 5
echo “bind interface Ethernet 1/$i”
sleep 5
echo “no shutdown”
sleep 5
echo “exit”
sleep 5
done

) | telnet $SWITCH

Posted in Cisco 5010/5020, SAN Configuration | Tagged , , , | Leave a comment

Configuring Cisco 5010/5020: Create FCoE Ports

Steps to Create FCoE Ports

1. Enable fcoe and NPIV.
FCF4# Config terminal

FCF4(config)# feature fcoe

2. Create VLAN for FcoE traffic and map it to VSAN.
FCF4(config)# vlan 1002
FW-FCF4(config-vlan)# fcoe vsan 1

3. Reboot the switch
FCF4# copy running-config startup-config
FCF4# reload

4. Configure the Ethernet port for FcoE traffic and enable DCBX
FW-FCF1(config)# interface ethernet 1/x
FW-FCF1(config-if)# lldp transmit
FW-FCF1(config-if)# lldp receive
FW-FCF1(config-if)# priority-flow-control mode auto
FW-FCF1(config-if)# switchport mode trunk
FW-FCF1(config-if)# spanning-tree port type edge trunk
FW-FCF1(config-if)# switchport trunk allowed vlan 1,1002
FW-FCF1(config-if)# no shutdown

5. Create a VFC and bind it to Ethernet port.
FW-FCF1(config)# interface vfc x
FW-FCF1(config-if)# bind interface Ethernet 1/x
FW-FCF1(config-if)# no shutdown

Posted in Cisco 5010/5020, SAN Configuration | Tagged , , | Leave a comment

Enabling Boot From SAN on QLogic 8042 Adapters

1. Configure adapter and target/lun in zone (Configuration required on Switch & Target side so that the host can access the LUN)

2. After installing adapter, during system POST at the QLE8042 BIOS info press control-Q when prompted

3. At adapter menu select adapter (function 0 is port0, function 1 port1)

4. At Fast!UTIL menu select configuration settings -> adapter settings and enable Host Adapter BIOS, escape key back to Fast!UTIL menu

5. Select Selectable Boot Settings, Enable Selectable Boot

6. Arrow down to Boot Port Name, Lun: and enter

7. Zoned target should now be listed in available Fibre Channel Devices, enter

8. Available luns should now be listed, select lun

9. Escape out and save changes

10. Reboot -> now when QLE8042 BIOS POSTS you should see target information

11. Once system recognizes target in POST, run system setup and set primary boot device as the FCoE adapter, or slot FCoE adapter is installed (depending on system BIOS how the boot device is defined and saved varies from system to system)

12. Save and reboot

13. At this point we PXE boot to an OS install server or CD/DVD Media to install OS

Posted in SAN Configuration, SAN Tutorial | Tagged | Leave a comment

Configuring 10G EMC Clarion (iSCSI)

Configuring Newly Added Initiator

1. Add the target IP (ABC.DEF.GH.IJ) via the application and save the configuration

2. The initiator IQN will appear in Navisphere at Storage Domains -> Local Domain -> CKM…[CX4-120] -> Connectivity status

3. Creating Storage group for the first time. Storage Domains -> Local Domain -> CKM…[CX4-120] -> Storage Groups -> Create storage group

4. Newly created storage group will have Hosts and LUNS fields

Mapping LUNs to the Initiator

1. Add new host storage group -> Connect Hosts -> select host(s) -> add

2. Add new luns to host storage group -> connect LUNS -> select luns to add via SPA or SPB

Posted in SAN Configuration, SAN Tutorial | Tagged , | Leave a comment