TrueNAS NFS Setup For XCP-ng and Linux

Описание к видео TrueNAS NFS Setup For XCP-ng and Linux

In this video, we cover how to set up NFS Shares in TrueNAS

Several operating systems can take advantage of NFS, including hypervisors like XCP-ng to have shared storage between nodes so we also go over configuring XCP-ng and Linux as clients

=============================
SUPPORT THE CHANNEL
Donate through Paypal:
https://paypal.me/DavidMcKone
Donate through Buy Me A Coffee:
https://buymeacoffee.com/dmckone
Become a monthly contributor on Patreon:
  / dmckone  
Become a monthly contributor on YouTube:
   / @techtutorialsdavidmckone  
==============================

==============================
MEDIA LINKS:
Website - https://www.techtutorials.tv/
Twitter -   / dsmckone1  
Facebook -   / dsmckone  
Linkedin -   / dmckone  
Instagram -   / david.mckone  
==============================

Several operating systems can take advantage of NFS

This is more popular for Linux computers and hypervisors so we also cover how to configure a Linux client and an XCP-ng hypervisor

One of the main benefits for hypervisors like XCP-ng is that NFS provides an opportunity to provide shared storage between nodes

This allows VMs to be migrated from one node to another

Whilst not as fast as iSCSI, one of the benefits of using NFS on a NAS like TrueNAS is that the NAS has visbility of the files making it easier to backup and restore individual files for individual VMs, without requiring additional software

We begin with how to create user and group accounts in TrueNAS for access permissions, how to create a dataset and how to share that using Unix shares aka NFS

Next we show how to attach to an NFS share for use as an ISO storage for XCP-NG

Because we want to upload CD images to this share, we cover how to create a matching user and group account in Linux so that the name and IDs match

For example,
sudo addgroup --gid 3000 grpxcpusers
sudo adduser --uid 2000 fred
sudo usermod -g grpxcpusers fred

Then we show how to install the NFS client software (nfs-common) on a Linux computer to be able to mount NFS shares as well as Autofs to automate the mounting and mapping of an NFS share to a folder

For example.
sudo apt update
sudo apt install nfs-common
sudo ap install autofs
sudo nano /etc/auto.master
/nfs /etc/auto.nfs
sudo nano /etc/auto.nfs
ISOs -fstype=nfs4 172.16.20.30:/mnt/Pool1/ISOS

And how to update the client software for use with NFS version 4
sudo nano /etc/default/nfs-common
NEED_IDMAPD=yes
NEED_GSSD=no # no is default
sudo service autofs reload

Because the user and group accounts do not show correctly on the Linux computer we show how to correct the domain mapping issue
sudo nano /etc/idmapd.conf
Domain=templab.lan

Because shared storage is a very useful feature for hypervisors like XCP-NG we demonstrate how to set up a VDI storage in XCP-ng to advantage of an NFS share in TrueNAS

Finally we cover the performance pitfalls of NFS and how you can disable the synchronous writes in TrueNAS to get around this, but also the preferred option of how to create a ZLog aka write cache in a TrueNAS system that uses ZFS

Credits:
LoveLife | Instrumental Prod. Blue Mango | EQMUSEQ.COM by Don Da Vinci
https://soundcloud.com/eqmuseq/loveli...

00:00:00 Intro
00:00:42 Overview
00:02:33 TrueNas User and Group
00:10:40 Datasets and Permissions
00:22:21 NFS Sharing
00:33:36 XCP-NG Add NFS ISO Storage
00:40:51 Multiple User Access
00:42:41 Linux User and Group
00:45:04 AutoFS
01:00:00 NFS for VMS
01:04:10 Disabling Synchronous Writes
01:12:20 ZLog

Truenas nfs setup,Truenas nfs permissions,Truenas nfs xcp-ng,Truenas nfs tutorial,xcp-ng nfs storage,xcp-ng iso library,autofs nfs,autofs linux,autofs configuration in linux,autofs configuration in linux step by step,autofs nfs mount,ubuntu nfs mount,ubuntu nfs-common,ubuntu nfs client install,ubuntu autofs nfs,xcp-ng shared storage,truenas nfs share setup

TrueNAS NFS Setup For XCP-ng and Linux

Комментарии

Информация по комментариям в разработке