Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost M.2 PCIe Card E10M20-T1 after update to DSM 7.2.2-72806 #377

Open
RozzNL opened this issue Oct 24, 2024 · 16 comments
Open

Lost M.2 PCIe Card E10M20-T1 after update to DSM 7.2.2-72806 #377

RozzNL opened this issue Oct 24, 2024 · 16 comments

Comments

@RozzNL
Copy link

RozzNL commented Oct 24, 2024

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

@RozzNL RozzNL changed the title Lost M2 PCIE Caard after update to DSM 7.2.2-72806 Lost M2 PCIE Card after update to DSM 7.2.2-72806 Oct 24, 2024
@RozzNL
Copy link
Author

RozzNL commented 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.

@RozzNL
Copy link
Author

RozzNL commented Oct 24, 2024

Synology_DS1821+StoragePool3

@RozzNL
Copy link
Author

RozzNL commented Oct 24, 2024

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

@RozzNL
Copy link
Author

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

@RozzNL
Copy link
Author

RozzNL commented 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

@RozzNL
Copy link
Author

RozzNL commented Oct 24, 2024

Synology_DS1821+StoragePool3-3

@RozzNL RozzNL changed the title Lost M2 PCIE Card after update to DSM 7.2.2-72806 Lost M2 PCIE Card E10M20-T1 after update to DSM 7.2.2-72806 Oct 24, 2024
@RozzNL RozzNL changed the title Lost M2 PCIE Card E10M20-T1 after update to DSM 7.2.2-72806 Lost M.2 PCIe Card E10M20-T1 after update to DSM 7.2.2-72806 Oct 24, 2024
@007revad
Copy link
Owner

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

@RozzNL
Copy link
Author

RozzNL commented 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.

@007revad
Copy link
Owner

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.

@RozzNL
Copy link
Author

RozzNL commented 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?

@barthuijgen
Copy link

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?

@RozzNL
Copy link
Author

RozzNL commented 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

@daviddesmet
Copy link

daviddesmet commented 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+

@Samt563
Copy link

Samt563 commented 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

@007revad
Copy link
Owner

007revad commented 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.

@Samt563
Copy link

Samt563 commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants