[GH-ISSUE #377] Lost M.2 PCIe Card E10M20-T1 after update to DSM 7.2.2-72806 #634

Open
opened 2026-03-11 12:46:50 +03:00 by kerem · 24 comments
Owner

Originally created by @RozzNL on GitHub (Oct 24, 2024).
Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/377

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

Originally created by @RozzNL on GitHub (Oct 24, 2024). Original GitHub issue: https://github.com/007revad/Synology_HDD_db/issues/377 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
Author
Owner

@RozzNL commented on GitHub (Oct 24, 2024):

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.

<!-- gh-comment-id:2434876851 --> @RozzNL commented on GitHub (Oct 24, 2024): 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.
Author
Owner

@RozzNL commented on GitHub (Oct 24, 2024):

Synology_DS1821+StoragePool3

<!-- gh-comment-id:2434882429 --> @RozzNL commented on GitHub (Oct 24, 2024): ![Synology_DS1821+StoragePool3](https://github.com/user-attachments/assets/9a4f1f01-2e20-4d50-93d8-acd34642e130)
Author
Owner

@RozzNL commented on GitHub (Oct 24, 2024):

Tried to use your Reinstall_DSM but can not roll-back to DSM 7.2.1xxx

<!-- gh-comment-id:2434905638 --> @RozzNL commented on GitHub (Oct 24, 2024): Tried to use your Reinstall_DSM but can not roll-back to DSM 7.2.1xxx
Author
Owner

@RozzNL commented on GitHub (Oct 24, 2024):

/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

v3.1.16 and changes.txt downloaded to: /volume1/homes/admin/Scripts

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).

<!-- gh-comment-id:2434922209 --> @RozzNL commented on GitHub (Oct 24, 2024): /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 v3.1.16 and changes.txt downloaded to: /volume1/homes/admin/Scripts ------------------------------------------------------------------------------- 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).
Author
Owner

@RozzNL commented on GitHub (Oct 24, 2024):

After running syno_enable_m2_card.sh, E10M20-T1 with its storagepool came back online!

Synology_DS1821+StoragePool3-2

Synology_DS1821+StoragePool3-1

