[SOLVED] PBS datastore only showing 228gb out of a 1 TiB nfs truenas share?

jakub1

New Member
Dec 23, 2024
2
0
1
Hello, I just setup PBS and am attempting to setup a nfs mount to my TrueNAS server for the PBS backups. I created a new dataset and set a quota of 1 TiB within TrueNas. I disabled de-duplication, compression, and made sure checksum was enabled in TrueNAS for the NFS share as I've read somewhere that is recommended to do so.

For some reason only 228gb shows up within PBS in the datastore when mounted.

error PBS.png
 
Error is fixed, you can fix it by mounting the datashare manually and making a directory for the datashare through shell.

Code:
mkdir -p /mnt/path to NFS share

Then you mount the NFS share:
Code:
mount -t nfs IP of server:/mnt/path to NFS share /mnt/path to NFS share

Verify if it correctly mounted:
Code:
mount | grep /mnt/path to NFS share

Check storage size:
Code:
df -h /mnt/path to NFS share

Make the mount persistent in fstab. After that's done it's mandatory to make maproot user and maproot group on the NFS share as "root" in TrueNAS under advanced options. Otherwise it'll throw an EPERM: Operation not permitted error. Under "Hosts" add the IP of PBS as well in the same menu.

This should fix the issue if anyone runs into the same problem for TrueNAS Scale. Speeds won't be fast, but that is expected. So far I'm loving PBS, probs to the devs.
 
Great you found a solution! Please tag this thread "Solved" by (re-) editing the first post. The "Title" has a drop-down menu for this.
 
Error is fixed, you can fix it by mounting the datashare manually and making a directory for the datashare through shell.

Code:
mkdir -p /mnt/path to NFS share

Then you mount the NFS share:
Code:
mount -t nfs IP of server:/mnt/path to NFS share /mnt/path to NFS share

Verify if it correctly mounted:
Code:
mount | grep /mnt/path to NFS share

Check storage size:
Code:
df -h /mnt/path to NFS share

Make the mount persistent in fstab. After that's done it's mandatory to make maproot user and maproot group on the NFS share as "root" in TrueNAS under advanced options. Otherwise it'll throw an EPERM: Operation not permitted error. Under "Hosts" add the IP of PBS as well in the same menu.

This should fix the issue if anyone runs into the same problem for TrueNAS Scale. Speeds won't be fast, but that is expected. So far I'm loving PBS, probs to the devs.
Thanks. followed your instructions so far. What I'm trying to do is use my Truenas NFS share for storage of my Frigate recordings. Frigate is installed on Home Assistant as an add-on and HAOS is running as a vm under proxmox. The instructions I am seeing online tell me to:
Step 1: Add Virtual Disk in Proxmox VE

  1. Open Proxmox VE Web UI: Go to the Proxmox VE web interface.
  2. Select HAOS VM: Select your HAOS VM in the left-hand navigation pane.
  3. Go to Hardware Tab: Click on the "Hardware" tab.
  4. Click "Add" -> "Hard Disk": This will open the "Add Hard Disk" window.
  5. Configure Disk:
    • Storage: Select the storage that represents your mounted NFS share. It should be under "local" and then the directory "/mnt/nfs_frigate".
    • Disk Size: Enter the desired size in GiB (e.g., 1024 for 1 TiB).
    • Bus/Device: Choose "VirtIO Block" for optimal performance.
    • Cache: Choose a suitable cache mode (e.g., "Write back").
    • Discard: Enable "Discard" if your storage supports it.
  6. Click "Add": This will add the virtual disk to your HAOS VM's hardware configuration.
Problem is, the mount doesn't show up in the add hard disk option in the haos vm hardware setup. It only gives me the local-lvm choice. Any ideas?