Removing a Virtual SCSI Host Bus Adapter

You can use the ldm remove-vhba command to remove a virtual SCSI HBA from a specified guest domain.

Ensure that neither the OS nor any applications are actively using the virtual SCSI HBA before you attempt to remove it. If the virtual SCSI HBA is in use, the ldm remove-vhba command fails.

ldm remove-vhba vHBA-name domain-name

In this example, you remove the port0_vhba virtual SCSI HBA from the gdom guest domain.

primary# ldm remove-vhba port0_vhba gdom

If you attempt to remove a virtual HBA that is actively managing I/O operations, the ldm remove-vhba command fails with the following error:

primary# ldm remove-vhba my-vhba my-domain
Dynamic reconfiguration of the virtual device on domain primary
 failed with error code (-122).
 The OS on domain primary did not report a reason for the failure.
 Check the logs on that OS instance for any further information.