Skip to content

Commit 79a66b3

Browse files
Merge pull request #15920 from ManikaDhiman/md-refs-updates
Updates to the ReFS dedup article
2 parents 2ac7c15 + 9b8d575 commit 79a66b3

File tree

1 file changed

+30
-5
lines changed

1 file changed

+30
-5
lines changed

azure-stack/hci/manage/refs-deduplication-and-compression.md

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to use ReFS deduplication and compression in Azure Stack
44
author: alkohli
55
ms.author: alkohli
66
ms.topic: how-to
7-
ms.date: 04/10/2024
7+
ms.date: 09/24/2024
88
---
99

1010
# Optimize storage with ReFS deduplication and compression in Azure Stack HCI
@@ -148,25 +148,24 @@ After you enable this feature, you can run a one-time job manually or schedule r
148148
149149
Before you run, you should also factor these other considerations:
150150
151-
- The first run after enabling this feature is always a full scan and optimization of the entire volume. If the `FullRun` parameter is specified, the optimization covers the entire volume rather than new or unoptimized data.
152151
- If you don't specify a compression format, the default algorithm is LZ4. You can change the algorithm from one run to another as needed.
153152
- You can specify more parameters for more complex use cases. The cmdlet used in this section is for the simplest use case.
154-
- The Full Run, Excluded folder, Excluded file extensions, and Minimum last modified time hours filters apply only when running deduplication, and don't apply when running compression.
153+
- The Excluded folder, Excluded file extensions, and Minimum last modified time hours filters apply only when running deduplication, and don't apply when running compression.
155154
156155
**Manually run ReFS deduplication and compression jobs**
157156
158157
- To start a job immediately, run the following cmdlet. Once you start a job, its `State` might appear as `NotStarted` because it could still be in the initialization phase.
159158
160159
```powershell
161-
Start-ReFSDedupJob -Volume <path> -Duration <TimeSpan> -FullRun -CompressionFormat <LZ4 | ZSTD> 
160+
Start-ReFSDedupJob -Volume <path> -Duration <TimeSpan> -CompressionFormat <LZ4 | ZSTD> 
162161
```
163162
164163
For example, the following cmdlet starts a job immediately for a duration of 5 hours using the LZ4 compression format:
165164
166165
```powershell
167166
PS C:\Users\hciuser> $Start = “10/31/2023 08:30:00”
168167
PS C:\Users\hciuser> $Duration = New-Timespan -Hours 5
169-
PS C:\Users\hciuser> Start-ReFSDedupJob -Volume "C:\ClusterStorage\Volume1" -FullRun -Duration $Duration -CompressionFormat LZ4
168+
PS C:\Users\hciuser> Start-ReFSDedupJob -Volume "C:\ClusterStorage\Volume1" -Duration $Duration -CompressionFormat LZ4
170169
171170
Id Name PSJobTypeName State HasMoreData Location Command
172171
-- ---- ------------- ----- ----------- -------- -------
@@ -394,6 +393,32 @@ The duration limit is in place to prevent any performance impact on customer wor
394393

395394
The following section lists the known issues that currently exist with ReFS deduplication and compression.
396395

396+
### When Compression is enabled, using the `-FullRun` parameter on jobs after the first optimization run might result in a deadlock in the system.
397+
398+
**Status:** Open.
399+
400+
Avoid using `-FullRun` in manually started jobs unless the `Type` is `Dedup`.
401+
402+
Follow these steps as a temporary workaround to mitigate this issue:
403+
404+
1. Disable ReFS deduplication and compression on the volume:
405+
406+
```powershell
407+
Disable-ReFSDedup -Volume <path>
408+
```
409+
410+
1. Decompress the volume using `refsutil`:
411+
412+
```powershell
413+
refsutil compression /c /f NONE <vol>
414+
```
415+
416+
1. Re-enable ReFS deduplication and compression with the `Dedup` only mode, if needed:
417+
418+
```powershell
419+
Enable-ReFSDedup -Volume <path> -Type Dedup
420+
```
421+
397422
### Scheduling jobs to run simultaneously on multiple CSVs within a single cluster can potentially trigger CSV movements and negatively impact performance.
398423
399424
**Status:** Open.

0 commit comments

Comments
 (0)