Configuring Storage-Related Policies
This chapter includes the following sections:
Configuring vHBA Templates
vHBA Template
This template is a policy that defines how a vHBA on a server connects to the SAN. It is also referred to as a vHBA SAN connectivity template.
You need to include this policy in a service profile for it to take effect.
Configuring a vHBA Template
The following example configures a vHBA template and commits the transaction:
UCS-A# scope org / UCS-A /org* # create vhba template VhbaTempFoo UCS-A /org/vhba-templ* # set descr "This is a vHBA template example." UCS-A /org/vhba-templ* # set fabric a UCS-A /org/vhba-templ* # set fc-if accounting UCS-A /org/vhba-templ* # set max-field-size 2112 UCS-A /org/vhba-templ* # set pin-group FcPinGroup12 UCS-A /org/vhba-templ* # set qos-policy policy34foo UCS-A /org/vhba-templ* # set stats-policy ServStatsPolicy UCS-A /org/vhba-templ* # set type updating-template UCS-A /org/vhba-templ* # set wwpn-pool SanPool7 UCS-A /org/vhba-templ* # commit-buffer UCS-A /org/vhba-templ #
Deleting a vHBA Template
The following example deletes the vHBA template named VhbaTempFoo and commits the transaction:
UCS-A# scope org / UCS-A /org # delete vhba template VhbaTempFoo UCS-A /org* # commit-buffer UCS-A /org #
Configuring Fibre Channel Adapter Policies
Ethernet and Fibre Channel Adapter Policies
These policies govern the host-side behavior of the adapter, including how the adapter handles traffic. For example, you can use these policies to change default settings for the following:
- Queues
- Interrupt handling
- Performance enhancement
- RSS hash
- Failover in an cluster configuration with two fabric interconnects
Operating System Specific Adapter Policies
By default, Cisco UCS provides a set of Ethernet adapter policies and Fibre Channel adapter policies. These policies include the recommended settings for each supported server operating system. Operating systems are sensitive to the settings in these policies. Storage vendors typically require non-default adapter settings. You can find the details of these required settings on the support list provided by those vendors.
We recommend that you use the values in these policies for the applicable operating system. Do not modify any of the values in the default policies unless directed to do so by Cisco Technical Support.
However, if you are creating an Ethernet adapter policy for a Windows OS (instead of using the default Windows adapter policy), you must use the following formulas to calculate values that work with Windows:
- Completion Queues = Transmit Queues + Receive Queues
- Interrupt Count = (Completion Queues + 2) rounded up to nearest power of 2
For example, if Transmit Queues = 1 and Receive Queues = 8 then:
- Completion Queues = 1 + 8 = 9
- Interrupt Count = (9 + 2) rounded up to the nearest power of 2 = 16
Configuring a Fibre Channel Adapter Policy
The following example configures a Fibre Channel adapter policy and commits the transaction:
UCS-A# scope org / UCS-A /org* # create fc-policy FcPolicy42 UCS-A /org/fc-policy* # set descr "This is a Fibre Channel adapter policy example." UCS-A /org/fc-policy* # set error-recovery error-detect-timeout 2500 UCS-A /org/fc-policy* # set port max-luns 4 UCS-A /org/fc-policy* # set port-f-logi retries 250 UCS-A /org/fc-policy* # set port-p-logi timeout 5000 UCS-A /org/fc-policy* # set recv-queue count 1 UCS-A /org/fc-policy* # set scsi-io ring-size 256 UCS-A /org/fc-policy* # set trans-queue ring-size 256 UCS-A /org/fc-policy* # commit-buffer UCS-A /org/fc-policy #
Deleting a Fibre Channel Adapter Policy
| Command or Action | Purpose | |
|---|---|---|
| Step 1 | UCS-A# scope org org-name | Enters organization mode for the specified organization. To enter the root organization mode, type / as the org-name . |
| Step 2 | UCS-A /org # delete fc-policy policy-name | Deletes the specified Fibre Channel adapter policy. |
| Step 3 | UCS-A /org # commit-buffer | Commits the transaction to the system configuration. |
The following example deletes the Fibre Channel adapter policy named FcPolicy42 and commits the transaction:
UCS-A# scope org / UCS-A /org # delete fc-policy FcPolicy42 UCS-A /org* # commit-buffer UCS-A /org #

Feedback