Veljko Radan

Language: SvenskaEN

← All articles

Field notes: ReFS: 4 KB or 64 KB clusters

Backup jobs failing now and then, in several places at once. The fault was a decision made when the volume was formatted.

Veljko Radan · · 3 min read

The backup jobs were failing. Not all of them, not every night, but often enough to form a pattern: green one night, failed the next, green again. Those are the hardest failures, because every single run looks like bad luck.

The symptom

Recurring failures in backup jobs writing to local repositories formatted with ReFS. The errors came and went, moved between jobs, and a retry often succeeded. It is exactly the kind of failure that sends you hunting through job settings, network and storage – one job at a time.

The easy assumption

When a failure is irregular, it is tempting to look for something else that is irregular: load, a network glitch, two jobs colliding. Reasonable suspicions – but they rarely lead anywhere when the same failure shows up in several places at once. Then the question becomes: what do all those places have in common?

How I isolated it

I stopped looking at individual runs and looked at what was constant: how the repositories were built. One setting is decided once, when the volume is formatted, and never seen again – the cluster size.

The volumes had been formatted with 4 KB clusters. Veeam recommends 64 KB for ReFS volumes used as backup repositories. With small clusters there is far more metadata to keep track of when the backup software uses ReFS block cloning to save space, and that is a known source of performance and stability problems.

On Windows, the cluster size shows with:

fsutil fsinfo refsinfo E: – the line Bytes Per Cluster should read 65536.

# Example: what a volume formatted with the wrong cluster size looks like
PS> fsutil fsinfo refsinfo E:
REFS Volume Serial Number :       0x<…>
REFS Version   :                  3.x
…
Bytes Per Sector  :               512
Bytes Per Cluster :               4096
                                  ← should be 65536
The same data with 4 KB and 64 KB clusters 4 KB clusters64 KB clusters=16 clusters to keep track of1 cluster to keep track of
The same 64 KB of data: sixteen clusters at 4 KB, one at 64 KB. Every cluster is metadata that block cloning has to keep track of.

The root cause

The wrong cluster size from day one. Nothing in the backup jobs was misconfigured – the ground they stood on was.

The fix

Cluster size can't be changed afterwards. The only cure is to reformat, which means everything on the volume has to be moved first. I mapped which volumes were affected at every site and planned the reformatting as a piece of work in its own right:

  • Move what isn't backup data but lives on the same volume: the catalogue, the instant-recovery cache and the configuration backup.
  • Reformat with 64 KB clusters.
  • Point the jobs back and let them build new chains.
  • Verify – not just that the jobs turned green, but that they stayed green.

The lesson

A failure that comes and goes in several places at once is rarely bad luck. Look for what is constant – often a decision made once, long before anyone started troubleshooting. And put the cluster-size check into the checklist for new repositories, so the same fault isn't built in again.