brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

Tip: Unraid clears a new array disk by itself, and Preclear is the slow extra test

Unraid
~/tips/tip-unraid-clear-vs-preclear

Start the array → clear runs in the background

Know when Unraid zeros a disk itself and what Preclear adds.

New disk in the box, and the forums tell you to preclear it first. You don’t have to. Unraid clears a new data disk on its own, and the Preclear plugin is a separate, slower health test.

The docs explain why clearing exists at all: a data disk added to a parity-protected array has to be completely filled with zeros and marked with a signature, so the existing parity stays correct. Adding a parity disk, or adding to an array without parity, skips this.

The built-in clear happens when you assign the disk to a free data slot under Main → Array Devices and start the array:

Start the array → clear runs in the background
Clear done → disk shows as unmountable
Tick the box → Format

Your array stays usable while it zeros the disk, so my Jellyfin keeps streaming. The disk itself isn’t usable until the clear and the format are done, and if you add several disks at once, none of them is usable until all are cleared and formatted.

Pre-clear, through the Unassigned Devices Preclear plugin, does a pre-read to look for bad sectors, zeros the disk, then verifies with a post-read. The docs describe it as significantly slower and the disk is offline during it. The upside is that it catches an early drive failure before the drive holds anything. When Unraid sees a pre-cleared disk, it skips its own clear step. With a brand new drive I’d rather lose a few days to Preclear than find out about a dud during a rebuild.

The caveat from the docs: don’t format a pre-cleared disk before you add it to the array. Formatting removes the clearance signature, and Unraid would then have to clear it again. And when the Format button does show up, check the serial number twice, because that format can’t be undone.

Further reading: Unraid docs: Adding disks to array

Going deeper: Get the most out of Unraid: the settings worth changing, from shares to backups

More Unraid tips Change the RAID profile of a Unraid BTRFS pool with Balance Replace a disk in a redundant Unraid pool from the Main tab Test every Unraid drive with the DiskSpeed container See the XML behind a VM with the inline XML view in Unraid 7 Choose where a new VM's disk image is created with Unraid's storage override All Unraid tips (77) All topics

Link