This system has two mirrored ZFS pools on it, a boot/root pool and a data storage pool. Of course the ZM install puts the event data in /var/db/zoneminder/events/ on my boot/root pool, which is not optimal for me. So this morning I created a couple of ZFS datasets on my storage pool for the event storage. This worked like a charm. For future me, and anyone else who might want to do this here is how I got that created with the quota size I wanted for the events:
Code: Select all
# zfs create storage0/zoneminder
# zfs create storage0/zoneminder/events
# chown www:www /data0/zoneminder
# chown www:www /data0/zoneminder/events
# zfs set quota=500G storage0/zoneminder/events
# zfs set quota=600G storage0/zoneminder
Code: Select all
# ls -l /data0/zoneminder/events/
total 2
drwxr-xr-x 3 www www 3 Nov 1 08:35 1
drwxr-xr-x 2 www www 2 Nov 1 08:33 2
lrwxr-xr-x 1 www www 1 Nov 1 08:33 BackPTZ -> 2
lrwxr-xr-x 1 www www 1 Nov 1 08:32 FrontPTZ -> 1