007revad / Synology_enable_M2_volume

Enable creating volumes with non-Synology M.2 drives
MIT License
501 stars 36 forks source link

Make it possible for USB-Disks #58

Closed DenisMtfl closed 1 year ago

DenisMtfl commented 1 year ago

Since DSM 7.1 there is no Port configs in synoinfo.conf for bringing the USB-Disks to a Volume. Do you have an idea to make it possible anymore?

007revad commented 1 year ago

EDIT I seem to have pasted an answer to someone else's question here!?!?

The script adds enable_m2_pool="yes" to synoninfo.conf. The script works for DSM 7.1.1 on some '20 and newer models.

You are better off updating to DSM 7.2 and using the https://github.com/007revad/Synology_HDD_db script.

If you really want to stick with DSM 7.0 you can use the https://github.com/007revad/Synology_M2_volume script.

007revad commented 1 year ago

Since DSM 7.1 there is no Port configs in synoinfo.conf for bringing the USB-Disks to a Volume. Do you have an idea to make it possible anymore?

Are you saying that DSM 7.0 let you create a volume using USB disks?

007revad commented 1 year ago

@DenisMtfl

Just because the usbportcfg key is not in synoinfo.conf by default any more does not mean you can't add it. In some cases DSM will check if the key exists in synoinfo.conf and then use a default setting if the key doesn't exist.

The synosetkeyvalue command will add the key+value if it doesn't exist, or change the value if the key does exist. Note: Using synosetkeyvalue to set a key in /etc.defaults/synoinfo.conf also sets the same key in /etc/synoinfo.conf (saves you having to edit both files by hand).

This should work:

sudo -i
synosetkeyvalue /etc.defaults/synoinfo.conf esataportcfg="0"
synosetkeyvalue /etc.defaults/synoinfo.conf internalportcfg="0xffffffffff"
synosetkeyvalue /etc.defaults/synoinfo.conf usbportcfg="0"
synosetkeyvalue /etc.defaults/synoinfo.conf maxdisks=24

I wouldn't set esataportcfg="0" if you use an eSATA HDD. Set maxdisks tothe number of internal drive bays + the number of USB ports you want to appear as internal ports.