Modify CNA to FC adapter on Netapp Ontap 9

Oct 2, 2019 10:14 PM

Ontap is a storage operating system from Netapp which able to manage CNA network adapter. CNA or Converged Network Adapter which has a flexibility to use ethernet or fc depend on your SFP plugable transceiver. You can use 10Gbps SFP transceiver for LAN/NAS or 16Gbps for SAN connectivity. 

Netapp Ontap activated the CNA mode by default. So, if you use transceiver for FC 8Gbps or 16Gbps, you need to activated the CNA mode to FC mode manually. I have found this on Ontap installed at Lenovo ThinkSystem DM5000H series.  


First, check the current cna status using ucadmin as bellow :

DM5000H::> ucadmin show
                       Current  Current    Pending  Pending    Admin
Node          Adapter  Mode     Type       Mode     Type       Status
------------  -------  -------  ---------  -------  ---------  -----------
DM5000H-01
              0c       cna      target     -        -          online
DM5000H-01
              0d       cna      target     -        -          online
DM5000H-01
              0e       cna      target     -        -          online
DM5000H-01
              0f       cna      target     -        -          online
DM5000H-02
              0c       cna      target     -        -          online
DM5000H-02
              0d       cna      target     -        -          online
DM5000H-02
              0e       cna      target     -        -          online
DM5000H-02
              0f       cna      target     -        -          online

8 entries were displayed.

All these current mode are CNA. By this mode, the 8Gbps/16Gbps of FC adapter can't be used. We need to manually modify it to be FC mode.

I am using FC 16Gbps interface at 0c and 0d interfaces for both controller DM5000H-01 and DM5000H-02. Before I modify the mode, I need to modify the "Admin Status" of these network interfaces. We can use "network interface modify" command to modify the admin status of these adapter (0c and 0d). Please find bellow the command checking the result after it modified.

DM5000H::> network fcp adapter modify -node * -adapter 0c -status-admin down

2 entries were modified.


DM5000H::> network fcp adapter modify -node * -adapter 0d -status-admin down

2 entries were modified.


DM5000H::> ucadmin show
                       Current  Current    Pending  Pending    Admin
Node          Adapter  Mode     Type       Mode     Type       Status
------------  -------  -------  ---------  -------  ---------  -----------
DM5000H-01
              0c       cna      target     -        -          offline
DM5000H-01
              0d       cna      target     -        -          offline
DM5000H-01
              0e       cna      target     -        -          online
DM5000H-01
              0f       cna      target     -        -          online
DM5000H-02
              0c       cna      target     -        -          offline
DM5000H-02
              0d       cna      target     -        -          offline
DM5000H-02
              0e       cna      target     -        -          online
DM5000H-02
              0f       cna      target     -        -          online

8 entries were displayed.


DM5000H::> network fcp adapter show
                     Connection  Port      Admin   Operational
Node         Adapter Established Address   Status  Status
------------ ------- ----------- --------- ------- -----------------------
DM5000H-01
             0c      false       0         down    offlined by user/system
DM5000H-01
             0d      false       0         down    offlined by user/system
DM5000H-01
             0e      false       0         up      link not connected
DM5000H-01
             0f      false       0         up      link not connected
DM5000H-02
             0c      false       0         down    offlined by user/system
DM5000H-02
             0d      false       0         down    offlined by user/system
DM5000H-02
             0e      false       0         up      link not connected
DM5000H-02
             0f      false       0         up      link not connected

8 entries were displayed.

After the Admin Status of these interface are down, then we can make changes the mode from CNA to be FC mode, so your 16Gbps can be activated and used. Bellow these command to modify it :

DM5000H::> system hardware unified-connect modify -type target -node * -adapter 0c -m fc

Warning: Mode on adapter 0c and also adapter 0d will be changed to fc.
Do you want to continue? {y|n}: y
Any changes will take effect after rebooting the system. Use the "system node reboot" command to reboot.
Any changes will take effect after rebooting the system. Use the "system node reboot" command to reboot.
2 entries were modified.

DM5000H::> system hardware unified-connect modify -type target -node * -adapter 0d -m fc

2 entries were modified.

After these modify commands are successful, it's recommended to reboot controller. Before the controller rebooted, I want to check the status mode of these interface, the result as bellow (before reboot controller) :

DM5000H::> ucadmin show
                       Current  Current    Pending  Pending    Admin
Node          Adapter  Mode     Type       Mode     Type       Status
------------  -------  -------  ---------  -------  ---------  -----------
DM5000H-01
              0c       cna      target     fc       -          offline
DM5000H-01
              0d       cna      target     fc       -          offline
DM5000H-01
              0e       cna      target     -        -          online
DM5000H-01
              0f       cna      target     -        -          online
DM5000H-02
              0c       cna      target     fc       -          offline
DM5000H-02
              0d       cna      target     fc       -          offline
DM5000H-02
              0e       cna      target     -        -          online
DM5000H-02
              0f       cna      target     -        -          online
8 entries were displayed.

Then, you must reboot the controller one by one or both it's up to you, .. upss, better one by one controller hehe. After it reboot, we can confirm the interface mode can changed to fc :

DM5000H::> ucadmin show
                       Current  Current    Pending  Pending    Admin
Node          Adapter  Mode     Type       Mode     Type       Status
------------  -------  -------  ---------  -------  ---------  -----------
DM5000H-01
              0c       fc       target     -        -          online
DM5000H-01
              0d       fc       target     -        -          online
DM5000H-01
              0e       cna      target     -        -          online
DM5000H-01
              0f       cna      target     -        -          online
DM5000H-02
              0c       fc       target     -        -          online
DM5000H-02
              0d       fc       target     -        -          online
DM5000H-02
              0e       cna      target     -        -          online
DM5000H-02
              0f       cna      target     -        -          online

8 entries were displayed.

So, this modification is done, you can use your 8G/16G of your interface ready for LIF creation and connected your LUN to server. 

Thanks
Suwardi

/* EOF */




0 comments:

Article list :