Composite docker application with "8" containers (2x Node-RED, 2x MQTT broker, Telegraf, InfluxDb, Grafana, Nginx) for deployment on Raspberry Pi through Balena.
Eclipse Public License 2.0
58
stars
42
forks
source link
mounting USB memory stick in influxdb container didn't work. #3
Using the command df``in the influxdb container I have noticed that the USB drive is not mounted. I tried to manually mount it using the commandmount \mnt\usbdrivebut it reported following error: root@98d476aa8909:/# mount /mnt/usbdrive
mount: /dev/sda1 is already mounted or /mnt/usbdrive busy
root@98d476aa8909:/#`
The problem is most likely caused due to the fact that same device (/dev/sda1 = my USB memory stick) is already mounted in the telegraf container and apparently you can not mount the same device twice.
I have removed the mount instructions for the same drive in the telegraf container. This fixed the issue but this also meant that the telegraf is not reporting any disk metrics for the USB drive.
Using the command
df``in the influxdb container I have noticed that the USB drive is not mounted. I tried to manually mount it using the command
mount \mnt\usbdrivebut it reported following error:
root@98d476aa8909:/# mount /mnt/usbdrive mount: /dev/sda1 is already mounted or /mnt/usbdrive busy root@98d476aa8909:/#`The problem is most likely caused due to the fact that same device (/dev/sda1 = my USB memory stick) is already mounted in the telegraf container and apparently you can not mount the same device twice.