007revad /Synology_HDD_db
Add your HDD, SSD and NVMe drives to your Synology's compatible drive database and a lot more
★ 6,013⑂ 385👁 87⑃ 289● 250▤ 115
+2
日增长
6,013
stars
385
forks
87
watchers
289
prs
250
issues
115
releases
README
Synology HDD db
!Badge
Description
Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
The script works in DSM 7, including DSM 7.1, 7.2, 7.3 and 7.4, and DSM 6.
It also has a restore option to undo all the changes made by the script.
Also works for 2025 series or later Plus models. See 2025_plus_models.md
What the script does:
Gets the Synology NAS model and DSM version (so it knows which db files to edit).
Gets a list of the HDD, SSD, SAS and NVMe drives installed in your Synology NAS.
Gets each drive's model number and firmware version.
Backs up the database files if there is no backup already.
Checks if each drive is already in the Synology's compatible-drive database.
Adds any missing drives to the Synology's compatible-drive database.
Optionally prevents DSM auto updating the drive database.
Optionally disable DSM's "support_disk_compatibility".
Optionally disable DSM's "support_memory_compatibility" to prevent non-Synology memory notifications.
Optionally edits max supported memory to match the amount of memory installed, if installed memory is greater than the current max memory setting.
DSM only uses the max memory setting when calculating the reserved RAM area size for SSD caches.
Optionally set write_mostly for your internal HDDs so DSM will normally read from your faster internal SSD(s).
It can automatically set DSM to read from your internal SSDs.
Or you can tell the script which internal drive(s) DSM should read from.
Optionally disables Western Digital Device Analytics (aka WDDA) to prevent DSM showing a warning for WD drives that are 3 years old.
DSM 7.2.1 already has WDDA disabled.
Makes DSM allow you to enable SSD TRIM on 3rd party SSDs and NVMes. Don't use the -f or --force option if you want to enable SSD TRIM.
Do NOT use TRIM on SSDs in RAID 5, RAID 6 or SHR with 3 or more SSDs unless you are certain your SSDs use TRIM Method 1 mentioned here.
Enabling TRIM on SSDs that use TRIM Method 2 can result in data loss in RAID 5, RAID 6 and SHR with 3 or more drives.
Enables M2D20, M2D18, M2D17 and E10M20-T1 if present on Synology NAS that don't officially support them.
Newer NAS models may also need Synology_enable_M2_card
Checks that M.2 volume support is enabled (on models that have M.2 slots or PCIe slots).
Enables creating M.2 storage pools and volumes from within Storage Manager in DSM 7.2 and later (newer models only?).
Including M.2 drives in PCIe adaptor cards like M2D20, M2D18, M2D17 and E10M20-T1 for DSM 7.2 and above (schedule the script to run boot).
Optionally update IronWolf Health Monitor to v2.5.1 to support recent model IronWolf and IronWolf Pro drives. (NAS with x86_64 CPUs only).
Also installs IronWolf Health Management on '22 series and newer models that don't have IronWolf Health Management (untested).
MakeTop issues
#514DSM 7.3 - works without major issues83 comments · 2025-10-08#306Crucial CT4000P3SSD8 Unrecognized firmware version72 comments · 2024-06-21#581Drive compatibility25 comments · 2026-05-12#377Lost M.2 PCIe Card E10M20-T1 after update to DSM 7.2.2-7280624 comments · 2024-10-24#432enable creating m.2 storage pool on ds1823xs+ with E10M20-T122 comments · 2025-02-26#587Issue trying to update to v3.6.12617 comments · 2026-06-02#506Synology DS925+ with DSM 7.2.2-72806 and WD4003FR15 comments · 2025-09-03#441DS1522+ DSM 7.2.2 - 72806 Update 3 Issue with WD Red SN700 1TB NVMe Drives on DS1522+: Still Incompatible15 comments · 2025-03-07
Discussions
#624DS1621+ NVMe RAID1 pool: both drives time out in the same second on the same queue, irqbalance suspected2 comments · 2026-11-06#623script doesn't work on RS3621xs+ with DSM DSM 7.4.1-90080 Update 1 and M2D20 with Samsung NVMEs for read/write cache1 comments · 2026-11-03#618Rescan without reboot1 comments · 2026-09-27#616Does this work on the UC3200 & UC3400?1 comments · 2026-09-10#614Dsm update erased /opt2 comments · 2026-08-25#609DS725+ RAID constantly goes critical and have to repair2 comments · 2026-08-08#608Storage Efficiency usage with non-Synology drives (works on DS423+ but not on DS1825+)0 comments · 2026-08-07#605Read-write SSD cache on third-party M.2 NVMe — working procedure for the "failed to mount an SSD read-write cache" error2 comments · 2026-07-30
Latest release
v3.6.139 v3.6.139 2026-08-30- Changed to only edit the current Synology model's host db files. - Skips old Synology model's db files if the drives were migrated from a different model.