007revad / Synology_M2_volume

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

RAID F1 personality #33

Closed avolon42x closed 1 year ago

avolon42x commented 1 year ago

Would be great to be able to create RAID F1 arrays. Personality [raidF1] seems to be already present (DS1821+ latest stable release)

Bildschirmfoto 2023-04-05 um 16 02 10
007revad commented 1 year ago

I have previously seen [raidF1] in the output form cat /proc/mdstat but I forget about it.

I think this is possible because I remember reading on the Xpenology forum about people disabling RAID F1 so they could use SHR. If they can do that I should be able to enable RAID F1. Hopefully we can have both RAID F1 and SHR.

007revad commented 1 year ago

Okay, I can easily enable RAID F1. But it seems that you can have RAID F1 or SHR, but not both.

I'm not sure what would happen to an SHR storage pool if you switched to RAID F1, or vice versa. I might have to test it.

avolon42x commented 1 year ago

That’s great! It’s expected that you cannot have both. RAIDF1 is especially for SSD arrays, albeit I don’t know if it handles different disk sizes like SHR it’s basically a raid5 for SSD reducing wearlevel for parity writes. Could you tell me how to enable them I’ll try it out

007revad commented 1 year ago

To enable RAID F1 you need to edit /etc.defaults/synoinfo.conf as follows:

  1. Comment out, delete, or change "yes" to "no", the following SHR line:

support_syno_hybrid_raid="yes"

  1. Then add this line to enable RAID F1:

supportraidgroup="yes"

avolon42x commented 1 year ago

Mhh so I tested it on a DS916+ (DSM 7.2beta) I had lying around with 3 SSDs. The F1 shows in mdstat but I cannot create a F1 array. I change the settings as you mentioned. Any other idea?

007revad commented 1 year ago

Since mdstat shows [raidF1] in the RAID Personalities, try Synology_enable_M2_volume

It lets you create the storage pool and select the RAID type in storage manager so you don't need the Synology_M2_volume script. But I don't know if works for models older than '21.