Deployments in the past on the managment domain in the past mostly were done on vSAN or FC but NFS can also be used as principle storage so here is quick tutorial to show the NFS storage configuration on VCF 9.
You could actually use True NAS to do this as well but the logic is here is it just need two interfaces – one for our managment network to access the cli and next is a dedicated storage network
- 40 GB OS drive
- 4 TB size for data
- NIC 1 (mgmt) port group
vCF-Mgmt-VLAN-1611, 172.16.11.9/24, gw 172.16.11.253, - NIC 2 (storage) port group
vCF-vSAN-VLAN-1613, 172.16.13.10/24, no gateway, MTU 9000
Once the OS is installed, all we need is a /etc/netplan/50-vcf.yaml:
awk@sfo-nfs01:~$ sudo cat /etc/netplan/50-vcf.yaml
network:
version: 2
ethernets:
ens33:
addresses: [172.16.11.9/24]
routes:
- to: default
via: 172.16.11.253
nameservers:
addresses: [172.16.11.10]
search: [ash.local]
ens36:
addresses: [172.16.13.10/24]
mtu: 9000
Remove the default installer one if it exists
sudo rm -f /etc/netplan/00-installer-config.yaml /etc/netplan/50-cloud-init.yaml
sudo chmod 600 /etc/netplan/50-vcf.yaml
sudo netplan apply
ip -br addr

Create an XFS volume on /dev/sdb and export out as /export/vcf-mgmt
lsblk
sudo mkfs.xfs -L vcfnfs /dev/sdb
sudo mkdir -p /export/vcf-mgmt
echo 'LABEL=vcfnfs /export/vcf-mgmt xfs defaults,noatime 0 2' | sudo tee -a /etc/fstab
sudo mount -a && df -h /export/vcf-mgmt
sudo chmod 0777 /export/vcf-mgmt
Configure an NFS Server
sudo apt update && sudo apt install -y nfs-kernel-serverExport the directory . For production, use sync
echo '/export/vcf-mgmt 172.16.13.0/24(rw,sync,no_root_squash,no_subtree_check)' | sudo tee -a /etc/exportsFor lab configuration, we dont need async in /etc/exports and this setting will give us blazing speed for our NVMe
/export/vcf-mgmt 172.16.99.0/24(async,no_wdelay,hide,no_subtree_check,sec=sys,rw,secure,no_root_squash,no_all_squash)An optional tuning you can add to NFS is the number of threads than using the default 8 connections on NFS v3. ESX uses TCP for communication so turn off UDP as well so rather than messing up the native OS all these are created under a seperate directory
sudo mkdir -p /etc/nfs.conf.d
touch vcf.conf
[nfsd]
threads=32
vers3=y
vers4=n
udp=n
Restart all services
sudo systemctl enable --now nfs-server
sudo systemctl restart nfs-server
sudo exportfs -ra && sudo exportfs -vAllow via firewall if ufw is on: sudo ufw allow from 172.16.13.0/24
Do a quick test , set MTU on vSwitch 0 to 9000

Add a new portgroup under the NFS range on 1613

Portgroup connected to vmnic0

Dry run via CLI
esxcli network vswitch standard portgroup add -v vSwitch0 -p sfo-m01-cl01-vds01-pg-nfs
esxcli network vswitch standard portgroup set -p sfo-m01-cl01-vds01-pg-nfs --vlan-id 1613
esxcli network ip interface add -i vmk1 -p sfo-m01-cl01-vds01-pg-nfs -m 9000
esxcli network ip interface ipv4 set -i vmk1 -I 172.16.13.250 -N 255.255.255.0 -t static
vmkping -I vmk1 -d -s 8972 172.16.13.10 # jumbo frames end to end
esxcli storage nfs add -H 172.16.13.10 -s /export/vcf-mgmt -v nfs-test
esxcli storage nfs list
# Accessible: true, Mounted: true
touch /vmfs/volumes/nfs-test/test && rm /vmfs/volumes/nfs-test/test
# clean up
esxcli storage nfs remove -v nfs-test
esxcli network ip interface remove -i vmk1
Choose to add a vmkernel adapter on vSwitch 0


Give it a test portgroup as choose vlan in our san network 1613

Create a test ip

Validate and click finish

A new vmk1 is ready

Validate if jumbo frame works

Set time sync on ntp under /etc/systemd/timesyncd.conf
NTP=172.16.11.251Restart timesyncd
systemctl restart systemd-timesyncd
