

# Amazon FSx for Lustre
<a name="shared-storage-config-fsxlustre-v3"></a>

To use an existing external FSx for Lustre file system for long-term permanent storage outside of the cluster life cycle, specify [`FsxLustreSettings`](SharedStorage-v3.md#SharedStorage-v3-FsxLustreSettings) / [`FileSystemId`](SharedStorage-v3.md#yaml-SharedStorage-FsxLustreSettings-FileSystemId).

If you don't specify [`FsxLustreSettings`](SharedStorage-v3.md#SharedStorage-v3-FsxLustreSettings) / [`FileSystemId`](SharedStorage-v3.md#yaml-SharedStorage-FsxLustreSettings-FileSystemId), by default, Amazon ParallelCluster creates a managed FSx for Lustre file system from [`FsxLustreSettings`](SharedStorage-v3.md#SharedStorage-v3-FsxLustreSettings) when it creates the cluster. Amazon ParallelCluster also deletes the file system and data when the cluster is deleted or when the file system is removed from the cluster configuration.

For an Amazon ParallelCluster managed FSx for Lustre file system, you can use the [`FsxLustreSettings`](SharedStorage-v3.md#SharedStorage-v3-FsxLustreSettings) / [`DeletionPolicy`](SharedStorage-v3.md#yaml-SharedStorage-FsxLustreSettings-DeletionPolicy) to instruct Amazon ParallelCluster to `Delete` or `Retain` the file system when either the cluster is deleted or when the file system is removed from the cluster configuration. By default, `DeletionPolicy` is set to `Delete`.

**Warning**  
For Amazon ParallelCluster managed shared storage, `DeletionPolicy` is set to `Delete` by default.  
This means that, if one of the following is true, a managed file system and its data are deleted:  
You delete the cluster.
You change the managed shared storage configuration [`SharedStorage`](SharedStorage-v3.md) / [`Name`](SharedStorage-v3.md#yaml-SharedStorage-Name).
You remove the managed shared storage from the configuration.
We recommend that you back up your shared storage regularly to avoid the loss of data. You can define backups in your cluster with [`SharedStorage`](SharedStorage-v3.md) / [`FsxLustreSettings`](SharedStorage-v3.md#SharedStorage-v3-FsxLustreSettings) / [`AutomaticBackupRetentionDays`](SharedStorage-v3.md#yaml-SharedStorage-FsxLustreSettings-AutomaticBackupRetentionDays) and [`DailyAutomaticBackupStartTime`](SharedStorage-v3.md#yaml-SharedStorage-FsxLustreSettings-DailyAutomaticBackupStartTime). To learn how to manage data backups across Amazon Web Services services, see [Amazon Backup](https://docs.amazonaws.cn/aws-backup/latest/devguide/whatisbackup.html) in the *Amazon Backup Developer Guide*.