|
| 1 | +--- |
| 2 | +title: Use Azure Managed Lustre Auto-Export (Preview) |
| 3 | +description: How to use auto-export job to copy data from your Azure Managed Lustre file system to long-term storage in Azure Blob Storage. |
| 4 | +ms.topic: how-to |
| 5 | +ms.date: 06/06/2024 |
| 6 | +author: pauljewellmsft |
| 7 | +ms.author: brlepore |
| 8 | +ms.reviewer: brianl |
| 9 | + |
| 10 | +# Intent: As an IT Pro, I need to be able to auto-export files from my Azure Managed Lustre file system to long-term Azure Blob Storage. |
| 11 | +# Keyword: |
| 12 | +--- |
| 13 | +# Azure Managed Lustre Auto-Export (Preview) |
| 14 | + |
| 15 | +The Auto-Export feature for Azure Managed Lustre is a capability that automatically synchronizes changes in your Azure Managed Lustre file system with a linked Azure Blob Storage Container. This feature ensures that new and modified files in the file system are reflected in the associated Blob Storage Container without manual intervention, streamlining data management and improving synchronization for long-term storage. |
| 16 | + |
| 17 | +## How auto-export works |
| 18 | + |
| 19 | +Auto-Export operates by continuously monitoring changes in the Azure Managed Lustre file system. Based on the configured export policy, it updates the contents of the associated Blob Storage Container to reflect these changes. This provides users with a seamless and automated data replication process. |
| 20 | + |
| 21 | +### Configuration |
| 22 | + |
| 23 | +Auto-Export is enabled on an existing Azure Managed Lustre file system that has an associated Blob Storage Container configured. Auto-Export is configured in the Blob Integration settings in the Azure portal. |
| 24 | + |
| 25 | +To create a new Auto-Export job, follow these steps: |
| 26 | + |
| 27 | +1. In the Azure portal, open your Azure Managed Lustre file system and select the **Blob integration** pane under **Settings**. |
| 28 | +1. Select **+ Create new job**. |
| 29 | +1. In the **Job Type** dropdown, select **Auto-Export**. |
| 30 | +1. In the **File system path** field, you can enter a string to specify a directory path. All new or changed files in the file system under this path (prefix) are continually exported. Files are written to the blob container with the same file path (or prefix) that they have in the Lustre system. To avoid overwriting existing files in the blob container, ensure that the path of the file in your Lustre system doesn't overlap with the existing path of the file in the blob container unless your Lustre file was imported from that path in the Blob Container. |
| 31 | + |
| 32 | + :::image type="content" source="media/auto-export/auto-export-create-job.png" alt-text="Screenshot of the Blob integration page for Azure Managed Lustre highlighting the Create new job button and showing Create import/export job on the right." lightbox="media/auto-export/create-auto-export.png"::: |
| 33 | + |
| 34 | +### Auto-Export Behavior |
| 35 | + |
| 36 | +Auto-Export handles different types of changes as follows: |
| 37 | + |
| 38 | +- **New File Creation, New Directory, and File Content Changes**: Blob Integration identifies new files and directories and changed data and starts an export job automatically. Auto-Export ensures that the latest version of the file is transferred to Blob Storage. |
| 39 | +- **Metadata Changes**: Changes such as renames, ownership updates, or permission adjustments are **not synchronized** currently. |
| 40 | +- **Deletion**: When files, directories, or symlinks are deleted in the file system, they are **not removed** from the Blob Storage Container. |
| 41 | + |
| 42 | +No more than one Blob Integration job (Manual Export, Auto Export, Import) can be run at a time. |
| 43 | +Auto-Export is implemented as continuous export iterations. Upon completion of an iteration, Blob Integration will scan the filesystem for any new files, directories, or content changes and start a new iteration of an export job. |
| 44 | +Logs created in your configured Logging container can help identify synchronization issues and understand the reasons behind failed operations. |
| 45 | + |
| 46 | +## Monitoring and Managing Auto-Export |
| 47 | + |
| 48 | +You can monitor Auto-Export activities and manage configurations using the Azure portal: |
| 49 | +The Blob Integration pane displays details of export activities in the **Recent jobs** section, including the status of recent jobs and metrics related to automatic synchronization. |
| 50 | +To cancel the job that's in progress, select the **Cancel** link for that job in the **Recent jobs** table. The **Cancel** link is only available for the current auto-export. |
| 51 | +To view the metrics of an Auto-Export job, click on the **Name** of the job, and the **Metrics blade** will appear on the right-hand side panel in the Portal. |
| 52 | + |
| 53 | +:::image type="content" source="media/auto-export/auto-export-job-details.png" alt-text="Screenshot of the Blob integration page for Azure Managed Lustre highlighting an auto-export job name and showing Job details on the right." lightbox="media/auto-export/auto-export-job-details.png"::: |
| 54 | + |
| 55 | +### Auto-Export Job Monitoring |
| 56 | + |
| 57 | +The Blob Integration pane displays details of export activities in the **Recent jobs** section, including the status of recent jobs and metrics related to automatic synchronization. |
| 58 | +To cancel the job that's in progress, select the **Cancel** link for that job in the **Recent jobs** table. The **Cancel** link is only available for the current auto-export. |
| 59 | +To view the metrics of an Auto-Export job, click on the **Name** of the job, and the **Metrics blade** will appear on the right-hand side panel in the Portal. |
| 60 | + |
| 61 | +### Metrics |
| 62 | + |
| 63 | +Metrics are grouped into two main categories, *Overall* and *Current Iteration*. |
| 64 | + |
| 65 | +:::row::: |
| 66 | + :::column span=""::: |
| 67 | + **Overall Statistics** |
| 68 | + :::column-end::: |
| 69 | + :::column span="2"::: |
| 70 | + **Statistics since enabling Auto-Export** |
| 71 | + :::column-end::: |
| 72 | +:::row-end::: |
| 73 | +:::row::: |
| 74 | + :::column span=""::: |
| 75 | + Total Files Exported |
| 76 | + :::column-end::: |
| 77 | + :::column span="2"::: |
| 78 | + Count of files successfully copied to the associated Blob Container since enabling Auto-Export |
| 79 | + :::column-end::: |
| 80 | +:::row-end::: |
| 81 | +:::row::: |
| 82 | + :::column span=""::: |
| 83 | + Total MiB Exported |
| 84 | + :::column-end::: |
| 85 | + :::column span="2"::: |
| 86 | + Aggregate file size (in MiB) successfully copied to the associated Blob Container since enabling Auto-Export |
| 87 | + :::column-end::: |
| 88 | +:::row-end::: |
| 89 | +:::row::: |
| 90 | + :::column span=""::: |
| 91 | + Iterations Completed |
| 92 | + :::column-end::: |
| 93 | + :::column span="2"::: |
| 94 | + Count of times Blob Integration has identified new or changed data and initiated a new Export job |
| 95 | + :::column-end::: |
| 96 | +:::row-end::: |
| 97 | +:::row::: |
| 98 | + :::column span=""::: |
| 99 | + Last Successful Iteration |
| 100 | + :::column-end::: |
| 101 | + :::column span="2"::: |
| 102 | + Finish timestamp of the last iteration that successfully exported all data to the associated Blob Container at the time |
| 103 | + :::column-end::: |
| 104 | +:::row-end::: |
| 105 | + |
| 106 | +:::row::: |
| 107 | + :::column span=""::: |
| 108 | + **Current Iteration Statistics** |
| 109 | + :::column-end::: |
| 110 | + :::column span="2"::: |
| 111 | + **Statistics about the current activity** |
| 112 | + :::column-end::: |
| 113 | +:::row-end::: |
| 114 | +:::row::: |
| 115 | + :::column span=""::: |
| 116 | + Files Discovered |
| 117 | + :::column-end::: |
| 118 | + :::column span="2"::: |
| 119 | + Count of files that the Export job is currently exporting, including files already successfully copied to the associated Blob Container in this Iteration* |
| 120 | + :::column-end::: |
| 121 | +:::row-end::: |
| 122 | +:::row::: |
| 123 | + :::column span=""::: |
| 124 | + MiB Discovered |
| 125 | + :::column-end::: |
| 126 | + :::column span="2"::: |
| 127 | + Aggregate file size (in MiB) that the Export job is currently exporting, including files already successfully copied to the associated Blob Container in this Iteration* |
| 128 | + :::column-end::: |
| 129 | +:::row-end::: |
| 130 | +:::row::: |
| 131 | + :::column span=""::: |
| 132 | + Files Exported |
| 133 | + :::column-end::: |
| 134 | + :::column span="2"::: |
| 135 | + Count of files of new and changed data successfully copied to the associated Blob Container |
| 136 | + :::column-end::: |
| 137 | +:::row-end::: |
| 138 | +:::row::: |
| 139 | + :::column span=""::: |
| 140 | + MiB Exported |
| 141 | + :::column-end::: |
| 142 | + :::column span="2"::: |
| 143 | + Aggregate file size (in MiB) of new and changed data successfully copied to the associated Blob Container |
| 144 | + :::column-end::: |
| 145 | +:::row-end::: |
| 146 | +:::row::: |
| 147 | + :::column span=""::: |
| 148 | + Files Failed |
| 149 | + :::column-end::: |
| 150 | + :::column span="2"::: |
| 151 | + Total number of files that failed to copy during the current iteration. Click on this link to be taken to the Logging Container page to view the logs associated with this Auto-Export job. |
| 152 | + :::column-end::: |
| 153 | +:::row-end::: |
| 154 | +\* The metrics for the current ongoing iteration should be read as “so far.” For example, Files Discovered is the number of the files discovered for exporting at the moment of reporting. The next stats reporting cycle may show that more files have been discovered. |
| 155 | + |
| 156 | +## Considerations and Best Practices |
| 157 | + |
| 158 | +While using Auto-Export, consider the following best practices to ensure smooth operation: |
| 159 | + |
| 160 | +- **Conflict Management**: If a file is modified in both the file system and Blob Storage, there is a risk of overwrite. Use application-level coordination to prevent conflicting edits. |
| 161 | +- **Disable Auto-Export Before Deletion**: Before deleting a file system or its Blob Integration, ensure that all queued updates have been synchronized. Verify that the **Last Successful Iteration Time** is recent and the **Files Failed** metric is zero to avoid data loss. Then, disable Auto-Export. |
| 162 | + |
| 163 | +## Next step |
| 164 | + |
| 165 | +- Learn more about [Azure Blob Storage integration with Azure Managed Lustre file systems](blob-integration.md). |
0 commit comments