I played little bit in lab with Quantum Edge. Maybe this could be useful for someone.
NOTE: I PREPARE THIS SOLUTION FOR TEST PURPOSES ONLY. IT IS NOT SUPPORTED BY VENDOR!
Motivation:
Compare to SPARK appliances, Quantum Edge has no possibility to mount external SD card to store logs. At least I did not found any hint how to emulate this. I am testing things on locally managed edge often and when I reboot it, previous logs disappear and also log queue in default location is too short. I would like to prevent this and make logs to survive reboot plus I would like to use for it space from "/logs" folder in file-system (every additional space above required one during installation is attached here).
Solution:
- Create some new folder in /logs (for example /logs/custom_log_loc)
- Create simple bash script for replace of symbolic link related to logs (this is optional, you can do it directly in crontab in next step as well). Remember to add script file executable rights.
#! /bin/sh
rm /opt/fw1/log
ln -s /logs/custom_log_loc/ /opt/fw1/log
- Edit crontab -e and put following line to add script there. This will replace symlink after each device boot.
@reboot /<script_location>/your_script.sh
- For first time you need to reboot the device to make solution operational.
Now you have possibly bigger storage space for logs on locally managed Edge device and it survive reboot. Keep on mind that could be there issues with clearing the space in new location and you need to handle it.