SOLVED Nextcloud only one mountpoint can be added at a time

Artichoke

Dabbler
Joined
Jul 12, 2021
Messages
24
On my TrueNAS I have 6 datasets:

Documents
Downloads
Movies
Screenshots
Photos
Music

They are all placed under /mnt and i can access them using SMB.

But I also want to access them via Nextcloud, so I mount them all under the Nextcloud jail's /mnt directory:

Screen Shot 2021-08-28 at 4.05.18 pm.png


But the problem is, only one of them will actually appear under the /mnt directory at any time (usually the bottom one in the moun point list). What I mean by this is that if I add the mount points 1 by 1, only the last added mount point will appear in the /mnt directory.

What is going on? How do I get them to all work at the same time?
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Issue is that you have them all mounted to the same destination point, which means the last one mounted will hide the previous ones. You should mount them like this:

/mnt/Main/Documents -> /mnt/Main/iocage/jails/NextCloud/root/mnt/Documents
/mnt/Main/Downloads -> /mnt/Main/iocage/jails/Nextcloud/root/mnt/Downloads
 
Top