How to Add a Fibre Channel SR-IOV Virtual Function to an I/O Domain

If you cannot dynamically remove the virtual function, use the static method. See Static SR-IOV.

  1. Identify the virtual function that you want to add to an I/O domain.
    primary# ldm list-io
  2. Add a virtual function either dynamically or statically.
    • To dynamically add a virtual function:

      primary# ldm add-io vf-name domain-name

      vf-name is the pseudonym name or the path name of the virtual function. The recommended practice is to use the pseudonym name. domain-name specifies the name of the domain to which you add the virtual function.

      The device path name for the virtual function in the domain is the path shown in the list-io -l output.

    • To statically add a virtual function:

      1. Stop the domain and then add the virtual function.

        primary# ldm stop-domain domain-name
        primary# ldm add-io vf-name domain-name

        vf-name is the pseudonym name or the path name of the virtual function. The recommended practice is to use the pseudonym name. domain-name specifies the name of the domain to which you add the virtual function. The specified guest domain must be in the inactive or bound state.

        The device path name for the virtual function in the domain is the path shown in the list-io -l output.

      2. Restart the domain.

        primary# ldm start-domain domain-name

Example 8-25 Adding a Fibre Channel Virtual Function

This example shows how to dynamically add the /SYS/MB/PCIE7/IOVFC.PF0.VF0 virtual function to the ldg2 domain.

primary# ldm add-io /SYS/MB/PCIE7/IOVFC.PF0.VF0 ldg2

If you cannot add the virtual function dynamically, use the static method:

primary# ldm stop-domain ldg2
primary# ldm add-io /SYS/MB/PCIE7/IOVFC.PF0.VF0 ldg2
primary# ldm start-domain ldg2