<!-- gh-comment-id:2434959080 --> @RozzNL commented on GitHub (Oct 24, 2024): After running syno_enable_m2_card.sh, E10M20-T1 with its storagepool came back online! ![Synology_DS1821+StoragePool3-2](https://github.com/user-attachments/assets/e592665f-4fab-4880-bbc9-c45c8c85e6de) ![Synology_DS1821+StoragePool3-1](https://github.com/user-attachments/assets/65d9134d-ff58-4da7-91e1-3670d8b25e54)
Author
Owner

@RozzNL commented on GitHub (Oct 24, 2024):

Synology_DS1821+StoragePool3-3

<!-- gh-comment-id:2434961606 --> @RozzNL commented on GitHub (Oct 24, 2024): ![Synology_DS1821+StoragePool3-3](https://github.com/user-attachments/assets/554a8a75-22b4-4467-b566-d1a2e2c6784c)
Author
Owner

@007revad commented on GitHub (Oct 24, 2024):

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

image

image

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

<!-- gh-comment-id:2436048089 --> @007revad commented on GitHub (Oct 24, 2024): > 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 ![image](https://github.com/user-attachments/assets/1cbfd6b5-d88a-470b-8e4d-fd60aa6d0b29) ![image](https://github.com/user-attachments/assets/59c8c2e2-276a-4bda-bd05-fd73b8be43f0) 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
Author
Owner

@RozzNL commented on GitHub (Oct 26, 2024):

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.

<!-- gh-comment-id:2439443124 --> @RozzNL commented on GitHub (Oct 26, 2024): 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.
Author
Owner

@007revad commented on GitHub (Oct 26, 2024):

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.

<!-- gh-comment-id:2439484654 --> @007revad commented on GitHub (Oct 26, 2024): 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.
Author
Owner

@RozzNL commented on GitHub (Oct 26, 2024):

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?

<!-- gh-comment-id:2439552753 --> @RozzNL commented on GitHub (Oct 26, 2024): 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?
Author
Owner

@barthuijgen commented on GitHub (Nov 2, 2024):

My M2 storage pool also broke after 7.2.2 update. But I can't find this syno_enable_m2_card.sh script you are referring to, its not in this repository, where can I find it?

<!-- gh-comment-id:2452958285 --> @barthuijgen commented on GitHub (Nov 2, 2024): My M2 storage pool also broke after 7.2.2 update. But I can't find this `syno_enable_m2_card.sh` script you are referring to, its not in this repository, where can I find it?
Author
Owner

@RozzNL commented on GitHub (Nov 2, 2024):

My M2 storage pool also broke after 7.2.2 update. But I can't find this syno_enable_m2_card.sh script you are referring to, its not in this repository, where can I find it?

https://github.com/007revad/Synology_enable_M2_card

<!-- gh-comment-id:2452991384 --> @RozzNL commented on GitHub (Nov 2, 2024): > My M2 storage pool also broke after 7.2.2 update. But I can't find this `syno_enable_m2_card.sh` script you are referring to, its not in this repository, where can I find it? https://github.com/007revad/Synology_enable_M2_card
Author
Owner

@daviddesmet commented on GitHub (Nov 5, 2024):

You just saved my day!
I recently updated to 7.2.2 and faced the same issue; I created a new task that runs the syno_enable_m2_card.sh script and updated the syno_hdd_db.sh to run that previous task before. Did a reboot and my storage pool is back!

In my specific case it is the E10M20-T1 in a RS822+

<!-- gh-comment-id:2458228903 --> @daviddesmet commented on GitHub (Nov 5, 2024): You just saved my day! I recently updated to 7.2.2 and faced the same issue; I created a new task that runs the `syno_enable_m2_card.sh` script and updated the `syno_hdd_db.sh` to run that previous task before. Did a reboot and my storage pool is back! In my specific case it is the E10M20-T1 in a RS822+
Author
Owner

@Samt563 commented on GitHub (Nov 28, 2024):

Hello and thanks for the script its been awesome so far, unfortunately the update to 7.2.2 broke my m.2 storage pool too, after a manual task scheduler run (with the latest Script release [v3.5.104]) and the corresponding restart it came back online and everything seems normal.

BUT Synology drive lost its settings, does anybody have some hints/advice on how to proceed? a have a Backup from 28.11.24 04:28 but with the old Synology Drive Server App (3.5.0-26085).

In my specific case it is the DS 920+ 4x HDDs and 2x M.2 SSDs

<!-- gh-comment-id:2505664236 --> @Samt563 commented on GitHub (Nov 28, 2024): Hello and thanks for the script its been awesome so far, unfortunately the update to 7.2.2 broke my m.2 storage pool too, after a manual task scheduler run (with the latest Script release [v3.5.104]) and the corresponding restart it came back online and everything seems normal. BUT Synology drive lost its settings, does anybody have some hints/advice on how to proceed? a have a Backup from 28.11.24 04:28 but with the old Synology Drive Server App (3.5.0-26085). In my specific case it is the DS 920+ 4x HDDs and 2x M.2 SSDs
Author
Owner

@007revad commented on GitHub (Dec 1, 2024):

After DSM update the M.2 storage pool won't be available until after:

  1. The script has been run (scheduled to run at boot is best).
  2. The NAS has been rebooted.

For the Synology apps that use DSM's pgsql database this can be a problem because DSM will create a new pgsql database on volume1.

Did you previously move @database to the volume2?

Which volume does the following command return:

readlink /var/services/pgsql

You could try restoring Synology Drive from your backup.

If that doesn't work we can:

  1. Uninstall Synology Drive.
  2. Edit 2 files to let you manually install Synology Drive 3.5.0-26085 (I'd need to explain how).
  3. Restore Synology Drive from your backup.
  4. Check it's working.
  5. Then update to the latest Synology Drive.
<!-- gh-comment-id:2509642311 --> @007revad commented on GitHub (Dec 1, 2024): After DSM update the M.2 storage pool won't be available until after: 1. The script has been run (scheduled to run at boot is best). 2. The NAS has been rebooted. For the Synology apps that use DSM's pgsql database this can be a problem because DSM will create a new pgsql database on volume1. Did you previously move `@database` to the volume2? Which volume does the following command return: ``` readlink /var/services/pgsql ``` You could try restoring Synology Drive from your backup. If that doesn't work we can: 1. Uninstall Synology Drive. 2. Edit 2 files to let you manually install Synology Drive 3.5.0-26085 (I'd need to explain how). 3. Restore Synology Drive from your backup. 4. Check it's working. 5. Then update to the latest Synology Drive.
Author
Owner

@Samt563 commented on GitHub (Dec 7, 2024):

Hello, first of all thank you very much for your help.

That's what i did:

  1. It is and was set to run at boot and it ran according to the logs
  2. After the update to DSM 7.2.2 and after a manual run and reboot the volume came back online
  3. I opened the synology admin console and every setting was gone (Database on Volume 1 was in use)
  4. After a restore from Backup everything was working

I did move the Database a long time ago

the command returns:
/volume1/@database/pgsql

Thanks again for your work and have a nice day! I hope this helps someone else too.

<!-- gh-comment-id:2525095963 --> @Samt563 commented on GitHub (Dec 7, 2024): Hello, first of all thank you very much for your help. That's what i did: 1. It is and was set to run at boot and it ran according to the logs 2. After the update to DSM 7.2.2 and after a manual run and reboot the volume came back online 3. I opened the synology admin console and every setting was gone (Database on Volume 1 was in use) 4. After a restore from Backup everything was working I did move the Database a long time ago the command returns: /volume1/@database/pgsql Thanks again for your work and have a nice day! I hope this helps someone else too.
Author
Owner

@pergolafabio commented on GitHub (Feb 20, 2025):

i'm also running 7.2.1 , is it better to wait before installing 7.2.2 ? are you going to change the script?
i have all my apps running/installed on this volume, do i risk to loose everything?

<!-- gh-comment-id:2672239092 --> @pergolafabio commented on GitHub (Feb 20, 2025): i'm also running 7.2.1 , is it better to wait before installing 7.2.2 ? are you going to change the script? i have all my apps running/installed on this volume, do i risk to loose everything?
Author
Owner

@007revad commented on GitHub (Feb 20, 2025):

DSM 7.2.2 is not a problem. Just make sure the pgsql is on the HDDs' volume before doing the DSM update. readlink /var/services/pgsql

<!-- gh-comment-id:2672450356 --> @007revad commented on GitHub (Feb 20, 2025): DSM 7.2.2 is not a problem. Just make sure the pgsql is on the HDDs' volume before doing the DSM update. `readlink /var/services/pgsql`
Author
Owner

@pergolafabio commented on GitHub (Feb 20, 2025):

Sorry, what is pgsql? Is that a synopackage? Postgress SQL?

<!-- gh-comment-id:2672462365 --> @pergolafabio commented on GitHub (Feb 20, 2025): Sorry, what is pgsql? Is that a synopackage? Postgress SQL?
Author
Owner

@007revad commented on GitHub (Feb 20, 2025):

It's the Postgress SQL database where many Synology packages save their data. If you haven't moved @database, or deleted volume 1, the database will be located in /volume1/@database.

The following are some of the Synology packages that use Synology PostgreSQL

Audio Station
Download Station
Note Station
Synology Application Service
Synology Calendar
Synology Chat
Synology Contacts
Synology Drive Server
Synology MailPlus
Synology Media Server
Synology Photos
Video Station

<!-- gh-comment-id:2672482001 --> @007revad commented on GitHub (Feb 20, 2025): It's the Postgress SQL database where many Synology packages save their data. If you haven't moved `@database`, or deleted volume 1, the database will be located in `/volume1/@database`. The following are some of the Synology packages that use Synology PostgreSQL Audio Station Download Station Note Station Synology Application Service Synology Calendar Synology Chat Synology Contacts Synology Drive Server Synology MailPlus Synology Media Server Synology Photos Video Station
Author
Owner

@pergolafabio commented on GitHub (Feb 20, 2025):

Ah, it's by default volume1 ,? cause my nvme disk is volume2 anyway

<!-- gh-comment-id:2672486521 --> @pergolafabio commented on GitHub (Feb 20, 2025): Ah, it's by default volume1 ,? cause my nvme disk is volume2 anyway
Author
Owner

@007revad commented on GitHub (Feb 20, 2025):

Ah, it's by default volume1 ,?

Correct.

<!-- gh-comment-id:2672493884 --> @007revad commented on GitHub (Feb 20, 2025): > Ah, it's by default volume1 ,? Correct.
Author
Owner

@pergolafabio commented on GitHub (Feb 20, 2025):

But this issue is specific for the E10 ?

I have an Samsung nvme, I don't need that pre-task?
I only need to check the postgre SQL, update DSM , rerun script and good to go?

Never did an DSM update yet, since I bought the 423+

<!-- gh-comment-id:2672498541 --> @pergolafabio commented on GitHub (Feb 20, 2025): But this issue is specific for the E10 ? I have an Samsung nvme, I don't need that pre-task? I only need to check the postgre SQL, update DSM , rerun script and good to go? Never did an DSM update yet, since I bought the 423+
Author
Owner

@007revad commented on GitHub (Feb 20, 2025):

The issues discussed in this thread relate only to when the NAs has a NVMe volume setup in a E10M20-T1, M2D20 or M2D18.

If you have not moved the @database folder to the NVMe volume via SSH commands or with the https://github.com/007revad/Synology_app_mover script then you only need to:

  1. Update DSM.
  2. Run syno_hdd_db.sh
  3. Reboot if needed.
<!-- gh-comment-id:2672626136 --> @007revad commented on GitHub (Feb 20, 2025): The issues discussed in this thread relate only to when the NAs has a NVMe volume setup in a E10M20-T1, M2D20 or M2D18. If you have **not** moved the `@database` folder to the NVMe volume via SSH commands or with the https://github.com/007revad/Synology_app_mover script then you only need to: 1. Update DSM. 2. Run syno_hdd_db.sh 3. Reboot if needed.
Sign in to join this conversation.
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_HDD_db#634
No description provided.