LUN masking can control which LUNs are visible to each vSphere host. This is the opposite of zoning, where the storage array configuration determines which LUNs are visible to a host. This feature allows multiple vSphere hosts to be connected to a storage with multiple LUNs, while allowing only one vSphere host, which you specify, to see some particular LUNs. This feature is the same as EMC CLARiiON or VNX provide LUN masking in the storage group at the array level. You can add the host and LUNs to a storage group, and then the host will only be able to see those LUNs.
Here is the GUI meant for providing LUN masking to the Storage Group in the EMC array:
Now we'll go through an example showing how you can operate this on an ESXi host. Here is the procedure:
First, we should find out which LUN we want to mask. We need to display the LUN with VMFS volumes using the
esxcfg-scsidevs –m
command. In the following example, we find the device ID (it starts withnaa
). Our device ID isnaa...