Open RozzNL opened 1 week ago
root@DS1821:~# /volume1/homes/admin/Scripts/syno_hdd_db.sh -nfr Synology_HDD_db v3.5.103 DS1821+ DSM 7.2.2-72806 StorageManager 1.0.0-00502
ds1821+_host_v7 version 8058
Using options: -nfr Running from: /volume1/homes/admin/Scripts/syno_hdd_db.sh
HDD/SSD models found: 2 ST14000NM001G-2KJ103,SN03,14000 GB ST16000NM001G-2KK103,SN03,16000 GB
M.2 drive models found: 1 Samsung SSD 970 EVO 1TB,2B2QEXE7,1000 GB
No M.2 PCIe cards found
No Expansion Units found
ST14000NM001G-2KJ103 already exists in ds1821+_host_v7.db ST16000NM001G-2KK103 already exists in ds1821+_host_v7.db Samsung SSD 970 EVO 1TB already exists in ds1821+_host_v7.db
Support disk compatibility already disabled.
Support memory compatibility already disabled.
Max memory already set to 64 GB.
NVMe support already enabled.
M.2 volume support already enabled.
Drive db auto updates already disabled.
DSM successfully checked disk compatibility.
You may need to reboot the Synology to see the changes.
Tried to use your Reinstall_DSM but can not roll-back to DSM 7.2.1xxx
/volume1/homes/admin/Scripts/syno_enable_m2_card.sh Synology_enable_M2_card v1.0.6 DS1821+ DSM 7.2.2-72802 (=due to multiple dsm_reinstall.sh)
There is a newer version of this script available. Current version: v1.0.6 Latest version: v3.1.16 Do you want to download v3.1.16 now? [y/n] y % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 366k 0 366k 0 0 642k 0 --:--:-- --:--:-- --:--:-- 642k
Synology_enable_M2_card v3.1.16 DS1821+ DSM 7.2.2-72802
StorageManager 1.0.0-00502
Running from: /volume1/homes/admin/Scripts/syno_enable_m2_card.sh 1) E10M20-T1 3) M2D18 5) ALL 2) M2D20 4) M2D17 6) Quit Select your M.2 Card: 1
Backed up /usr/syno/etc.defaults/adapter_cards.conf Enabled E10M20-T1 NIC for DS1821+ Enabled E10M20-T1 NVMe for DS1821+
Need to download dtc Do you want to download dtc? [y/n] y
Downloading dtc % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 146k 100 146k 0 0 624k 0 --:--:-- --:--:-- --:--:-- 626k Downloaded md5: 01381dabbe86e13a2f4a8017b5552918 Backed up /etc.defaults/model.dtb Added E10M20-T1 to model.dtb
The Synology needs to restart. Type yes to reboot now. Type anything else to quit (if you will restart it yourself).
After running syno_enable_m2_card.sh, E10M20-T1 with its storagepool came back online!
After running syno_enable_m2_card.sh, E10M20-T1 with its storagepool came back online!
After the last DSM update I discovered you can set a "pre-task" to a triggered scheduled task. This will make sure that "syno_enable_m2_card.sh --model=E10M20-T1" runs before syno_hdd_db.sh
But I'd still need to reboot after a DSM update has finished and booted up.
Need to download dtc Do you want to download dtc? [y/n]
This is strange. Syno_hdd_db should have installed dtc, and when syno_enable_m2_card updated it should have included /bin/dtc
Changed the taskscheduler to include the pre-task, thanks. Is there any way i can help you further to prevent this happening again or to others?
What is dtc? saw in your github comment this was applicable so said YES to install.
dtc (device tree compiler) is a tiny linux cli program used to decompile and compile device tree blobs, which allows adding device information without compiling a new kernel. Synology models from 2020 onwards that use a CPU that Synology hadn't used before all use a device tree blob named model.dtb. To enable E10M20-T1, M2D20, M2D18 or M2D17 on NAS models that don't already support them the script needs dtc, which is not included in DSM.
I'm trying to think how to prevent the same thing happening to other people.
Before this 7.2.2 update all was well, i did however use the hdd_db at shutdown instead of at bootup, but it should not matter i think?
After updating my DS1821+ to DSM 7.2.2-72806 the M.2 PCIe card E10M20-T1 is not found and i have "lost" my Storage Pool Ran great with DSM 7.2.1xxxx