With PowerCLI, you can create a vSAN file service domain.

Prerequisites

  • Verify that you are connected to a vCenter Server system.

  • Verify that the vSAN file service is enabled.

Procedure

  1. Configure a vSAN file server IP configuration. You can use the IPs as an IP pool for the file service domain.
    $ipConfig = New-VsanFileServerIpConfig -Fqdn "h101.vmware.com" -Gateway "192.2.8.3" -IpAddress "192.2.8.4" -SubnetMask "255.255.254.0" -IsPrimary
  2. Create a vSAN file service domain.
    New-VsanFileServiceDomain -DnsServerAddress "10.172.199.241" -VsanFileServerIpConfig $ipConfig -Name "MyFileServiceDomain" -DnsSuffix "vmware.com" -Cluster $config.Cluster