In event of a path failure or a service processor failure, the LUNs ownership will transfer to the service processor still serving I/O. It is possible to take back LUN ownership through Unisphere but with a GUI this can be a long task. This script will take back each service processors default ownership.
NOTE: Don’t forget to edit the script for your service processor’s IP address information.
NOTE: It also requires you to have naviseccli command line tools installed on the host which you are running the script from.
NOTE: Rename the txt file to a cmd file.
Download here, VNXTrespassMine.txt