Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reboot not necessary on db change #5

Closed
mh-muc opened this issue Mar 7, 2023 · 4 comments
Closed

Reboot not necessary on db change #5

mh-muc opened this issue Mar 7, 2023 · 4 comments
Labels
suggestion Improvements or additions to script

Comments

@mh-muc
Copy link

mh-muc commented Mar 7, 2023

The reboot on changing the drive db is not necessary, just execute this and the drive db will be reloaded:

/usr/syno/sbin/synostgdisk --check-all-disks-compatibility

@007revad
Copy link
Owner

007revad commented Mar 8, 2023

Very nice. Thank you.

@007revad 007revad closed this as completed Mar 8, 2023
@007revad
Copy link
Owner

007revad commented Mar 8, 2023

I notice that that would work in DSM 6 but I'm not sure about DSM 7

In DSM 6 "synostgdisk --help" returns:
--check-all-disks-compatibility check all disk compatibility info.

In DSM 7 "synostgdisk --help" returns:

--get-dump      get the disk dump info.
--disk-activate <DISK_PATH>     activate a deactivated disk, only for debug.
--disk-deactivate <DISK_PATH>   deactivate the disk.
  • In DSM 7 synostgdisk always returns 0 as the exit code so I assume --check-all-disks-compatibility is working in DSM 7.
  • In DSM 6 synostgdisk --help returns 0 as the exit code.
  • In DSM 6 synostgdisk --check-all-disks-compatibility returns 255 as the exit code.

@mh-muc
Copy link
Author

mh-muc commented Mar 8, 2023

For me ist is working well with DSM 7.1.1-42962 Update 4 on RS2421+

@007revad
Copy link
Owner

007revad commented Mar 8, 2023

Thank you for confirming that.

I'll use /usr/syno/sbin/synostgdisk --check-all-disks-compatibility for both DSM 7 and DSM 6 but leave the "You may need to reboot..." message for DSM 6.

@007revad 007revad added the suggestion Improvements or additions to script label Mar 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Improvements or additions to script
Projects
None yet
Development

No branches or pull requests

2 participants