Skip to content

Commit 885f716

Browse files
Merge pull request #245687 from jimmart-dev/jammart-storage-hns-upgrade-active-lease
storage hns upgrade with active leases
2 parents 2a7bd6a + 0096991 commit 885f716

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

articles/storage/blobs/upgrade-to-data-lake-storage-gen2-how-to.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: normesta
55
ms.service: storage
66
ms.custom: devx-track-azurepowershell
77
ms.topic: conceptual
8-
ms.date: 07/19/2023
8+
ms.date: 07/20/2023
99
ms.author: normesta
1010
---
1111

@@ -25,6 +25,7 @@ To prepare to upgrade your storage account to Data Lake Storage Gen2:
2525
> [!div class="checklist"]
2626
> - [Review feature support](#review-feature-support)
2727
> - [Ensure the segments of each blob path are named](#ensure-the-segments-of-each-blob-path-are-named)
28+
> - [Prevent write activity to the storage account](#prevent-write-activity-to-the-storage-account)
2829
2930
### Review feature support
3031

@@ -51,6 +52,19 @@ In some cases, you will have to allow time for clean-up operations after a featu
5152

5253
The migration process creates a directory for each path segment of a blob. Data Lake Storage Gen2 directories must have a name so for migration to succeed, each path segment in a virtual directory must have a name. The same requirement is true for segments that are named only with a space character. If any path segments are either unnamed (`//`) or named only with a space character (`_`), then before you proceed with the migration, you must copy those blobs to a new path that is compatible with these naming requirements.
5354

55+
### Prevent write activity to the storage account
56+
57+
The upgrade might fail if an application writes to the storage account during the upgrade. To prevent such write activity:
58+
59+
1. Quiesce any applications or services that might perform write operations.
60+
1. Release or break existing leases on containers and blobs in the storage account.
61+
1. Acquire new leases on all containers and blobs in the account. The new leases should be infinite or long enough to prevent write access for the duration of the upgrade.
62+
63+
After the upgrade has completed, break the leases you created to resume allowing write access to the containers and blobs.
64+
65+
> [!WARNING]
66+
> Breaking an active lease without gracefully disabling applications or virtual machines that are currently accessing those resources could have unexpected results. Be sure to quiesce any current write activities before breaking any current leases.
67+
5468
## Perform the upgrade
5569

5670
### [Portal](#tab/azure-portal)

0 commit comments

Comments
 (0)