You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/iot-edge/how-to-access-host-storage-from-module.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Use IoT Edge device local storage from a module - Azure IoT Edge | Microsoft Docs
3
-
description: [TODO]
3
+
description: Use environment variables and create options to enable module access to IoT Edge device local storage.
4
4
author: kgremban
5
5
manager: philmea
6
6
ms.author: kgremban
@@ -10,13 +10,13 @@ ms.service: iot-edge
10
10
services: iot-edge
11
11
---
12
12
13
-
# Use your IoT Edge device's local storage from a module
13
+
# Give modules access to an IoT Edge device's local storage
14
14
15
15
In addition to storing data using Azure storage services or in your device's container storage, you can also dedicate storage on the host IoT Edge device itself for improved reliability, especially when operating offline.
16
16
17
-
To set up storage on the host system, create environment variables for the IoT Edge hub and IoT Edge agent that point to a storage folder in the container. Then, use the create options to bind that storage folder to a folder on the host machine.
17
+
To set up storage on the host system, create an environment variable for your module that points to a storage folder in the container. Then, use the create options to bind that storage folder to a folder on the host machine.
18
18
19
-
You can configure environment variables and the create options for the IoT Edge hub module in the Azure portal in the **Configure advanced Edge Runtime settings** section.
19
+
For example, if you wanted to enable the IoT Edge hub to store messages in your device's local storage and retrieve them later, you can configure the environment variables and the create options in the Azure portal in the **Configure advanced Edge Runtime settings** section.
20
20
21
21
1. For both IoT Edge hub and IoT Edge agent, add an environment variable called **storageFolder** that points to a directory in the module.
22
22
1. For both IoT Edge hub and IoT Edge agent, add binds to connect a local directory on the host machine to a directory in the module. For example:
@@ -67,7 +67,7 @@ Replace `<HostStoragePath>` and `<ModuleStoragePath>` with your host and module
67
67
68
68
For example, on a Linux system, `"Binds":["/etc/iotedge/storage/:/iotedge/storage/"]` means the directory **/etc/iotedge/storage** on your host system is mapped to the directory **/iotedge/storage/** in the container. On a Windows system, as another example, `"Binds":["C:\\temp:C:\\contemp"]` means the directory **C:\\temp** on your host system is mapped to the directory **C:\\contemp** in the container.
69
69
70
-
Additionally, on Linux devices, make sure that the user profile for your module has the required read, write, and execute permissions to the host system directory. For example, if you wanted to enable the IoT Edge hub to store messages in your device's local storage and retrieve them later, you need to grant these permissions to its user profile, UID 1000. (The IoT Edge agent operates as root, so it doesn't need additional permissions.) There are several ways to manage directory permissions on Linux systems, including using `chown` to change the directory owner and then `chmod` to change the permissions, such as:
70
+
Additionally, on Linux devices, make sure that the user profile for your module has the required read, write, and execute permissions to the host system directory. Returning to the earlier example of enabling IoT Edge hub to store messages in your device's local storage, you need to grant permissions to its user profile, UID 1000. (The IoT Edge agent operates as root, so it doesn't need additional permissions.) There are several ways to manage directory permissions on Linux systems, including using `chown` to change the directory owner and then `chmod` to change the permissions, such as:
Copy file name to clipboardExpand all lines: articles/iot-edge/offline-capabilities.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -133,7 +133,7 @@ This setting is a desired property of the IoT Edge hub, which is stored in the m
133
133
134
134
### Host storage for system modules
135
135
136
-
Messages and module state information are stored in the IoT Edge hub's local container filesystem by default. For improved reliability, especially when operating offline, you can also dedicate storage on the host IoT Edge device. For more information, see [Use your IoT Edge device's local storage from a module](how-to-access-host-storage-from-module.md)
136
+
Messages and module state information are stored in the IoT Edge hub's local container filesystem by default. For improved reliability, especially when operating offline, you can also dedicate storage on the host IoT Edge device. For more information, see [Give modules access to an IoT Edge device's local storage](how-to-access-host-storage-from-module.md)
0 commit comments