When the vSAN file service is enabled, you can create one or more file shares on the vSAN datastore. vSAN File Service does not support using these file shares as datastores on ESXi.
Considerations for Share Name and Usage
- Usernames with non-ascii characters can be used to access share data.
- Share names can contain only English characters.
- For SMB type shares, file and directories can contain any Unicode compatible strings.
- For pure NFSv4 type shares, the file and directories can contain any UTF-8 compatible strings.
- For pure NFSv3 and NFSv3+NFSv4 shares file and directories can contain only ASCII compatible strings.
- Migrating any share data from older NFSv3 to new vSAN File Service shares with NFSv4 only requires conversion of all file and directories names to UTF-8 encoding. There are third part tools to achieve the same.
- Navigate to the vSAN cluster and click Configure > vSAN > File Shares.
- Click Add.
The Create file share wizard opens.
- In the General page, enter the following information and click Next.
- Name: Enter a name for the file share.
- Protocol: Select an appropriate protocol. vSAN File Service supports SMB and NFS file system protocols.
If you select the SMB protocol, you can also configure the SMB file share to accept only the encrypted data using the Protocol encryption option.If you select the NFS protocol, you can configure the file share to support either NFS 3, NFS 4, or both NFS 3 and NFS 4 versions. If you select NFS 4 version, you can set either AUTH_SYS or Kerberos security.Note: SMB protocol and Kerberos security for NFS protocol can be configured only if the vSAN File Service is configured with Active Directory. For more information, see Configure File Services.
- Storage Policy: Select an appropriate storage policy.
- Affinity site: This option is available if you are creating a file share on a stretched cluster. This option helps you place the file share on a file server that belongs to the site of your choice. Use this option when you prefer low latency while accessing the file share. The default value is Either, which indicates that the file share is placed randomly on either preferred or secondary site.
- Storage space quotas: You can set the following values:
- Share warning threshold: When the share reaches this threshold, a warning message is displayed.
- Share hard quota: When the share reaches this threshold, new block allocation is denied.
- Labels: A label is a key-value pair that helps you organize file shares. You can attach labels to each file share and then filter them based on their labels. A label key is a string with 1~250 characters. A label value is a string and the length of the label value should be less than 1k characters. vSAN File Service supports up to 5 labels per share.
- The Net access control page, provides options to define access to the file share. Net access control options are available only for NFS shares. Select one of the following options and click Next.
- No access: Select this option to make the file share inaccessible from any IP address.
- Allow access from any IP: Select this option to make the file share accessible from all IP addresses.
- Customize net access: Select this option to define permissions for specific IP addresses. Using this option you can specify whether a particular IP address can access, make changes, or only read the file share. You can also enable or disable Root squash for each IP address. You can enter the IP addresses in the following formats:
- A single IP address. For example, 188.8.131.52
- IP address along with a subnet mask. For example, 184.108.40.206/8
- A range by specifying a starting IP address and ending IP address separated by a hyphen ( - ). For example, 220.127.116.11-18.104.22.168
- Asterisk ( * ) to imply all the clients.
- In the Review page, review the settings, and then click Finish.
A new file share is created on the vSAN datastore.