Australian cloud for business software — built and run in Sydney since 2002

NetLeverage
NetLeverage

Synology SSD cache crashed, degraded or missing: what happens to the volume and the right order of repair

Technical article
Troubleshooting

About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.

Storage Manager on a Synology NAS can report the SSD cache as crashed, degraded or missing. The three words describe different situations, and what happens to the volume's data depends on a fourth fact: whether the cache is read-only or read-write. A crashed read-only cache loses no data, because the SSDs hold only copies; for a crashed read-write cache, what happens depends on the volume's status. The order of repair matters because Synology's steps differ with the cache mode and the volume's status.

What follows sets out what Synology's pages say for each case, how to prove which case you have using read-only checks, and the steps in the order Synology gives. Nothing before the Fix section changes anything.

What the error means

Synology's page "What can I do if my SSD cache crashed?" defines the fault: "An SSD cache crash occurs when the number of SSD failures exceeds the tolerable limit." The tolerable limit "may vary depending on the RAID type chosen when creating the SSD cache."

The cache mode decides the consequence. Synology's page describes two modes.

A read-only cache keeps data that are read again and again on the SSDs to speed up random reads. Synology says: "Data stored in the SSDs are copies of data from the volume, so there will be no data loss in the event of SSD failure."

A read-write cache writes data to the SSDs first to speed up access and random read/write performance. Synology's page for creating a cache says a read-write cache "requires at least two SSDs for fault tolerance", and that a read-write cache "contains new data that have not been synced to the volume" under normal circumstances. Our own reading: that is why a crashed read-write cache can affect the volume while a crashed read-only cache cannot.

A third state is a missing cache: "If the system indicates that the SSD cache is missing", the SSDs are not being detected. Synology's page for creating a cache adds the consequence: "If an existing read-write cache is not detected on startup, the system will not mount the volume associated with it."

A degraded read-write cache is the fourth case. For it DSM runs what Synology calls the Automatic protection mechanism.

Likely causes

State shown What Synology says it is What it means for the volume
Crashed, read-only cache SSD failures exceeded the tolerable limit No data loss: the SSD data are copies
Crashed, read-write cache SSD failures exceeded the tolerable limit Depends on the volume status: Healthy, Read-only or Crashed
Missing The system indicates the cache is missing; the SSDs are not detected A read-write cache that is not detected leaves its volume unmounted
Degraded, read-write cache on RAID 1, 5, 6 or 10 The cache is degraded and Automatic protection is activated Services continue while Automatic protection runs

For a degraded cache, Synology says: "When a read-write cache under RAID 1, RAID 5, RAID 6, or RAID 10 (only applicable to DSM 7.0) degrades, the Automatic protection mechanism will be activated." It "will stop caching new I/Os and start writing (i.e., synchronizing) existing data from the SSD cache to HDDs", and "all services on the volume will continue normally". New data go straight to the HDDs. When the synchronisation completes, services function "without data loss, even upon the next SSD crash."

An SSD can fail, or its slot can; the two look alike. Synology's drive-error page lists the signs: drive status showing "Drive slot disabled" or "Cannot be detected by controller", and logs with frequent I/O errors, drive plugged in or plugged out entries "occurring without manual intervention".

Prove the cause before changing anything

Everything in this section reads only.

  1. Write down what Storage Manager shows: the cache's status word (crashed, degraded or missing), the status of the volume it serves (Healthy, Read-only or Crashed), the storage pool, and the time.

  2. In Storage Manager, go to Storage and find the SSD cache. Write down its mode, read-only or read-write. Synology's fix differs by mode, so this is the deciding fact.

  3. Write down the volume status. For a crashed read-write cache Synology gives three different procedures, one each for Healthy, Read-only and Crashed.

  4. Go to HDD/SSD and write down the status of each cache SSD. Look for "Drive slot disabled" or "Cannot be detected by controller".

  5. Read the drive logs. On DSM 7.2 or above, Synology says to go to Log Center, then Logs, and select Drives as the log type. On DSM 7.1 or below, go to Storage Manager, then HDD/SSD, then Logs. Repeated I/O errors or plugged in and plugged out entries point to an unstable connection, which can come from the SSD or from its slot.

  6. Check whether the SSDs are on Synology's compatibility list. Synology's pages warn that using SSDs not on the Synology Products Compatibility List "may affect system stability and result in data loss."

  7. If any cache SSD sits in an expansion unit, check the unit's cable. Synology warns that if a cache group uses SSDs from an expansion unit, disconnecting the unit "may cause the cache group and corresponding volumes to crash and result in data loss."

Fix

Do these in the order below. Use only the case that matches the proof.

Crashed read-only cache, or crashed read-write cache with a Healthy volume

Synology gives the same two steps for both: remove the SSD cache, then create a new one with healthy SSDs.

Write down the cache mode, the volume it is mounted on, its RAID type, the SSDs in its cache group, the capacity allocated to it, the volume status and the time.

Disruptive step: the next change removes the SSD cache from the volume. Synology's page says that "a read-write cache contains new data that have not been synced to the volume" under normal circumstances, so removing a cache that still holds unsynced data is a risk to that data. A removed cache is not restored, and its old contents do not come back; a new cache is created in the next step.

In Storage Manager, go to Storage and locate the SSD cache. Click its ellipsis icon and select Remove.

