Compare commits

...

12 Commits

Author SHA1 Message Date
Dave Russell e3bd37f743
Update CHANGES.txt for version 3.6.118 4 weeks ago
Dave Russell f4052cde0e
Update TRIM instructions for RAID configurations 4 weeks ago
Dave Russell 0f370e7280
Merge pull request #551 from 007revad/main 4 weeks ago
Dave Russell 8ebe2fb58a
Update script to v3.6.118 4 weeks ago
Dave Russell 8e8ba93d8f
Add v3.6.118 changes to CHANGES.txt 4 weeks ago
Dave Russell 7692e1b210
Update README.md with SSD TRIM warnings 1 month ago
Dave Russell 79c7dfce2c
Update README for SSD TRIM support clarification 1 month ago
007revad 4648a1ad36 Update my-other-scripts.md 2 months ago
Dave Russell 0358413f0a
Merge pull request #542 from 007revad/develop 2 months ago
Dave Russell 760e818a69
Merge pull request #541 from 007revad/develop 2 months ago
Dave Russell 559efaf76c
Merge pull request #539 from 007revad/develop 2 months ago
Dave Russell 5f2cb7520d
Merge pull request #537 from 007revad/develop 2 months ago
  1. 3
      CHANGES.txt
  2. 4
      README.md
  3. 3
      my-other-scripts.md
  4. 12
      syno_hdd_db.sh

3
CHANGES.txt

@ -1,4 +1,5 @@
v3.6.117
v3.6.118
- Changed to enable creating M.2 storage pool and volume in Storage Manager after making DSM check disk compatibility. Issue #441
- Added SSD TRIM warning of possible data loss if non-Synology SSDs or NVMes are in RAID 5, 6 or SHR with more than 3 drives.
- See https://kb.synology.com/en-global/DSM/tutorial/Why_is_SSD_TRIM_available_only_for_SSDs_in_the_compatibility_list

4
README.md

@ -37,7 +37,9 @@ #### What the script does:
* 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](https://arstechnica.com/gadgets/2023/06/clearly-predatory-western-digital-sparks-panic-anger-for-age-shaming-hdds).
* DSM 7.2.1 already has WDDA disabled.
* Makes DSM allow you to enable TRIM on 3rd party SSDs in 2025+ models. Don't use the `-f` or --force` option if you want to enable SSD TRIM.
* 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](https://kb.synology.com/en-global/DSM/tutorial/Why_is_SSD_TRIM_available_only_for_SSDs_in_the_compatibility_list).
* Enabling TRIM on SSDs that use TRIM [Method 2](https://kb.synology.com/en-global/DSM/tutorial/Why_is_SSD_TRIM_available_only_for_SSDs_in_the_compatibility_list) ***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](https://github.com/007revad/Synology_enable_M2_card)
* Checks that M.2 volume support is enabled (on models that have M.2 slots or PCIe slots).

3
my-other-scripts.md

@ -106,6 +106,9 @@ ### Other Synology scripts
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
- **<a href="https://github.com/007revad/Synology_created_date">Synology_created_date</a>**
- Script to show you the created year and month of your Synology NAS or expansion unit.
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [Back to Contents](#contents)
### Synology hardware restrictions

12
syno_hdd_db.sh

@ -29,7 +29,7 @@
# /var/packages/StorageManager/target/ui/storage_panel.js
scriptver="v3.6.117"
scriptver="v3.6.118"
script=Synology_HDD_db
repo="007revad/Synology_HDD_db"
scriptname=syno_hdd_db
@ -2590,10 +2590,18 @@ if [[ -f /usr/syno/sbin/synostgdisk ]]; then # DSM 6.2.3 does not have synostgd
fi
fi
# Enable creating M.2 storage pool and volume in Storage Manager # GitHub issue #441
for d in /sys/block/nvme*; do
# $d is /sys/block/nvme0n1 etc
if [[ $d =~ nvme[0-9][0-9]?n[0-9][0-9]?$ ]]; then
m2_pool_support "$d"
fi
done
# Show TRIM warning if required
if [[ $show_trim_warning == "yes" ]]; then
ding
echo -e "\n${Error}WARNING${Off} Enabling SSD TRIM on drives in RAID 5, 6 or SHR with 3 more drives can"
echo -e "\n${Warning}WARNING${Off} Enabling SSD TRIM on drives in RAID 5, 6 or SHR with 3 more drives can"
echo "result in data loss if the SSD/NVMe drives marks trimmed blocks as released."
echo "SSDs that use Method 1 are okay. Do NOT enable TRIM for SSDs that use Method 2."
echo "See Why_is_SSD_TRIM_available_only_for_SSDs_in_the_compatibility_list here:"

Loading…
Cancel
Save