This post uses the QLogic Dynamic Target and LUN Discovery utilities. The steps below apply to SLES 10 and RHEL 5 servers using QLogic HBAs and PowerPath. This post also assumes that you have put the qlogic utilities into /tmp/ql_utils.
To remove a LUN and all associated PowerPath and Linux devices from the host environment follow these steps.
Note: that it is critical to follow the procedures in exact order because deviating from the procedures can cause the host to panic
These steps were put together using steps from QLogic KB articles.