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.
Prerequisites
If you are creating an SMB file share or a NFSv4.1 file share with Kerberos security, then ensure that you have configured vSAN File Service to an AD domain.
Considerations for Share Name and Usage
- Usernames with non-ascii characters can be used to access share data.
- Share names cannot exceed 80 characters and can contain English characters, numbers, and hypen character. Every hyphen character must be preceded and followed by a number or alphabet. Consecutive hyphens are not allowed.
- 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.
Procedure
- 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.
- 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, 123.23.23.123
- IP address along with a subnet mask. For example, 123.23.23.0/8
- A range by specifying a starting IP address and ending IP address separated by a hyphen ( - ). For example, 123.23.23.123-123.23.23.128
- 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.