Skip to content

Commit fbfe23d

Browse files
author
Manika Dhiman
committed
Updates to ReFS dedup article
1 parent 2ac7c15 commit fbfe23d

File tree

1 file changed

+30
-4
lines changed

1 file changed

+30
-4
lines changed

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

Lines changed: 30 additions & 4 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,7 +148,7 @@ 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.
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. Don't use the `FullRun` parameter when the `Type` is `DedupandCompress` or `Compress`.
152152
- 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.
153153
- You can specify more parameters for more complex use cases. The cmdlet used in this section is for the simplest use case.
154154
- 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.
@@ -158,15 +158,15 @@ Before you run, you should also factor these other considerations:
158158
- 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.
159159
160160
```powershell
161-
Start-ReFSDedupJob -Volume <path> -Duration <TimeSpan> -FullRun -CompressionFormat <LZ4 | ZSTD> 
161+
Start-ReFSDedupJob -Volume <path> -Duration <TimeSpan> -CompressionFormat <LZ4 | ZSTD> 
162162
```
163163
164164
For example, the following cmdlet starts a job immediately for a duration of 5 hours using the LZ4 compression format:
165165
166166
```powershell
167167
PS C:\Users\hciuser> $Start = “10/31/2023 08:30:00”
168168
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
169+
PS C:\Users\hciuser> Start-ReFSDedupJob -Volume "C:\ClusterStorage\Volume1" -Duration $Duration -CompressionFormat LZ4
170170
171171
Id Name PSJobTypeName State HasMoreData Location Command
172172
-- ---- ------------- ----- ----------- -------- -------
@@ -422,6 +422,32 @@ Once ReFS deduplication and compression is disabled on a volume, the ETW channel
422422

423423
If the CSV is moved to another server of the cluster while compression is in progress, the job failed event isn't logged in the ReFS deduplication channel. However, we don't anticipate significant usage impact because of this issue.
424424

425+
### When Compression is enabled, using `-FullRun` on jobs after the first optimization run might result in a deadlock in the system.
426+
427+
**Status:** Open.
428+
429+
Avoid using `-FullRun` in manually started jobs unless the `Type` is `Dedup`.
430+
431+
Follow these steps as a templorary workaround to mitigate this issue:
432+
433+
1. Disable ReFS deduplication and compression on the volume:
434+
435+
```powershell
436+
Disable-ReFSDedup -Volume <path>
437+
```
438+
439+
1. Decompress the volume using `refsutil`:
440+
441+
```powershell
442+
refsutil compression /c /f NONE <vol>
443+
```
444+
445+
1. Re-enable ReFS deduplication and compression with the `Dedup` only mode, if needed:
446+
447+
```powershell
448+
Enable-ReFSDedup -Volume <path> -Type Dedup
449+
```
450+
425451
## Next steps
426452
427453
- [Manage volume](./manage-volumes.md).

0 commit comments

Comments
 (0)