IMD SolutionComputing LibraryShop main store

Explainer

Why Industrial Edge Publisher mounts removable storage read only

Edge computing and IIoT Published 6 min read

Short answer

Industrial Edge Publisher mounts every removable storage volume read only with slave propagation and rejects any compose file that drops the ro flag. A database writing 10 times per second cannot keep its data on the panel's SD card. Move that write path to edge hardware with writable container volumes and leave the removable mount for reads.

On this page
  1. What Publisher enforces on removable storage
  2. What ro,slave means on the mount
  3. Why running the container as root does not help
  4. The write load for a database at 10 writes per second
  5. Where the write path belongs instead
  6. The decision for each case
  7. Questions asked

Industrial Edge Publisher mounts every Data-Storage (removable) volume as a read-only bind with slave propagation, and its validation rejects any compose file that drops the ro flag. That is not a fault on your panel; it is how the Publisher defines the volume type: removable storage on the host side is for reading, not for a container that writes constantly. An InfluxDB container inserting 10 times per second therefore cannot put its data or configuration directories on the panel's SD card through this volume type, however the YAML is edited. Treat the /media/simatic binds as read only, keep the panel on the work it is built for, and put the write-heavy database on edge hardware whose container volumes are writable. The arithmetic behind that decision, and the decision for each case, follow below.

What Publisher enforces on removable storage #

When you add a volume in Publisher and select the Data-Storage (removable) type, Publisher maps external storage from the host side into the container; the app Publisher manual describes the type as the one for mounting external storage on the host. On an MTP1500 Unified Comfort Panel, two volumes for the database container — one for configuration, one for data — came out like this:

volumes:
  - '/media/simatic:/var/lib/influxdb:ro,slave'
  - '/media/simatic:/etc/influxdb:ro,slave'

Deleting ro from the YAML does not get through validation. Publisher returns one line per bind:

"/media/simatic:/etc/influxdb:slave" path must be mounted as read only with bind-propagation slave.
"/media/simatic:/var/lib/influxdb:slave" path must be mounted as read only with bind-propagation slave.

Configuring through the Publisher interface instead of the YAML is no way around it either: for this volume type the interface offers no way to drop read-only at all. Storage volume settings for the app service sit under the Storage tile in Publisher, and read-only volumes and read-only container filesystems are documented topics in the Industrial Edge platform documentation, so read the constraint as design rather than defect for this panel family and release. The generated flags and the validation message are observed behavior; a statement of intent, or a change, has to come from the vendor for your exact panel, Publisher and app versions — capture those versions before anyone escalates.

What ro,slave means on the mount #

ro makes the kernel refuse writes to the bind; reads continue to work. slave is bind propagation: the container's view of the mount follows mount events on the host side, which is how the card — mounted by the device at runtime under /media/simatic — appears inside the container at all. Publisher insists on the pair, and dropping ro while keeping slave is exactly what the validation message rejects. The consequence splits cleanly: anything the container reads from the card works, and anything that writes — database page writes, write-ahead log segments, compaction, an app appending its own logs — fails at the mount itself.

Why running the container as root does not help #

The workaround that circulates is to run the image as root and ignore the Publisher warning. It fails because ro is enforced by the kernel on the mount, before any user's permissions are consulted: a write to a read-only mount returns EROFS, the kernel's read-only-filesystem error, for root exactly as for an unprivileged user. The failing control sits in the compose volume declaration, not in the image.

The Node-RED example app is the instructive contrast — it does write to connected USB or SD media through its file node, which shows removable-media writes can work when an app's volume layout routes them outside these forced read-only binds. Use that example as a controlled write test for the media, not as proof that a database container's volumes can be made writable. And if a test of your own fails with a permission error rather than a read-only one, that is a different fault — container user against host directory ownership — covered in Node-RED Docker EACCES: write to host storage, not the container.

The write load for a database at 10 writes per second #

The inputs: the database inserts at 10 writes per second — the rate the reported panel application writes at — and the period lengths are unit conversions, 3,600 seconds in an hour and 24 hours in a day, not measurements. The rule in words: a constant insert rate becomes a write count by multiplying the rate by the period's length in seconds, and each insert into a journaling database touches more than one flash region — data pages, the write-ahead log, index pages — so the flash traffic is a multiple of the insert count.

The arithmetic, chained:

  • 10 writes/s × 3,600 s = 36,000 writes in an hour
  • 36,000 writes in an hour × 24 h = 864,000 writes in a day

