007revad / Synology_M2_volume

Easily create an M.2 volume on Synology NAS
MIT License
863 stars 59 forks source link

ERROR CREATING STORAGE POOL (synostgpool failed to create storage pool!) #163

Open NoFrills88 opened 3 months ago

NoFrills88 commented 3 months ago

I see other people had this problem but unfortunately, the latest version of the script (2.0.27) still yields the same error. Please assist when you get time. TIA

Capture

NoFrills88 commented 3 months ago

UPDATE: I deleted the m.2 volume in storage manager and created it again using storage manager. It now works. I will post if the issue resurfaces.

007revad commented 3 months ago

In storage manager are you seeing "Unknown" instead of Patriot and "Unknown firmware version"?

What does the following command return for the vendor id:

nvme id-ctrl /dev/nvme0n1 | grep -E ^vid | awk '{print $NF}'
NoFrills88 commented 3 months ago

I will try the command (not so familiar with ssh lol). However, the good thing is that after deleting and manually creating the volume on dsm interface it just worked😆. Perhaps, dsm corrected the part/step that failed on the script?

007revad commented 3 months ago

That error looks like a false error because the exit code was 0. If it was a real error it would have been a number greater than 0.

I have seen some changes take up to 20 minutes to appear in storage manager. DSM seems to check the drives every 20 minutes, or when some action is taken. You deleting the volume in storage manager would have triggered the check.

You can run the command in task scheduler.

  1. Go to Control Panel > Task Scheduler > click Create > and select Scheduled Task.
  2. Select User-defined script.
  3. Enter any task name.
  4. Select root as the user (The command needs to run as root).
  5. Untick Enable so it does not run on a schedule.
  6. Click Task Settings.
  7. In the box under User-defined script type nvme id-ctrl /dev/nvme0n1 | grep -E ^vid | awk '{print $NF}'
  8. Click OK to save the settings.
  9. Click on the task - but don't enable it - then click Run.
  10. Then click on Action > View Result.
  11. Once the script has run you can delete the scheduled task.