You can use the following procedure to gracefully remove the vHBAs from a Linux server using multipathing. This procedure is the quickest and easiest method of removing vHBAs because it concludes with a reboot of the host server. Rebooting the server causes the vHBA driver to be reloaded into the server memory, which will in turn trigger an automatic rescan of the storage network to learn the changes among devices.
This procedure is useful for host servers that are not running mission-critical applications, or that are running applications that can tolerate a short span of service interruption due to a reboot of the host server. This procedure can be useful when you are first bringing a server online and no other services are running.
To gracefully remove a vHBA from a Linux host server in a multipathing environment, perform the following steps:
umount device
For example, to delete the vHBA named news_storage:
remove vhba news_storage
This step loads the vHBA driver into memory, triggers the rescan, and restarts PowerPath.