The result: 864,000 writes in a day scales to 25,920,000 writes in a 30-day stretch (864,000 × 30) and 315,360,000 in a year (864,000 × 365) — about 315 million inserts with log and index traffic stacked behind each one. The decision: at 864,000 or more writes in a day, the storage must be a writable volume on a medium sized for sustained writes — the panel's internal memory is out, and a mount the Publisher forces read only is out twice over. Below that class of load — occasional exports, staged configuration, logs pulled by hand — the read-only removable mount is the right tool, used as designed.

Where the write path belongs instead #

Move the database container to a host whose volumes are writable, and let the panel keep doing what it is built for. The host does not need to be large: a fanless industrial mini PC in the same cabinet takes the container runtime, the writable data volume and the config bind, and the operational side of parking it there — power behavior, service startup, a watchdog — is the same discipline as running a compact industrial PC as an always-on server. Lay the volumes out deliberately: data on a dedicated writable path, configuration bound separately rather than buried in nested mounts — the same layout rule as binding container configuration directories instead of nested resource mounts. Persist the data directory across restarts so a container rebuild does not empty the history; the failure mode is why an InfluxDB container loses old data after restart, and sizing the disk for the rate follows choosing edge storage for high-rate vibration data.

The vendor's own alternatives for this exact question: the compact route is an IOT2050 (order number 6ES7647-0BA00-1YA2) with Industrial OS and a Docker runtime; the fleet route is a full Industrial Edge deployment with a dedicated edge IPC and a software management instance, which pays off once several devices need managing but carries setup overhead.

The decision for each case #

  • Reads from the card only — staged configuration and reference files the container reads: keep the Data-Storage (removable) volume as generated. The read-only mount is the feature working as designed.
  • A database at the rate worked above: stop editing the YAML. Keep ro,slave, leave the panel's storage out of the write path, and host the InfluxDB container on writable volumes — a compact box PC or one of the alternatives named in the previous section.
  • Removable persistence inside the Edge app as a hard requirement: run the controlled write test with the Node-RED example app and take the question, with the full version set, through the vendor's official support channel. An ignored validation warning is not a data path.

Questions asked

Does the read-only rule also apply to the app-level volume type?

No. An app-level volume is created in Publisher by entering a volume name and a driver name, and the manual notes it cannot be used to exchange files between applications. Data-Storage (removable) is the type that mounts external storage on the host side, and that removable type is the one Publisher forces to be read only. The constraint described here belongs to removable storage, not to app-level volumes.

What does the Node-RED example image do differently?

Its Dockerfile sets USER root and starts Node-RED with the --userDir option pointed at /cfg-data, and through its file node it writes to connected USB or SD media. That shows removable-media writes work when an app's volume layout avoids the forced read-only binds. It does not show that a database container's volumes can be made writable: the compose declaration still decides, and root cannot override a kernel-enforced ro flag.

What should a controlled write test on the panel record?

Run the Node-RED example app, published as support entry 109778780, write through its file node to the connected USB or SD card, and note whether those writes succeed while the database container's removable volumes stay read only. Record the panel model, the Edge OS version, the Publisher version and the app version with the result. That package is what a version-specific answer from the vendor's support channel needs, and none of those versions appear in public symptom reports.

Is the SD card useless in this setup?

No, it stays useful for reads. Configuration and reference files staged onto the card from a workstation can be read by the container through the bind, and anything already on the card can be read back. What the card cannot do is receive app output, because the same mount blocks every write the container attempts. Remove the card only while the application is stopped; pulling media during activity risks corrupting whatever wrote to it last.

Keep reading

  • How-to

    Backing up Industrial Edge Management VMs with snapshots

    Take the snapshot with the Industrial Edge Management VM powered off, through the hypervisor user interface. Keep it only for the maintenance window: VMware documents a 72-hour maximum and states that snapshots are not backups. Validate the update, delete the snapshot, and use a VM clone for long-term retention.

    Edge computing and IIoT

  • How-to

    Bridging OPC UA PLC data to MQTT with an edge PC

    Keep the OPC UA server on the PLC side and give MQTT publishing its own role on a separate edge PC that acts as the OPC UA client and MQTT publisher. Commission the two links independently — first a verified tag read, then a verified subscriber message — and only then widen the tag set.

    Edge computing and IIoT

  • Comparison

    Choosing edge storage for high-rate vibration data

    Keep the CSV-in-ZIP vibration archive that already works at 10 kHz, and treat Parquet as a candidate format, not a capacity fix. Move only after the Parquet writer proves exact sample fidelity, sustained throughput at the real acquisition rate, and recoverable completed archives after power loss. A format change is an engineering change with its own acceptance test, and compression in either format never repairs precision lost upstream.

    Edge computing and IIoT