Sunday, July 19, 2015

Setting/Backing up a Cisco UCS Fabric Interconnect - Logical/System configuration delete

Wiping out Logical and System Configuration from the switch

FI-A(local-mgmt)# erase configuration  - This erases all access configuration on the FI keeping the samdb in tact.

FI-A(local-mgmt)# erase samdb           - This will only remove the Logical Configuration on the FI (SP, VLAN, VSAN db, IP, MAC Pools etc.) while retaining the system configuration so that when the switches reboots after clearing the database, it will still be accessible using the pre-configured IPs


P.S. :- The 'erase configuration' command need to be executed on both switches separately. However, an 'erases samdb' command  executed on the primary should trigger an 'erase samdb' on the secondary switch automatically.

FI-A(local-mgmt)#

Backup Configuration

  1. Logical :- An XML file that includes all logical configuration settings such as service profiles, VLANs, VSANs, pools, and policies. You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect.
  2. System :- An XML file that includes all system configuration settings such as usernames, roles, and locales. You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect
  3. All :- An XML file that includes all system and logical configuration settings. You can use the file generated from this backup to import these configuration settings to the original fabric interconnect or to a different fabric interconnect.
  4. Full :- A binary file that includes a snapshot of the entire system. You can use the file generated from this backup to restore the system during disaster recovery. This file can restore or rebuild the configuration on the original fabric interconnect, or recreate the configuration on a different fabric interconnect. You cannot use this file for an import.

NPV and NPIV - Port modes


Configuring SAN port channel between MDS and UCS Fabric Interconnect 6xxx


image



With FIs in EHM connected to upstream MDS in npiv mode, all southbound hosts are logging into FI (npv) which is acting as a FCF, the FI port is NP as all N ports are proxied. The upstream MDS port is F port without any knowledge of npv or npiv. In a multi tenant environment utilizing different VSANs, a trunk is needed between the NP and F port which is accomplished by using the Fport trunking feature on both devices.

Configuration needed on MDS

feature npiv
feature fport-channel-trunk

interface port-channel X
switchport mode F
switchport rate-mode dedicated
switchport trunk mode on
switchport trunk allowed vsan 1,3-4,14
channel mode active

(*This way vsan 1 is native for pc 10)
vsan database
vsan 1 interface port-channel 10                                   

(*Adding ports to PC and reconfiguring ports to ensure completeness)
interface fc1/1-2                      
switchport mode F
switchport rate-mode dedicated
switchport trunk mode on
switchport trunk allowed vsan 1,3-4,14
channel-group 10 force

Shutdown the port channel on the MDS for now.

Configuration needed on MDS

  1. Enable FC port Trunking on FIs.
  2. Add the member interfaces on the FI and set the native VSAN to 1. 
  3. Bring up the PC on FI followed by the PC on the MDS.
The PC should be up and the member ports should be trunking now. If not, check the Troubleshooting reference document below.


References :-
Configuring FC port channels
Configuring Trunking
Troubleshooting