Last active
May 8, 2025 08:15
-
-
Save samgooi4189/93ef3db5cd6f4883ccc04e38fd2c8e58 to your computer and use it in GitHub Desktop.
Reset Synology drive with critical status
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Synology flag one of the drive to be critical | |
After running extended SMART test, all is good and no bad sector. | |
So you would like to reset the status and add back the disk. | |
** Find out your drive model and serial number | |
1. Storage Manager → HDD/SSD → Select critical disk → Deactivate Drive | |
2. unlplug your drive from Synology | |
3. Control Panel -> Terminal & SNMP -> Enable SSH service | |
4. Login to your synology IP with ssh | |
5. remove any records that uses that serial number (eg my serial number starts with 214AK) | |
``` | |
sudo sqlite3 /var/run/disk_latency_tmp.db | |
SELECT * FROM latency WHERE serial LIKE '214AK%'; | |
DELETE FROM latency WHERE serial LIKE '214AK%'; | |
sudo sqlite3 /var/log/synolog/.SYNODISKDB | |
SELECT * FROM logs WHERE serial LIKE '214AK%'; | |
DELETE FROM logs WHERE serial LIKE '214AK%'; | |
sudo sqlite3 /var/log/synolog/.SYNODISKHEALTHDB | |
SELECT * FROM disk_error WHERE serial LIKE '214AK%'; | |
DELETE FROM disk_error WHERE serial LIKE '214AK%'; | |
SELECT * FROM prediction WHERE serial LIKE '214AK%'; | |
sudo sqlite3 /var/log/synolog/.SYNODISKTESTDB | |
SELECT * FROM logs WHERE serial LIKE '214AK%'; | |
DELETE FROM logs WHERE serial LIKE '214AK%'; | |
sudo sqlite3 /var/log/disk-latency/.SYNODISKLATENCYDB | |
SELECT * FROM latency WHERE serial LIKE '214AK%'; | |
DELETE FROM latency WHERE serial LIKE '214AK%'; | |
``` | |
6. sudo vim /var/lib/drive/disk_overview.xml -> remove the record that contains your drive serial number | |
7. reboot Synology | |
8. Select the Storage Pool the disk was previously part of | |
9. Repair → Select disk | |
10. Wait for the RAID to be rebuilt | |
reference: | |
https://www.synoforum.com/threads/reset-drive-critical-state.8787/ | |
https://community.synology.com/enu/forum/1/post/151784 | |
https://www.synoforum.com/threads/storage-manager-rejects-new-healthy-disks-as-critical-because-of-reset-commands.8153/ | |
https://www.reddit.com/r/Xpenology/comments/17m53fq/reset_drive_state_critical/ | |
https://xpenology.com/forum/topic/65154-drive-warning/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment