[GH-ISSUE #107] Deduplication option not appearing for HDDs on DS925+ with 4GiB of RAM & tiny deduplication #28

Closed
opened 2026-03-07 19:10:10 +03:00 by kerem · 11 comments
Owner

Originally created by @MacGyverNL on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/007revad/Synology_enable_Deduplication/issues/107

The script and syno_hdd_db.sh seems to run successfully on a DS925+ with DSM 7.3.2-86009 with 4GiB of RAM and two Western Digital Red Plus 8TB disks, with --tiny --hdd, but after rebooting and trying in a clean browser session I still cannot get the "Configure data deduplication" option to appear.

Full output of sudo -s ./syno_enable_dedupe.sh -c:

Synology_enable_Deduplication v1.4.32
DS925+ DSM 7.3.2-86009

StorageManager 1.0.1-1100

Using options: -c
Running from: /volume1/scripts/Synology_enable_Deduplication-1.4.32/syno_enable_dedupe.sh

NAS has 4 GB of memory.

Btrfs Data Deduplication is not enabled.

Tiny Btrfs Data Deduplication is enabled.

Dedupe config menu for HDDs and 2.5" SSDs is enabled.

Checking non-Synology drive supported.
File is already edited.

Checking value in backup file.
Backup file is okay.

The setup seems to satisfy all requirements listed in https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-2255309896 -- btrfs, healthy, usage detail enabled:

Image

And only having tiny dedup enabled shouldn't be an issue, from what I can gather from https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-2265606520

But the context menu doesn't have the option:
Image

Seems related to https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-3288546177

Forked off from #97

Originally created by @MacGyverNL on GitHub (Dec 10, 2025). Original GitHub issue: https://github.com/007revad/Synology_enable_Deduplication/issues/107 The script and `syno_hdd_db.sh` seems to run successfully on a DS925+ with DSM 7.3.2-86009 with 4GiB of RAM and two Western Digital Red Plus 8TB disks, with `--tiny --hdd`, but after rebooting and trying in a clean browser session I still cannot get the "Configure data deduplication" option to appear. Full output of `sudo -s ./syno_enable_dedupe.sh -c`: ``` Synology_enable_Deduplication v1.4.32 DS925+ DSM 7.3.2-86009 StorageManager 1.0.1-1100 Using options: -c Running from: /volume1/scripts/Synology_enable_Deduplication-1.4.32/syno_enable_dedupe.sh NAS has 4 GB of memory. Btrfs Data Deduplication is not enabled. Tiny Btrfs Data Deduplication is enabled. Dedupe config menu for HDDs and 2.5" SSDs is enabled. Checking non-Synology drive supported. File is already edited. Checking value in backup file. Backup file is okay. ``` The setup *seems* to satisfy all requirements listed in https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-2255309896 -- btrfs, healthy, usage detail enabled: <img width="901" height="975" alt="Image" src="https://github.com/user-attachments/assets/d84759ad-5758-415f-9eb2-decaed8a6a34" /> And *only* having tiny dedup enabled shouldn't be an issue, from what I can gather from https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-2265606520 But the context menu doesn't have the option: <img width="684" height="477" alt="Image" src="https://github.com/user-attachments/assets/4f496583-a55f-4be8-8508-32096476a99b" /> Seems related to https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-3288546177 _Forked off from [#97](https://github.com/007revad/Synology_enable_Deduplication/issues/97#issuecomment-3637305121)_
kerem closed this issue 2026-03-07 19:10:11 +03:00
Author
Owner

@MacGyverNL commented on GitHub (Dec 10, 2025):

Since it was requested in a similar issue (https://github.com/007revad/Synology_enable_Deduplication/issues/88#issuecomment-2552440158), attached a zip of the ui folder including the storage_panel.js and its backup for storage manager 1.0.1-1100.

I can confirm that the replaced storage_manager.js is the file being sent to the browser.

storagemanager-ui.zip

<!-- gh-comment-id:3638056267 --> @MacGyverNL commented on GitHub (Dec 10, 2025): Since it was requested in a similar issue (https://github.com/007revad/Synology_enable_Deduplication/issues/88#issuecomment-2552440158), attached a zip of the ui folder including the `storage_panel.js` and its backup for storage manager 1.0.1-1100. I can confirm that the replaced `storage_manager.js` *is* the file being sent to the browser. [storagemanager-ui.zip](https://github.com/user-attachments/files/24084332/storagemanager-ui.zip)
Author
Owner

@007revad commented on GitHub (Dec 11, 2025):

If you had storage manager already open you need to close it and open it again.

Which version of syno_hdd_db did you use?

<!-- gh-comment-id:3640782116 --> @007revad commented on GitHub (Dec 11, 2025): If you had storage manager already open you need to close it and open it again. Which version of syno_hdd_db did you use?
Author
Owner

@MacGyverNL commented on GitHub (Dec 11, 2025):

If you had storage manager already open you need to close it and open it again.

Before reporting I gave the NAS two reboots (with the scripts also setup to re-run at shutdown) and tested the interface in a completely clean browser session to eliminate any possibility of cache being the culprit. Did that again just now, same behaviour.

Which version of syno_hdd_db did you use?

Initially used Synology_HDD_db-3.6.112. The drives no longer had any warning on them, but I see there's a .113 now, so I've updated, re-ran the HDD script, rebooted again (which re-ran both scripts again, because I forgot to disable the shutdown task), and re-tested in a clean browser session. No change.

Output from that run on reboot:

Task Scheduler has completed a triggered task.

Task: Reenable Deduplication
Start time: Thu, 11 Dec 2025 13:50:56 GMT
Stop time: Thu, 11 Dec 2025 13:50:59 GMT
Current status: 0 (Normal)
Standard output/error:
Synology_enable_Deduplication v1.4.32
DS925+ DSM 7.3.2-86009

StorageManager 1.0.1-1100

Using options: --tiny --hdd
Running from: /volume1/scripts/Synology_enable_Deduplication-1.4.32/ 
syno_enable_dedupe.sh

NAS has 4 GB of memory.

Non-Synology drive support already enabled.

Tiny Btrfs Data Deduplication already enabled.

Dedupe config menu for HDDs and 2.5" SSDs already enabled.

Finished
Synology_HDD_db v3.6.113
DS925+ x86_64 DSM 7.3.2-86009
StorageManager 1.0.1-1100

ds925+_host_v7 version 8008

Using options: --noupdate
Running from: /volume1/scripts/Synology_HDD_db-3.6.113/syno_hdd_db.sh

HDD/SSD models found: 1
WD80EFPX-68C4ZN0,81.00A81,8001 GB

No M.2 drives f ound

No M.2 PCIe cards found

No Expansion Units found

WD80EFPX-68C4ZN0 (81.00A81) already exists in 
ds925+_host_v7.db

Support disk compatibility already enabled.

Disabled drive db auto updates.

DSM successfully checked disk compatibility.

You may need to reboot the Synology to see the changes.

Drives (still) showing without any warnings after reboot:

Image

But no option to configure data deduplication on the volume.

<!-- gh-comment-id:3641805374 --> @MacGyverNL commented on GitHub (Dec 11, 2025): > If you had storage manager already open you need to close it and open it again. Before reporting I gave the NAS two reboots (with the scripts also setup to re-run at shutdown) and tested the interface in a completely clean browser session to eliminate any possibility of cache being the culprit. Did that again just now, same behaviour. > Which version of syno_hdd_db did you use? Initially used Synology_HDD_db-3.6.112. The drives no longer had any warning on them, but I see there's a .113 now, so I've updated, re-ran the HDD script, rebooted again (which re-ran both scripts *again*, because I forgot to disable the shutdown task), and re-tested in a clean browser session. No change. Output from that run on reboot: ``` Task Scheduler has completed a triggered task. Task: Reenable Deduplication Start time: Thu, 11 Dec 2025 13:50:56 GMT Stop time: Thu, 11 Dec 2025 13:50:59 GMT Current status: 0 (Normal) Standard output/error: Synology_enable_Deduplication v1.4.32 DS925+ DSM 7.3.2-86009 StorageManager 1.0.1-1100 Using options: --tiny --hdd Running from: /volume1/scripts/Synology_enable_Deduplication-1.4.32/ syno_enable_dedupe.sh NAS has 4 GB of memory. Non-Synology drive support already enabled. Tiny Btrfs Data Deduplication already enabled. Dedupe config menu for HDDs and 2.5" SSDs already enabled. Finished Synology_HDD_db v3.6.113 DS925+ x86_64 DSM 7.3.2-86009 StorageManager 1.0.1-1100 ds925+_host_v7 version 8008 Using options: --noupdate Running from: /volume1/scripts/Synology_HDD_db-3.6.113/syno_hdd_db.sh HDD/SSD models found: 1 WD80EFPX-68C4ZN0,81.00A81,8001 GB No M.2 drives f ound No M.2 PCIe cards found No Expansion Units found WD80EFPX-68C4ZN0 (81.00A81) already exists in ds925+_host_v7.db Support disk compatibility already enabled. Disabled drive db auto updates. DSM successfully checked disk compatibility. You may need to reboot the Synology to see the changes. ``` Drives (still) showing without any warnings after reboot: <img width="950" height="584" alt="Image" src="https://github.com/user-attachments/assets/4c1ba937-806a-4166-90c1-f5259667a54d" /> But no option to configure data deduplication on the volume.
Author
Owner

@007revad commented on GitHub (Dec 11, 2025):

I just figured out what tiny dedupe is. It's for defragging the file system. I just ran this script on my DS925+ which only has 4GB of memory.

Image

Before running syno_enable_dedupe only my SATA SSD volume had the File System Defragmentation option.

After running syno_enable_dedupe without any options (no --tiny or --hdd), and without rebooting Storage Manager now shows the File System Defragmentation option for NVMe, HDD and SATA SSD volumes.

I'll update the script and readme to reflect that.

<!-- gh-comment-id:3644128312 --> @007revad commented on GitHub (Dec 11, 2025): I just figured out what tiny dedupe is. It's for defragging the file system. I just ran this script on my DS925+ which only has 4GB of memory. <img width="909" height="306" alt="Image" src="https://github.com/user-attachments/assets/1280b337-2659-40ce-95fe-5a0f690d1adb" /> Before running syno_enable_dedupe only my SATA SSD volume had the File System Defragmentation option. After running syno_enable_dedupe without any options (no --tiny or --hdd), and without rebooting Storage Manager now shows the File System Defragmentation option for NVMe, HDD and SATA SSD volumes. I'll update the script and readme to reflect that.
Author
Owner

@MacGyverNL commented on GitHub (Dec 11, 2025):

Hmm. Then there's still a weird discrepancy with https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-2265606520 with @WAdama reporting that on their 10GiB DS420+ it does allow running a dedup analysis; that's below the 16GiB threshold for normal dedup.

<!-- gh-comment-id:3644147965 --> @MacGyverNL commented on GitHub (Dec 11, 2025): Hmm. Then there's still a weird discrepancy with https://github.com/007revad/Synology_enable_Deduplication/issues/79#issuecomment-2265606520 with @WAdama reporting that on their 10GiB DS420+ it *does* allow running a dedup analysis; that's below the 16GiB threshold for normal dedup.
Author
Owner

@MacGyverNL commented on GitHub (Dec 11, 2025):

Before running syno_enable_dedupe only my SATA SSD volume had the File System Defragmentation option.

After running syno_enable_dedupe without any options (no --tiny or --hdd), and without rebooting Storage Manager now shows the File System Defragmentation option for NVMe, HDD and SATA SSD volumes.

I cannot reproduce this. I've reverted all changes the enable_dedup script made, rebooted the DS925+, confirmed there's no mention of any kind of dedup in /etc/synoinfo.conf and /etc.default/synoinfo.conf. Storage manager shows defrag just fine. Note I have not reverted the changes that the HDD_db script made. Might defragmentation simply only be available for Synology-branded drives normally?

What I have been able to figure out now: if I manually enable the support_btrfs_dedupe key using synosetkeyvalue, the option does appear, but indeed refuses to run the dedup analyzer with the usual "system needs 16GiB of RAM" notification. Having both support_tiny_btrfs_dedupe and support_btrfs_dedupe set to yes doesn't change that.

<!-- gh-comment-id:3644301811 --> @MacGyverNL commented on GitHub (Dec 11, 2025): > Before running syno_enable_dedupe only my SATA SSD volume had the File System Defragmentation option. > > After running syno_enable_dedupe without any options (no --tiny or --hdd), and without rebooting Storage Manager now shows the File System Defragmentation option for NVMe, HDD and SATA SSD volumes. I cannot reproduce this. I've reverted all changes the `enable_dedup` script made, rebooted the DS925+, confirmed there's no mention of *any* kind of dedup in `/etc/synoinfo.conf` and `/etc.default/synoinfo.conf`. Storage manager shows defrag just fine. Note I have *not* reverted the changes that the `HDD_db` script made. Might defragmentation simply only be available for Synology-branded drives normally? What I *have* been able to figure out now: if I manually enable the `support_btrfs_dedupe` key using `synosetkeyvalue`, the option *does* appear, but indeed refuses to run the dedup analyzer with the usual "system needs 16GiB of RAM" notification. Having both `support_tiny_btrfs_dedupe` and `support_btrfs_dedupe` set to `yes` doesn't change that.
Author
Owner

@007revad commented on GitHub (Dec 12, 2025):

Previously defragging was only available for enterprise models and SATA and SAS SSDs, then later only for Synology SATA or SAS SSDs. By editing a file to make storage manager skip the "is it a Synology drive" check I was able to get the defrag option to appear for 3rd party drives. By also making it skip the "is it a SSD" check I was able to get it appear for HDDs and NVMe drives. By editing synoinfo.conf I was able to get it to appear for all Synology NAS models.

The support_tiny_btrfs_dedupe option would have been added when Synology changed from ext4 to btrfs for the system partition.

In DSM 7.3.1 I just checked all 122 Synology model's synoinfo.conf and:

  • None of them contain support_tiny_btrfs_dedupe so DSM probably does not use that setting in DSM 7.3
    • support_tiny_dedupe first appeared in DSM 7.2.1 (which was probably when DSM started using btrfs for the system partition)
  • Only the following 14 models contain support_btrfs_dedupe="yes"
FS2500, FS3400, FS3410, FS3600, FS6400
HD6500
RS3621RPxs, RS3621xs+, RS4021xs+
SA3400, SA3410, SA3600, SA3610, SA6400
<!-- gh-comment-id:3644427502 --> @007revad commented on GitHub (Dec 12, 2025): Previously defragging was only available for enterprise models and SATA and SAS SSDs, then later only for Synology SATA or SAS SSDs. By editing a file to make storage manager skip the "is it a Synology drive" check I was able to get the defrag option to appear for 3rd party drives. By also making it skip the "is it a SSD" check I was able to get it appear for HDDs and NVMe drives. By editing synoinfo.conf I was able to get it to appear for all Synology NAS models. The support_tiny_btrfs_dedupe option would have been added when Synology changed from ext4 to btrfs for the system partition. In DSM 7.3.1 I just checked all 122 Synology model's synoinfo.conf and: - None of them contain support_tiny_btrfs_dedupe so DSM probably does not use that setting in DSM 7.3 - support_tiny_dedupe first appeared in DSM 7.2.1 (which was probably when DSM started using btrfs for the system partition) - Only the following 14 models contain support_btrfs_dedupe="yes" ``` FS2500, FS3400, FS3410, FS3600, FS6400 HD6500 RS3621RPxs, RS3621xs+, RS4021xs+ SA3400, SA3410, SA3600, SA3610, SA6400 ```
Author
Owner

@MacGyverNL commented on GitHub (Dec 12, 2025):

  • None of them contain support_tiny_btrfs_dedupe so DSM probably does not use that setting in DSM 7.3
    • support_tiny_dedupe first appeared in DSM 7.2.1 (which was probably when DSM started using btrfs for the system partition)

So I guess the conclusion then is that, at least for now, no version of Synology's deduplication is available for systems with less than 16GiB after a brief stint between DSM 7.2.1 and 7.3.

One final thing I looked into: it does appear to be the case that the synobtrfsdedupe executable still takes run-light as an argument, but I cannot for the life of me get that to work and it doesn't give any useful logs, so that seems like a dead end for now as well.

Ah well. Guess I'll have to see if jdupes does the job sufficiently.

<!-- gh-comment-id:3644455335 --> @MacGyverNL commented on GitHub (Dec 12, 2025): > * None of them contain support_tiny_btrfs_dedupe so DSM probably does not use that setting in DSM 7.3 > * support_tiny_dedupe first appeared in DSM 7.2.1 (which was probably when DSM started using btrfs for the system partition) So I guess the conclusion then is that, at least for now, no version of Synology's deduplication is available for systems with less than 16GiB after a brief stint between DSM 7.2.1 and 7.3. One final thing I looked into: it does appear to be the case that the `synobtrfsdedupe` executable still takes `run-light` as an argument, but I cannot for the life of me get that to work and it doesn't give any useful logs, so that seems like a dead end for now as well. Ah well. Guess I'll have to see if jdupes does the job sufficiently.
Author
Owner

@007revad commented on GitHub (Dec 12, 2025):

I'm not sure why it worked for @WAdama with only 10GiB of memory. Maybe storage manager actually checks if there's 8GiB or more than 8GiB but shows the "16GiB is needed" message if there isn't 8GiB or more.

I only have 2GiB and 16GiB modules, plus the 4GiB that it is my DS925+. If I had another 4GiB I'd install it in the DS925+ to see what happens with 8GiB total. Or if I had an 8GiB I could try 10GiB and 12GiB.

<!-- gh-comment-id:3644566728 --> @007revad commented on GitHub (Dec 12, 2025): I'm not sure why it worked for @WAdama with only 10GiB of memory. Maybe storage manager actually checks if there's 8GiB or more than 8GiB but shows the "16GiB is needed" message if there isn't 8GiB or more. I only have 2GiB and 16GiB modules, plus the 4GiB that it is my DS925+. If I had another 4GiB I'd install it in the DS925+ to see what happens with 8GiB total. Or if I had an 8GiB I could try 10GiB and 12GiB.
Author
Owner

@MacGyverNL commented on GitHub (Dec 12, 2025):

I'm not sure why it worked for @WAdama with only 10GiB of memory. Maybe storage manager actually checks if there's 8GiB or more than 8GiB but shows the "16GiB is needed" message if there isn't 8GiB or more.

The comment I referenced was written over a year ago, so I just assume they were using one of those versions between 7.2.1 and 7.3 where support_tiny_btrfs_dedupe was being used in DSM.

<!-- gh-comment-id:3646694975 --> @MacGyverNL commented on GitHub (Dec 12, 2025): > I'm not sure why it worked for [@WAdama](https://github.com/WAdama) with only 10GiB of memory. Maybe storage manager actually checks if there's 8GiB or more than 8GiB but shows the "16GiB is needed" message if there isn't 8GiB or more. The comment I referenced was written over a year ago, so I just assume they were using one of those versions between 7.2.1 and 7.3 where `support_tiny_btrfs_dedupe` *was* being used in DSM.
Author
Owner

@f-rakete commented on GitHub (Feb 2, 2026):

As someone with a DS1821+ , 8GB RAM and on 7.3.2-86009 Update 1, WD HDDs only

I successfully ran dedup with this script before, now on 7.3.2-86009 Update 1 i don't have the option anymore.
@007revad
Do I understand correctly that deduplication is now not possible anymore since I updated? And if i upgrade to 16GB it will be possible again?

<!-- gh-comment-id:3834744051 --> @f-rakete commented on GitHub (Feb 2, 2026): As someone with a DS1821+ , 8GB RAM and on **7.3.2-86009 Update 1**, WD HDDs only I successfully ran dedup with this script before, now on 7.3.2-86009 Update 1 i don't have the option anymore. @007revad Do I understand correctly that deduplication is now not possible anymore since I updated? And if i upgrade to 16GB it will be possible again?
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Synology_enable_Deduplication#28
No description provided.