Browse Source

Merge pull request #51 from 007revad/develop

Develop
pull/91/head
007revad 3 years ago
committed by GitHub
parent
commit
7b3e67f191
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      CHANGES.txt
  2. 8
      README.md
  3. 10
      syno_hdd_db.sh

3
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 if db file was edited during that run.
- Changed to show usage if invalid long option used instead of continuing.

8
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 <a href=images/ram_wanring.png/>non-Synology memory notifications</a>.
* 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.
@ -58,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.
@ -68,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.
@ -81,3 +82,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.

10
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
;;

Loading…
Cancel
Save