Confused About Storage Allocation in Nextcloud with TrueNAS (RAIDZ1, 52TB)

Hi everyone,

I’m setting up Nextcloud on TrueNAS with a RAIDZ1 configuration (6x12TB drives, giving a total of 52TB), and I’ve run into an issue where Nextcloud’s storage is not using the full space available on my NAS. Let me explain the setup and the problem:

Setup:

  • TrueNAS with RAIDZ1 configuration, resulting in a total usable space of 52TB.
  • Dataset created for /mnt/Storage/nextcloud.
  • I’ve configured Docker containers for Nextcloud, with UserData and AppData being stored in /mnt/Storage/nextcloud/UserData and /mnt/Storage/nextcloud/AppData.

The Problem:

  • In Portainer, the volume mapping seems correct — /mnt/Storage/nextcloud/UserData and /mnt/Storage/nextcloud are correctly mapped.
  • However, when I check the available storage in Nextcloud, /mnt/ncdata only shows 111GB in use, despite the actual storage being 52TB on the server.
  • UserData is mounted correctly, but it shows 0% usage in Nextcloud even though it should be storing data there.

I’m confused because:

  1. Docker is correctly mapping volumes, and the datasets on the TrueNAS server are set up properly.
  2. The volume UserData is showing 111GB, but the underlying dataset has 52TB available.
  3. AppData and PostgresData volumes are working as expected, but UserData is underutilized.

I tried:

  • Checking if the mount points in Docker are correct.
  • Verifying the volume mappings in Portainer.
  • Reviewing permissions for all directories involved.
  • Ensuring that /mnt/ncdata should point to /mnt/Storage/nextcloud/UserData.

My Question:

  • Why is /mnt/ncdata only showing 111GB when the actual disk has 52TB of usable space?
  • How can I make sure Nextcloud utilizes the full space on the RAIDZ1 dataset?

Any insights or solutions would be greatly appreciated. Thanks!

PS. Here are some screenshots:

Screenshot 1 Screenshot 2 Screenshot 3

I was able to solve the problem by doing the following:

In the config.php file, I changed the datadirectory from /mnt/ncdata to /storage/nextcloud/userdata.

After making this change, I received an error stating that .ncdata was not writable, and Nextcloud was not usable. The web interface was gone, showing this error message.

I then found the following solution and followed the instructions: After upgrading to NC 30 I`m receiving error about the .ncdata - #6 by Vasily_Mazyluk

To fix the issue, we had to add the .ncdata file with the requested text to /var/www/data in the container. Before, there was only the .ocdata file.

After that, it seemed to work, but the data was corrupted. Moving the files didn’t work correctly either because something was always broken, especially when using apps like “Recognize” and others.

Therefore, the proper way to fix it is: First, take a backup of your files, then delete all users. Change the assignment in the config.php file, restart all containers, and wait. Then, recreate the users, and everything will be correctly placed in the appropriate path and folder.

Now, Nextcloud correctly uses userdata with the full 52TB of storage.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.