Salmon-Computer-Vision / salmon-computer-vision

MIT License
8 stars 1 forks source link

Setup motion clips output to Raspi external drive #85

Closed KamiCreed closed 6 months ago

KamiCreed commented 6 months ago

Need a way for the Jetsons to output video clip files to the external drive connected to the raspi and have error recovery when hot swapping the drives.

Some potential ways: Old method used SSHFS inside the docker container to mount the folder in the Raspi, another method is to use NFS shares.

KamiCreed commented 6 months ago

NFS shares work well as the host can mount the drive and simply adding the folder to the volume of the container allows the container to access that mount. However, it fails when the external drive is hot swapped. Re-mounting the drive on the host machine does not fix the container failing to access the mount. May require re-mounting and re-initializing the container whenever a hotswap happens.

KamiCreed commented 6 months ago

NFS shares require external harddrives to be formatted as ext4 or something only for Linux machines, so they don't work well with out of the box harddrives that are often formatted in exFAT. Samba and CIFS would be more in line for exFAT, but there is versioning issues as Jetson Nano being so old is still using CIFS version 1.0 and newer Raspis have new Samba versions that are deprecating or outright removed support for CIFS ver 1.0.

KamiCreed commented 6 months ago

Setting the Samba config with the following:

min protocol = NT1
max protocol = NT1

This allows CIFS 1.0 that Jetson nano has.