From 64b19a910ff7b8ad0799c877ae95a7a5c47bd1ec Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Thu, 6 Apr 2023 20:38:10 +1000 Subject: [PATCH 1/7] Update CHANGES.txt --- CHANGES.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES.txt b/CHANGES.txt index cd06f9e..4822502 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,4 @@ + v1.3.34 - Now always shows your drive entries in the host db file if -s or --showedits used instead of only db file was edited during that run. - Changed to show usage if invalid long option used instead of continuing. From 7ee154e858d9afc4cd12bc6c8f97db4bb5f486b0 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Thu, 6 Apr 2023 20:40:03 +1000 Subject: [PATCH 2/7] Update CHANGES.txt --- CHANGES.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGES.txt b/CHANGES.txt index 4822502..cd06f9e 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,3 @@ - v1.3.34 - Now always shows your drive entries in the host db file if -s or --showedits used instead of only db file was edited during that run. - Changed to show usage if invalid long option used instead of continuing. From 362cdcd53405d9df6e32fbea07b38cfcf5ddaf97 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sat, 8 Apr 2023 17:26:03 +1000 Subject: [PATCH 3/7] Update syno_hdd_db.sh - Now allows creating M.2 storage pool and volume all from Storage Manager --- syno_hdd_db.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/syno_hdd_db.sh b/syno_hdd_db.sh index 091cdce..69f1ac5 100644 --- a/syno_hdd_db.sh +++ b/syno_hdd_db.sh @@ -30,6 +30,8 @@ # It's also parsed and checked and probably in some cases it could be more critical to patch that one instead. # DONE +# Now allows creating M.2 storage pool and volume all from Storage Manager +# # Now always shows your drive entries in the host db file if -s or --showedits used, # instead of only db file was edited during that run. # @@ -111,7 +113,7 @@ # Optionally disable "support_disk_compatibility". -scriptver="v1.3.34" +scriptver="v2.0.35" script=Synology_HDD_db repo="007revad/Synology_HDD_db" @@ -486,6 +488,9 @@ for d in /sys/block/*; do getm2info "$d" "nvme" # Get M.2 card model if in M.2 card getcardmodel "/dev/$(basename -- "${d}")" + + # Enable creating M.2 storage pool and volume in Storage Manager + echo 1 > /run/synostorage/disks/$(basename -- "$d")/m2_pool_support fi fi ;; @@ -496,6 +501,9 @@ for d in /sys/block/*; do getm2info "$d" "nvc" # Get M.2 card model if in M.2 card getcardmodel "/dev/$(basename -- "${d}")" + + # Enable creating M.2 storage pool and volume in Storage Manager + echo 1 > /run/synostorage/disks/$(basename -- "$d")/m2_pool_support fi fi ;; From aa944b7a659a0013bcac24e91f781e8023e8f041 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sat, 8 Apr 2023 17:28:07 +1000 Subject: [PATCH 4/7] Update CHANGES.txt - Now allows creating M.2 storage pool and volume all from Storage Manager --- CHANGES.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CHANGES.txt b/CHANGES.txt index cd06f9e..cc2ef45 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,6 @@ +v2.0.35 +- Now allows creating M.2 storage pool and volume all from Storage Manager + v1.3.34 - Now always shows your drive entries in the host db file if -s or --showedits used instead of only db file was edited during that run. - Changed to show usage if invalid long option used instead of continuing. From f5062ea9da0c840266f8ee30f9e4d399197f6550 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sat, 8 Apr 2023 17:48:30 +1000 Subject: [PATCH 5/7] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0f080d4..6d5af1d 100644 --- a/README.md +++ b/README.md @@ -81,3 +81,4 @@ ### Running the script via SSH - Thanks for the assistance from Alex_of_Chaos on the Synology subreddit. - Thanks to dwabraxus and aferende for help detecting connected expansion units. - Thanks to bartoque on the Synology subreddit for the tip on making the script download the latest release from github. +- Thanks to nicolerenee for pointing out the easiest way to enable creating M.2 storage pools and volumes in Storage Manager. From e3dc26b2dce9570ca213e525b4b897263e4464da Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sat, 8 Apr 2023 17:51:15 +1000 Subject: [PATCH 6/7] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6d5af1d..491ad33 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,8 @@ #### What the script does: * Prevents DSM auto updating the drive database. * Optionally disable DSM's "support_disk_compatibility". * Optionally disable DSM's "support_memory_compatibility" to prevent non-Synology memory notifications. -* Checks that M.2 volume support is enabled (on supported models). +* Checks that M.2 volume support is enabled (on models that have M.2 slots or PCIe slots). +* Enables creating M.2 storage pools and volumes from within Storage Manager. * Makes DSM recheck disk compatibility so rebooting is not needed (DSM 7 only). * Reminds you that you may need to reboot the Synology after running the script (DSM 6 only). * Checks if there is a newer version of this script and offers to download it for you. From 4606b88e9373ef2d831175a7eb154e4906c22fe4 Mon Sep 17 00:00:00 2001 From: 007revad <39733752+007revad@users.noreply.github.com> Date: Sat, 8 Apr 2023 17:53:21 +1000 Subject: [PATCH 7/7] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 491ad33..e496eec 100644 --- a/README.md +++ b/README.md @@ -59,7 +59,7 @@ ### Running the script via SSH You run the script in a shell with sudo -i or as root. ```YAML -sudo -i /path-to-script/syno_hdd_db.sh +sudo -i /path-to-script/syno_hdd_db.sh -nr ``` **Note:** Replace /path-to-script/ with the actual path to the script on your Synology. @@ -69,7 +69,7 @@ ### Running the script via SSH If you run the script with the -showedits flag it will show you the changes it made to the Synology's compatible-drive database. Obviously this is only useful if you run the script in a shell. ```YAML -sudo -i /path-to-script/syno_hdd_db.sh -showedits +sudo -i /path-to-script/syno_hdd_db.sh -nr -showedits ``` **Note:** Replace /path-to-script/ with the actual path to the script on your Synology.