IBM Support

rmdev -dev vfchost fails: "0514-062 Cannot perform the requested function because the specified device is busy."

Troubleshooting


Problem

Trying to remove unwanted vfchost fails with "...device is busy." error.

Symptom

$ rmdev -dev vfchost6

Some error messages may contain invalid information
for the Virtual I/O Server environment.

Method error (/etc/methods/ucfgdevice):
        0514-062 Cannot perform the requested function because the
                 specified device is busy.

Unable to remove Virtual Target Device(VTD) "%s".
$

Cause

A vfchost is considered to be in a "busy" state once a physical fibre channel port is mapped to it.
Another common cause of the "...device is busy." error is due to an N_Port Log In operation done for the respective virtual Fibre Channel (VFC) Client Adapter using the HMC GUI or HMC chnportlogin command.

Environment

VIOS 3.1 managed by an HMC.

Resolving The Problem

First, determine if the vfchost is mapped to a physical fibre channel port using lsmap command.

Login to the VIOS, as padmin, and run:
$ lsmap -vadapter vfchostN -npiv
Check the "FC name" field.  If it has a value, such as "FC name: fcsN", it means the vfchost is mapped to a physical fibre channel port (fcsN), and it needs to be unmapped by running:
$ vfcmap -vadapter vfchostN -fcp

Then, try removing the vfchost again. 

If the "...device is busy." error continues at this point, next determine if the WWPN status for the client adapter associated with the vfchostN is "LoggedIn" on the HMC.  For details refer to:
How to Initiate Log In/Log Off Operation for a virtual Fibre Channel Client Adapters Using the HMC
> How to Perform Log In/Log Off operation using the HMC Enhanced GUI

If the WWPN status is "LoggedIn", do a "Log Off" operation. Then try removing the vfchost.

[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSPHKW","label":"PowerVM Virtual I\/O Server"},"ARM Category":[{"code":"a8m3p000000hA8JAAU","label":"PowerVM VIOS-\u003ENPIV {NPIV}-\u003EVIOS VFC"}],"ARM Case Number":"TS012518719","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"3.1.2;3.1.3;3.1.4"}]

Document Information

Modified date:
04 April 2023

UID

ibm10791183