I have balenaOS is installed on a primary SSD.
I also have a standard SATA 3.5 HDD connected to my board.
This HDD contains large media files that will get consumed by other containers. Data on it should persist in case of any update whether it be host OS update, application update or offline update.
From the information I gathered, I’d have to this:
- Mount the HDD from within a privileged container (And possibly share it with other containers via NFS without using Docker Volumes)
Communicate outside the container - Balena Documentation
So far, this will survive host OS and application updates right?
But what I’m confused about is Offline Update and specifically this quote from the documentation:
These external storage devices are not part of the update process, so data on them would be left intact, as long as they are temporarily disconnected during the update process.
And it also says:
If a device isn’t local, you can just ship the SD card or USB stick/drive to a remote location and let someone there run the update by simply inserting it into the device and booting.
Do I absolutely have to disconnect the HDD first? If I don’t, will the offline update erase my HDD?
If I ship a USB containing offline updates, do I have to tell that someone at a remote location to disconnect the HDD first specifically?