Go to main content

Managing Devices in Oracle® Solaris 11.3

Exit Print View

Updated: April 2018
 
 

How to Remove a PCI Adapter Card

  1. Determine which slot the PCI adapter card is in.
    # cfgadm pci
  2. Stop any application that has the device open.

    For example, if the device is an Ethernet card with a configured IP interface, remove the IP interface.

    # ipadm delete-ip ip-interface
  3. Unconfigure the device manually by using one of the following methods:
    • For a PCIe adapter card, use the auto-configuration method, such as pressing the slot's Attention Button as defined by your platform guide.

    • Issue the following command:

      # cfgadm -c unconfigure pci-device
  4. Confirm that the device has been unconfigured.
    # cfgadm pci
  5. Disconnect the power to the slot manually. If the auto-configuration method is used, this step is not necessary.
    # cfgadm -c disconnect pci-device

    Refer to your platform guide for more information.

  6. Confirm that the device has been disconnected.
  7. Follow appropriate instructions in your platform guide to remove the PCI adapter card. After the card is removed, the Receptacle state is empty.
    # cfgadm pci

    Note -  The auto-configuration method can be enabled or disabled at boot, depending on the platform implementation. Set the auto-configuration method as appropriate for your environment.
Example 11  Removing a PCI Adapter Card

In this example, the card on as pcie4 is removed.

# cfgadm pci
Ap_Id         Type         Receptacle   Occupant     Condition
pcie1         unknown      empty        unconfigured unknown
pcie2         unknown      empty        unconfigured unknown
pcie3         unknown      empty        unconfigured unknown
pcie4         etherne/hp   connected    configured   ok
pcie5         pci-pci/hp   connected    configured   ok
pcie6         unknown      disconnected unconfigured unknown

# ipadm delete-ip net1

# cfgadm -c unconfigure pcie4

# cfgadm pci
Ap_Id         Type         Receptacle   Occupant     Condition
pcie1         unknown      empty        unconfigured unknown
pcie2         unknown      empty        unconfigured unknown
pcie3         unknown      empty        unconfigured unknown
pcie4         unknown      connected    unconfigured unknownThe device is unconfigured.
pcie5         pci-pci/hp   connected    configured   ok
pcie6         unknown      disconnected unconfigured unknown

# cfgadm -c disconnect pcie4

# cfgadm pci
Ap_Id         Type         Receptacle   Occupant     Condition
pcie1         unknown      empty        unconfigured unknown
pcie2         unknown      empty        unconfigured unknown
pcie3         unknown      empty        unconfigured unknown
pcie4         unknown      disconnected unconfigured unknownPower is disconnected.
pcie5         pci-pci/hp   connected    configured   ok
pcie6         unknown      disconnected unconfigured unknown

After the device is removed, the procedure continues.

# cfgadm pci
Ap_Id         Type         Receptacle   Occupant     Condition
pcie1         unknown      empty        unconfigured unknown
pcie2         unknown      empty        unconfigured unknown
pcie3         unknown      empty        unconfigured unknown
pcie4         unknown      empty        unconfigured unknownThe receptacle is empty.
pcie5         pci-pci/hp   connected    configured   ok
pcie6         unknown      disconnected unconfigured unknown