Accessing iSCSI targets from VMware ESXi

Before using Virtuozzo Hybrid Infrastructure volumes with VMware ESXi, you need to configure it to properly work with ALUA Active/Passive storage arrays. It is recommended to switch to the VMW_PSP_RR path selection policy (PSP) to avoid any issues. For example, on VMware ESXi 6.5:

  • To set the default PSP for all devices, run:

    # esxcli storage nmp satp rule add --satp VMW_SATP_ALUA --vendor VSTORAGE \
    --model VSTOR-DISK --psp VMW_PSP_RR -c tpgs_on
    
  • To set the PSP for a specific device, run:

    # esxcli storage core claimrule load
    

Now you can proceed to create datastores from Virtuozzo Hybrid Infrastructure volumes exported via iSCSI. Log in to the VMware ESXi web panel and do the following:

  1. In the Navigator, go to the Storage > Adapters tab and click Configure iSCSI.

  2. In the Configure iSCSI window, click Add static target in the Static targets section, fill out target IQNs, IP addresses, and ports. Click Save configuration.

  3. Proceed to the Devices tab and click Refresh. The newly added disk will appear in the list of devices.

  4. Select the disk and click New datastore. In the wizard that appears, enter a name for the datastore and select partitioning options. Click Finish to actually partition the disk.

    Partitioning the disk will erase all data from it.

The ready-to-use disk will appear in the list of datastores. You can now view its contents it with the datastore browser and provision it to VMs.

If your ESXi host loses connectivity to VMFS3 or VMFS5 datastores, follow the instructions in KB article #2113956.