From this guide, there’s a comment https://www.youtube.com/watch?v=M3pKprTdNqQ
This video is really really the top of the iceberg. A few crucial thing is missing from this like: - excluding the disks from pve, or else you will wonder why it periodically interrupts disk operations or wakes up sleeping disks - disabling the “use tablet for pointer” as that in itself causes 10+% CPU load on the host side for some reason - disabling “hardware” acceleration of virtIO as this is known to cause problems - doing smart configuration (like APM, idle times) on the host side as the guest won’t have access to smart data and alerts - optionally moving the system dataset to the boot disk
Drives were disconnecting randomly. Add this on Your host: cat /etc/modprobe.d/mpt3sas.conf
blacklist mpt3sas
Then
Full grub line: GRUB_CMDLINE_LINUX_DEFAULT=“vfio-pci.ids=1000:0087 pcie_acs_override=downstream,multifunction”
pcie_acs_override=downstream,multifunction: will make the IOMMU groups separate of each other.
Guide: here https://www.reddit.com/r/truenas/comments/x0tgub/scale_drive_resets_with_lsi_93008i_looking_for/
Things to do in TrueNAS
Update the fields in Network > Global Settings
To get internet connection in TrueNAS, go to Network > Global Settings > Fill out the gateway and the DNS Servers.
Best practices for datasets
Naming convention
datasets - dataset_name
folders within datasets - Whatever
To give access to TrueNAS NFS share to Proxmox
Datacenter > Storage > Add NFS > Fill the fields
Make sure in TrueNAS
- That there is an NFS share
- Network is set
- Maproot User is set to root (this and the group below is the account that is used to modify the NFS share)
- Maproot Group is set to wheel
Roadblocks
LXCs can’t be backed up (permission denied)
The post to the guide, the thread if the error still persists, direct link to the guide (this is the one that worked).
Basically, you can’t backup LXCs that are unprivileged. If you really need the LXCs to be unprivileged, edit /etc/vzdump.conf in Proxmox and add tmpdir: / tmp
1nano /etc/vzdump.conf
2tmpdir: / tmp
Use TrueNAS on LXCs (only available on privileged LXCs)
What this will do is mount the NFS to the LXC
Enable NFS in TrueNAS
On the LXC, go to Options > Features > Check the NFS
Install NFS client packages on the LXC
1apt install nfs-common
You’d want to mount the NFS to the LXC on boot, so edit /etc/fstab then add
1# UNCONFIGURED FSTAB FOR BASE SYSTEM
2IP:/mnt/NFS/NFS /home/admin/NFS nfs defaults 0 0
3
4# In my case, this is how it looked like
5hl1truenas1.carlgaspar.local:/mnt/hdd/standard/media_library /home/admin/truenas1_media_library nfs defaults 0 0
Reboot to mount
To mount without restarting
1mount truenas1_media_library
To check if it’s mounted, type
1df -h
Can’t see files in TrueNAS when queried by Plex
The files are being created by a user in TrueNAS but when passed as a shared NFS/SMB, it is being read as a different user, therefore not having access anymore. Make sure that the reader is root so it can see everything.
Standby mode to save electricity
https://www.youtube.com/watch?v=WvCURgT151c