Swapping storage for jail addon

r3bbit

Dabbler
Joined
Feb 7, 2022
Messages
11
Hello,

I have zoneminder installed and it seemed to have installed on my 4tib drive and using my 1tib ssd for storage. How can I add por point to the 4tb storage instead.?
I see that the IOCAGE is installed on my 1tb ssd and nothing really installed on the 4... so I am confused in regards to this. I have seem guides online, however, those all point to having either a VM or a linux distro installed....

When I go to the jail in order to map the path, I only see my 1tb drive and nothing else.
 

Attachments

  • disk.PNG
    disk.PNG
    417.4 KB · Views: 208
  • space.PNG
    space.PNG
    590.7 KB · Views: 222
Joined
Oct 22, 2019
Messages
3,641
When I go to the jail in order to map the path, I only see my 1tb drive and nothing else.
The top selection named "Source" is the real location where data will be saved/read. The bottom selection named "Destination" is the mount point path inside the jail itself.

Therefor, when you access Zoneminder's web GUI, and you want to choose a location to save videos, you would enter/select the path:
/media/recordings

...or whatever path you prefer.


Thus, anything that Zoneminder thinks it's saving into /media/recordings (in its own jail's filesystem), is actually a mount point to the real location/dataset that TrueNAS sees of the actual ZFS filesystem.


For "Source", you can have it use the root folder of the "Cams" top-level root dataset, but I advise against that. You could create children datasets, as you cannot change the permissions/ownerships of the top-level root dataset in TrueNAS.



So perhaps your ZFS tree might look like:
  • Cams
    • recordings


Thus, your "Source" might be:
/mnt/Cams/recordings <-- actual videos will be saved here, as seen by TrueNAS and ZFS

And your "Destination" might be:
/mnt/backup/iocage/jails/Cams/root/media/recordings <-- Zoneminder thinks its saving videos here, but it's only a mount point

Keep in mind you need to set the correct permissions/ownerships of newly created datasets, as they default to the "root" user as the owner.
 

r3bbit

Dabbler
Joined
Feb 7, 2022
Messages
11
Thank you for the info.. I have went and changed everything to try to understand what I am doing. I have went and created a new source and changed the permissions to "www" and the "Wheel" group in order to provide all the access that is required.

Once I created the path, I went and changed everything that was needed within the mount and ZM. However, I don't understand why my 4tb drive still does not show up within ZM as an available location and only shows 0.00 of 0.00 available. I have tried /mnt/cam/recordings as well as /cam/recordings to no availability.
 

Attachments

  • New save.PNG
    New save.PNG
    296.3 KB · Views: 211
  • Path.PNG
    Path.PNG
    238.7 KB · Views: 200
  • Drives.PNG
    Drives.PNG
    669.5 KB · Views: 208
Joined
Oct 22, 2019
Messages
3,641
Because the ZoneMinder jail only knows of the path (within the jail) of the bolded text. The "slash" immediately after "root" is where the jail's private filesystem begins.

/mnt/backup/iocage/jails/Cams/root/media/recording

Which means you should use /media/recording, not /Cams/Recordings, when adding a storage entry under ZoneMinder's preferences.

jail-mount-point-vs-real-path.jpg


The jail has no knowledge nor access to anything outside of its own private filesystem, unless you specifically create a mount point that points to the real dataset/folder of the TrueNAS server.

Any references to /media/recording within the jail itself is actually pointing to the real path of /mnt/Cams/Recordings (which happens to be a dataset of your 4 TiB pool.)

In your above example, you're telling ZoneMinder (which lives in a jail) to save videos to the path /Cam/Recordings (within the jail).

There is no such path within the jail. It doesn't exist.

(See my previous post. You might have misread certain parts.)
 
Last edited:

r3bbit

Dabbler
Joined
Feb 7, 2022
Messages
11
Hello,

I did misunderstand what you where saying and I apologize for that. I went back and made the needed changes and got it to work. Thank you for your assistance and quick reply.
 
Top