Synology adds that to remove a whole cache group, or any of its SSDs, you first remove all the SSD caches that allocate capacity from it, and that once they are all removed the cache group no longer appears on the Storage page.

To undo it: a removal cannot be undone. Create an SSD cache again with the cache mode, RAID type, SSDs and allocated capacity you wrote down; the cache you removed is not restored, and what it held is not brought back. Creating a cache is the next step, with its own warning.

Next, create the new cache. Before you start, check Synology's requirements, which are read-only checks: the volume must be Healthy and not running other tasks; use SSDs in Healthy status, no more than six per cache group and all of the same drive type; a read-only cache needs at least one SSD and a read-write cache at least two. Every 1 GB of SSD cache needs approximately 400 KB of system memory, and the system uses only up to 25% of the pre-installed memory for cache creation, so a larger cache can need more memory in the NAS.

Write down the model and slot of each SSD you will use, and what each held.

Risk: the next change erases all data on the SSDs you select for the cache, and erased data cannot be recovered. Use only SSDs that show Healthy and hold nothing you need.

In Storage Manager, go to Storage and click Create, then Create SSD Cache. Select the volume to mount the cache on. Select the cache mode and click Next. Select a RAID type and click Next. Select the SSDs for the cache group and click Next. Allocate the capacity with Max or by entering a number in Modify allocated capacity, click Next, check the settings and click Apply.

Risk: removing the new cache cannot be undone, and the erased SSDs do not get their old data back.

To undo it: remove the new SSD cache with the same Remove route used above, taking the removal warning above into account. The data erased from the SSDs is not restored.

Crashed read-write cache with a Read-only or Crashed volume

Synology's procedure for a Read-only volume is to back up the volume, remove it, create a new volume, copy the backup data to the new volume and then create a new SSD cache. For a Crashed volume Synology says to follow its volume-crash steps instead. These involve removing and re-creating a volume, so they are described here and not given as steps. The live article covers volume faults: Synology volume crashed or read-only.

Missing cache

Synology gives three actions: go to Storage Manager, then Storage, and identify the missing SSDs; insert the required SSDs back into the NAS; restart the NAS. Identifying them is the read-only check above. Have the hardware administrator match the SSDs to their original slots. Synology requires the system to be powered off before fitting or removing M.2 SSDs.

Risk: moving or fitting an SSD changes the hardware. Synology says that removing any SSD of a read-write cache, even while powered off, "may cause a volume crash".

Write down the status of the cache and the volume, which SSDs were missing, and the time.

Disruptive step: the next change restarts the NAS. Every service stops until it is back, and a restart cannot be undone.

Restart the Synology NAS once the SSDs are back in place.

To undo it: a restart cannot be reversed. Compare the cache and volume status afterwards with the values you wrote down.

Degraded read-write cache

Synology says: "DSM provides an automatic protection mechanism for degraded SSD cache to save users from the hassle of performing additional operations." To bring the cache group back to full protection Synology's repair page says to replace the defective SSD with a healthy one at least as large as the smallest SSD in the group, then repair the group.

Write down the status, model and slot of each SSD in the cache group, which SSD is defective, which SSD you will fit, and the time.

Risk: replacing the SSD is a hardware change; for an M.2 SSD Synology says to do it "when the system is completely powered off." The repair that follows adds the replacement SSD to the group and cannot be reversed from the steps on Synology's pages; the way out is to remove the cache in Storage Manager, which has the warnings above.

In Storage Manager, go to Storage and follow the Suggestion shown under the storage pool. When prompted to repair the cache group, click the pool's ellipsis icon, select Manage SSD Cache Group, then Repair, and follow the wizard.

To undo it: the repair cannot be reversed from the page's steps. Compare the SSD statuses afterwards with the ones you wrote down; the replacement SSD stays in the group unless you remove the cache.

Confirm the fix

  • Storage Manager shows the SSD cache with a healthy status and the volume Healthy.
  • The services that use the volume respond as they did before the fault.
  • Every cache SSD shows Healthy under HDD/SSD, with no new I/O error entries in the drive log.
  • For a degraded cache, the cache group's status returns to healthy once repaired.

What to watch afterwards

  • A cache that degrades again, which means another SSD or slot is failing. The live article on NVMe SMART warnings covers reading SSD health.
  • The setting "Write data back to the corresponding volumes only when the SSD cache group is not protected by redundancy". Synology says it prevents Automatic protection when the cache group is degraded but still redundant, and that it gives a lower level of protection for data.
  • Expansion units that carry cache SSDs, and their cables.
  • Any removal of read-write cache SSDs. Synology says that removing any of its SSDs, even while powered off, "may cause a volume crash", so remove the cache in Storage Manager first.
  • The wider pool state: Synology storage pool degraded.

Risks and limits

These steps have not been run or lab-tested.

The menu paths are those of DSM 7. Synology's cache pages give separate links for DSM 6.2. The tolerable number of SSD failures depends on the RAID type chosen when the cache was created, Our own reading: the same SSD fault can crash one cache and only degrade another.

Removing a cache, creating one and repairing a group all change the storage layout. Check Synology's current page for your DSM version before acting. Our own advice: back up the volume before any of these steps if it holds anything not already backed up elsewhere.

Sources