New-VsanFileServiceDomain Command | Vmware PowerCLI Reference

New-VsanFileServiceDomain

This cmdlet creates a file service domain in the vSAN cluster.

Syntax

New-VsanFileServiceDomain
-Cluster < Cluster >
-DnsServerAddress < String[] >
-DnsSuffix < String[] >
-Name < String >
-VsanFileServerIpConfig < VsanFileServerIPConfig[] >
[-ProgressAction < ActionPreference > ]
[-Server < VIServer[] > ]
[CommonParameters]

Parameters

Required Parameter Name Type Position Features Description
required
Cluster Cluster named
  • pipeline
  • wildcards
Specifies the vSAN cluster where you want to create the new file service domain.
required
DnsServerAddress String[] named
Specifies the DNS server address which you want to use to resolve the hostnames within the DNS domain.nThis parameter is optional if the DNS name is provided in the access point configuration or is not required for an NFS access.
required
DnsSuffix String[] named
Specifies the list of DNS server addresses that can be resolved by the DNS servers. The DNS suffix is required if the DNS servers are provided.
required
Name String named
Specifies the name of the new vSAN file service domain. The name should be unique within a cluster. The length of the file service domain name should not exceed 256 characters.
required
VsanFileServerIpConfig VsanFileServerIPConfig[] named
Specifies a pool of IP addresses that will be used by vSAN file service to provide file access from multiple file servers. A minimum of one such address is needed. Considering the workload, it is recommended to have equal or greater number of IP addresses than the number of hosts in the cluster.
optional ProgressAction ActionPreference named
optional Server VIServer[] named
  • wildcards
Specifies the vCenter Server systems on which you want to run the cmdlet. If no value is given to this parameter, the command runs on the file service servers. For more information about default servers, see the description of the Connect-VIServer cmdlet.

Output

VMware.VimAutomation.Storage.Types.V1.Vsan.FileService.VsanFileServiceDomain

Examples

Example 1

New-VsanFileServiceDomain -Name "myDomain" -Cluster $cluster
 -VsanFileServerIpConfig $ipconfig1, $ipconfig2 -DnsServerAddress "10.172.199.240"
 -DnsSuffix "vmware.com"

Creates a new vSAN file service domain named "myDomain" in the $cluster vSAN cluster with "10.172.199.240" as its DNS server address and "vmware.com" as its DNS suffix. The domains's IP pool are $ipconfig1 and $ipconfig2.

Related Commands

VsanFileServerIpConfig

This cmdlet creates a vSAN file service IP configuration at the client side.

VsanFileServiceDomain

This cmdlet retrieves vSAN file service domains in a vSAN cluster.

This cmdlet creates a file service domain in a vSAN cluster.

This cmdlet removes the specified vSAN file service domain from the vSAN clusters.

This cmdlet modifies the settings of the given vSAN file domains.

VsanFileServiceOvf

This cmdlet downloads a file service OVF file of the specified URL into the OVF repository in vSphere.

VsanFileServiceOvfInfo

This cmdlet retrieves a vSAN file service OVF information.

VsanFileShare

This cmdlet retrieves vSAN file shares based on the name or ID filter.

This cmdlet creates a new vSAN file share in a specified file service domain.

This cmdlet removes vSAN file shares.

This cmdlet modifies the configuration of a specified vSAN file share.

VsanFileShareNetworkPermission

New-VsanFileShareNetworkPermission -IPSetOrSubnet <string> -VsanFileShareAccessPermission <VsanFileShareAccessType> [-AllowSquashRoot] [-WhatIf] [-Confirm] [<CommonParameters>]

VsanFileShareSnapshot

This cmdlet retrieves vSAN file share snapshots based on the name or other filters.

This cmdlet creates a vSAN file share snapshot for the specified vSAN file share.

This cmdlet removes vSAN file share snapshots.