Proxmox VE Volume
Proxmox VE can add a storage device to Scrypted through the Proxmox VE web interface. There are a few steps: adding the storage to Proxmox VE and passing the storage through to Scrypted.
TIP
The Recordings Directory should not be manually configured in the NVR plugin when using the process described below. Clear any manual Recordings Directory configuration inside the NVR plugin prior to usage of this script.
WARNING
If adding multiple storage devices beyond the first, see the Proxmox VE Disk Setup Notes for additional notes on the script.
Prepare Storage
- Open the Proxmox VE web interface.
- Select the server (aka
node
) from theDatacenter
drawer on the left. - Select the
Disks
section in the secondary drawer. - Find the Device in the list. The disk's Device will typically be something like
/dev/sda
or/dev/sdb
. - Click
Wipe Disk
. - Select the
Directory
section in the secondary drawer. - Click
Create: Directory
.
- For
Filesystem
selectext4
. - Name the new storage something recognizable like
nvr-storage
(remember this for later).
Add Storage
- Select the server (aka
node
) from theDatacenter
drawer on the left. - Select the
Shell
section in the secondary drawer. - Enter the following to download the storage setup script:
cd /tmp
curl -s https://raw.githubusercontent.com/koush/scrypted/main/install/proxmox/setup-scrypted-nvr-volume.sh > setup-scrypted-nvr-volume.sh
Adjust the the previously named nvr-storage
if necessary, and run the script:
bash setup-scrypted-nvr-volume.sh nvr-storage
This command will stop Scrypted, add the storage, and start the Scrypted.
Continue on to Enable Camera Recording.
INFO
Reference: Proxmox VE Disk Setup Notes has information about the script.
Reference: Proxmove VE Mount Point has information about using standard Proxmox Mount points, which are not recommended due to issues with backup and snapshots.
Mount Point
For example, as seen in the screenshot below, inside the container Resources
:
- Click
Add
and selectMount Point
. - Set the size to 1000GB (adjust accordingly).
- Set the mount to
/mnt/crucial
(the name can be any preference in place of "crucial"). - The
/mnt/crucial
path can then be provided to the NVR Plugin after restarting the container.
WARNING
The Proxmox VE Mount Points MUST set the path to be inside /mnt
in the container.
Disk Setup Notes
The disk setup adds the disk as a directory on the host system. The setup script modifies the lxc conf file (/etc/pve/lxc/10443.conf
) to mount the directory into the container. It also creates a hidden .nvr
file to the storage folder to earmark it for NVR usage. This method allows for fast snapshots, replications, and backups.
Environment variables can be set to change the setup script behavior:
WARNING
Read more about Multiple Storage Devices before running these advanced commands.
Additional disks can be added by setting the ADD_DISK=true
environment variable:
ADD_DISK=true bash setup-scrypted-nvr-volume.sh another-nvr-storage
A Fast Disk
can be added by setting the FAST_DISK=true
environment variable:
FAST_DISK=true bash setup-scrypted-nvr-volume.sh fast-nvr-storage