Pools, RAID and drives
Drives, RAID groups and pools: how to test them, read their faults and what to do when a pool stops.
Guides
- QNAP storage pool or volume not active: what to check first
QNAP storage pool or volume not active? Check the disks, RAID, LVM, thin pool metadata and filesystem in order, with read-only commands over SSH.
- Troubleshooting NAS performance: slow reads and writes, step by step
Find the cause of slow QNAP NAS reads and writes: RAM, SMART, SATA links, drives, SMB, iSCSI and networking. A step-by-step StorageDiag guide.
- DriveTime: a surface test that tells a failing disk from its slot
DriveTime tests a QNAP NAS disk over SSH: a surface read, its SMART counters and a SMART self-test. It tells a failing disk from a bad slot or cable.
Parts of other guides
- Test the disks without writing to them
QNAP NAS speed test: the network, the disks and the volume
- Processes stuck on I/O (the D state)
Hardware limits and VM performance on a QNAP NAS
Questions
- My QNAP pool or volume is not active. What do I check first?
- When is the thin pool's metadata the cause?
- How do I tell a failing disk from a bad bay or slot?
- What do the disk test's verdicts mean?
- What do the kernel log, SMART and the compatibility list say about the disks?
- Which drives belong in a NAS?
- How do I get to my data when a QNAP's RAID does not work?
- How do I delete an inactive RAID group on a QNAP?
- How do I move disks from one QNAP to another, or reinstall the system without losing data?
- The NAS reads and writes slowly. How do I find the cause?
- How do I measure the disks without writing to them?
- Why do the NAS's disks never sleep while Rtorrent 16 runs?
Glossary
- bay
- The place in the NAS where a 2.5 or 3.5 inch drive goes in.
- capacity expansion
- Making a pool bigger. Depending on the RAID type, you add drives to a RAID group, replace its drives one by one with larger ones (waiting for each rebuild), or add another RAID group to the pool.
- CMR
- A recording method in which a drive's tracks do not overlap.
- degraded
- The state of a RAID that works without one or more of its drives.
- HDD
- A drive that stores data on spinning magnetic platters.
- hot spare
- A drive that waits to replace a failed one without anyone's action.
- JBOD
- Drives joined into one space and filled one after another, with no mirror and no parity. When one drive fails, its data is lost and the whole volume can become unreachable.
- NVMe
- The protocol fast SSDs use over PCIe.
- pending sector
- A sector the drive could not read and may replace after the next write.
- RAID
- Several drives used as one so that data can survive a drive failure (except RAID 0).
- RAID 1
- Two drives hold the same data. The group keeps working when one fails. The usable space is that of the smaller drive.
- RAID 10
- Pairs of drives with the same data, with the data spread across the pairs. It needs four or more drives, an even number. One drive in each pair can fail; with equal drives, half the space is usable.
- RAID 5
- Data and parity spread over three or more drives. The group keeps working when one drive fails. The parity takes the space of one drive (the smallest).
- RAID 6
- Data and two sets of parity spread over four or more drives. The group keeps working when two drives fail. The parity takes the space of two drives.
- RAID group
- The drives that form one RAID; a pool consists of one or more groups.
- RAID rebuild
- Writing a replaced drive's data again from the other drives of the RAID.
- reallocated sector
- A bad sector the drive has replaced with a spare one.
- scrubbing
- A read of a whole RAID or ZFS pool that checks redundant data and repairs what it can.
- sector
- The smallest block of data a drive reads or writes.
- slot
- A connector on the board for an M.2 drive or a PCIe card.
- SMART
- The drive's own counters and self-tests that describe its condition.
- SMR
- A recording method with overlapping tracks; a long rewrite or a RAID rebuild can become slow.
- SSD
- A drive that stores data in flash memory and has no moving parts.
- SSD cache
- SSD space that keeps often used data in front of slower drives.
- storage pool
- The space of one or more RAID groups from which volumes are made.
- surface test
- A test that reads the drive from start to end and records slow and unreadable places.
- system migration
- Moving the drives of one QNAP NAS into a compatible model with the same system (QTS or QuTS hero). The data and most settings stay. QNAP lists which models are compatible.
- thin pool metadata
- The map that says which pool block belongs to which volume.