mirror of
https://github.com/007revad/Synology_HDD_db.git
synced 2026-04-25 21:55:59 +03:00
[GH-ISSUE #521] -S (write_mostly) parameter seems ineffective when SSDs are NVMe #680
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/Synology_HDD_db#680
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @foxh1s on GitHub (Oct 29, 2025).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/521
Hello,
I suspect that the
-Sparameter (for enablingwrite_mostly) is not correctly processing my NVMe drives as internal SSDs.My setup details:
/opt/Synology_HDD_db/syno_hdd_db.sh -n -r -e -S --autoupdate=15If
write_mostlywere successful, I read that the HDDs should show a(W)identifier in/proc/mdstat(e.g., as discussed [here]). I'm not seeing this identifier, and the debug output suggests the NVMe drives are not being detected as internal SSDs.📄 Output of
cat /proc/mdstat📄 Output of
./writemostly_debug.shAs shown in the debug output,
internal_ssd_qtyis 0, indicating the two NVMe drives (nvme0n1,nvme1n1seen inmdstat) are not being counted as internal SSDs for thewrite_mostlylogic.❓ Additional Information Required for Debugging
Please let me know if you require any additional logs or command outputs to help diagnose the NVMe detection issue!
Thank you!
@007revad commented on GitHub (Oct 29, 2025):
write_mostly only works for drives that have the DSM system and swap partitions.
NVMe drives, and drives in an expansion unit, have the partitions but they're empty. DSM only installs on HDDs and 2.5 inch SATA SSDs installed in the NAS.
@foxh1s commented on GitHub (Oct 29, 2025):
I finally manually located the device, specifically
nvme1n1, and ran the script by explicitly passing it as the--ssdargument.The command executed was:
This successfully caused the
(W)identifier to appear, confirming thatwrite_mostlyis now enabled on the underlying system partitions (md0andmd1).📄 Updated Output of
cat /proc/mdstat*I apologize for missing your previous reply. Are there any potential issues with the results shown above? Thank you again!
@007revad commented on GitHub (Oct 30, 2025):
Write mostly is set for your HDDS (sata1, sata2, sata3 and, sata4) in md0 and md1. because there's no 2.5 inch SATA SSDs in md0 or md1 it won't make any difference.
I don't think it will hurt to leave them like that. If you want to remove (W) from the HDDs run:
Change "/volume1/scripts/" to where syno_hdd_db.sh is located.