Replacing a failed disk in a Proxmox VE ZFS pool

A failed disk in a ZFS mirror or RAIDZ pool is recoverable if you identify the right device, replace it with zpool replace, rebuild the boot partitions on boot disks and watch the resilver. This page covers the sequence, the decisions and the alerts that catch it early.

On this page

How to replace a failed disk in a Proxmox VE ZFS pool

When a ZFS pool on a Proxmox VE host reports a DEGRADED state after a disk fault, the pool is still serving guests, but it has lost the redundancy it was built to keep. A mirror tolerates the loss of one disk per vdev, and a RAIDZ vdev tolerates as many failed disks as its parity level (RAIDZ1 one, RAIDZ2 two, RAIDZ3 three). A second fault inside the same vdev before the resilver finishes can cost the pool's data, so the replacement should start as soon as the failed disk is confirmed, not after the guests are moved. Replacement is the right response when the disk reports persistent read or write errors, fails SMART checks, or drops off the bus. A transient error that clears after a reseat, or a cable or controller fault that affects several disks at once, points to a different fix that should be checked first.

Confirm three things before you touch hardware. First, check that the pool's status matches the disk you intend to pull, using zpool status and the device serial numbers, because a wrong-disk removal in a degraded pool is the most common way a recoverable event becomes a loss. Second, confirm the replacement disk is at least as large as the failed one and that the boot-disk layout matches the other members if the failed disk is a boot disk. Third, check that a current backup of the guests exists and has been verified, so a restore is available if the resilver goes wrong. Teams should bring in outside help when the pool holds guests with no recent backup, when more than one vdev is degraded, when the failed disk is part of a boot mirror that will not come back cleanly, or when the host sits in a regulated environment where the change needs a documented, reviewed procedure. The Proxmox VE documentation on ZFS and the product's administration guide are the starting references for your own runbook.

Replacement options and when each fits

This table compares four replacement scenarios in a Proxmox VE ZFS pool, showing what triggers each one, the commands involved at a high level, and the main risk while the pool resilvers. Read the risk column first, because reduced redundancy during resilver is the exposure that matters most on every row. Confirm command behavior against the OpenZFS and Proxmox documentation for your installed versions before you run anything.

ScenarioTriggerCommands involved (high level)Main risk
Data disk in a mirror vdevSMART errors, read or write errors, or the pool showing the disk as FAULTED or UNAVAILIdentify the device by serial number, zpool replace with the new disk, then monitor zpool status until resilver completesThe mirror runs on one disk during resilver, so a second failure on the surviving disk loses data
Disk in a RAIDZ vdevSame fault signals as a mirror, but the vdev tolerates only as many failures as its parity level allowsIdentify the device, zpool replace the failed member, then monitor resilver progress and error countsResilver reads every surviving member, which adds load and time, and the vdev has no spare parity while it runs
Boot disk in a mirrored root poolFailed boot disk in a ZFS root mirror, often showing as a missing ESP or boot entry as well as a degraded poolReplace the pool member with zpool replace, then re-create the EFI system partition on the new disk using proxmox-boot-tool, and confirm boot entries are syncedSkipping the boot partition step can leave the server able to run on the pool but unable to boot after the next reboot if the other disk fails
Replacement disk with different size or sector layoutFailed disk has been removed from the market, or the only available replacement has a different capacity or sector sizeCheck sizes and ashift before replace, use a replacement at least as large as the original member, then confirm the vdev's ashift setting with zpool and zdb outputA smaller disk cannot be used at all, and a mismatched sector layout can cost performance or block the replacement, so confirm compatibility before the disk is installed

Replacement sequence with checks at each stage

This sequence takes a failed ZFS disk from identification to a completed resilver with a verified pool. Each stage ends with a check that confirms the work so far is correct before the next step starts.

  1. Identify the failed device by serial and by-id path

    The storage or platform engineer on call starts by mapping the failed member to a physical bay. Run zpool status -P and note the device path ZFS reports for the faulted or unavailable member, then match it to a persistent entry under /dev/disk/by-id/. Confirm the serial number printed on the drive label against the serial shown by smartctl -i on that by-id path, and record the bay position from the chassis or controller tool. The step is done when the by-id path, serial and bay all point to the same physical drive. Do not pull a drive until this match is written down, because pool member names such as sdc can change after a reboot.

  2. Confirm pool state and redundancy before touching hardware

    Before any hardware change, check that the pool can survive the work. Run zpool status and confirm the pool is DEGRADED with the remaining members ONLINE, and check that no other member shows read, write or checksum errors. Review zpool status -v for files reported as permanently damaged. If a second member is failing or the pool has no remaining redundancy, stop and escalate before continuing. The step is done when the team has a written pool state showing the expected redundancy level and no unexplained errors on surviving disks.

  3. Take or verify a recent backup

    Confirm that the guests and configuration on the pool have a restorable backup before the resilver starts. For guest data, check the last successful job in Proxmox Backup Server or the chosen backup target and confirm it completed without errors. Also copy /etc/pve contents and the node's configuration files to a safe location, since they are part of the boot and cluster state you may need to rebuild. The step is done when someone other than the person doing the swap has confirmed the backup timestamp and a test restore path is known. Proxmox VE backups are described in the administration guide for the backup tool.

  4. Power down or hot-swap the disk per hardware

    Replace the drive using the procedure for your chassis, controller and disk type. Some HBAs and backplanes support hot-swap, and others require the host to be shut down first. Check your server vendor documentation and confirm the controller passes the new disk through as a plain device, not a single-disk RAID volume, because ZFS needs direct access to the disk. Fit the new drive, power the system up if needed, and confirm the operating system sees it. The step is done when lsblk and ls -l /dev/disk/by-id/ show the new drive with a by-id name you can record, and the new drive's serial matches the purchase record.

  5. Copy the partition layout from a healthy member

    For data-only pools, ZFS needs the new disk to be large enough, and you can skip partition copying. For boot disks, the new disk needs the same partition layout as a healthy mirror member, including the EFI or BIOS boot partitions and the ZFS partition. Use sgdisk --replicate or the equivalent tool to copy the partition table from a surviving disk to the new one, then randomize the GUIDs with sgdisk -G on the new disk. Confirm with lsblk that partition sizes match. The step is done when the new disk's partition table matches the healthy disk and the GUIDs differ.

  6. Run zpool replace with the stable device ID

    Start the resilver by replacing the failed member with the new disk. Use the by-id path recorded in the first step for both the old member, if it still appears, and the new disk, for example zpool replace <pool> <old-member> /dev/disk/by-id/<new-disk-id>. For a boot pool, replace the ZFS partition, not the whole disk. Run zpool status immediately after and confirm the pool shows the new device with state ONLINE or a resilver in progress. The step is done when the resilver line appears in zpool status and no error is returned by the replace command.

  7. Re-create boot partitions with proxmox-boot-tool

    On a boot disk, the new disk's EFI system partition must be formatted and registered with the boot loader, or the server may fail to boot from it later. Run proxmox-boot-tool format on the new EFI partition, then proxmox-boot-tool init on the same partition. Then run proxmox-boot-tool status and confirm each configured boot entry lists the new partition. Verify that a kernel update or proxmox-boot-tool refresh completes without warning on the new disk. The step is done when proxmox-boot-tool status lists all EFI partitions as configured and synchronized.

  8. Monitor the resilver to completion

    Watch the resilver until ZFS reports the pool as fully ONLINE. Run zpool status periodically and confirm the resilver progress advances and no new read, write or checksum errors appear on any member. Check the kernel log for disk errors during the process. Set up an alert in your monitoring system for degraded pool states and for resilver errors, so the next failure is not missed. The step is done when zpool status shows the pool ONLINE with zero errors, a completed resilver line, and an alert rule for degraded pools has been tested or confirmed in your monitoring platform.

Watching the resilver and alerting on degraded pools

A replacement is only as safe as the monitoring that catches the next failure. The practices below cover how a pool reports degradation, how you hear about it, and how you keep the disk records needed for the next swap.

Scheduled zpool status checks

Run zpool status on a schedule from a script or cron job and compare the output against the last known healthy state. During a resilver, check that the pool shows the new device as resilvering and that the estimated completion moves forward. Treat any DEGRADED, FAULTED or UNAVAIL state, or any growing read, write or checksum error count, as a reason to act.

Proxmox VE FAQ

ZED email notifications

The ZFS Event Daemon (ZED) can send email when pool events occur. Set the ZED_EMAIL_ADDR key in /etc/zfs/zed.d/zed.rc, confirm that the host can deliver mail to that address, and send a test event. Do not rely on ZED alone, because a host that loses its mail path or the daemon will stay silent.

Monitoring tool alerts for degraded state

Add a check to your monitoring system that alerts when the pool health output is not ONLINE. Make the check fail on DEGRADED and FAULTED, and also on a pool that is resilvering longer than expected. Route it to the team that owns the host so the alert reaches someone who can act, and confirm the alert fires by testing it against a non-production pool.

Scheduled scrub runs

A scrub reads every block and verifies checksums, which surfaces latent errors before a second disk fails during a resilver. Schedule scrubs on each pool with zpool scrub, and check the result in zpool status. Set the timing so scrubs do not overlap heavy backup jobs, and confirm the schedule with the storage design and the workload calendar.

Proxmox VE admin guide

SMART monitoring of member disks

Enable SMART monitoring with smartctl or the smartd service on every disk in a pool, including spares. Watch for reallocated, pending and uncorrectable sector counts, and for drives that report failing health. A disk showing SMART warnings before ZFS reports errors gives you time to plan the swap during a maintenance window rather than in an emergency.

Disk serial numbers in an asset inventory

Record each pool member's model, serial number, slot and the /dev/disk/by-id name in your asset inventory. When a disk fails, this record lets you match the device ZFS reports to the physical bay before you pull anything. Keep it current after every swap, and store it outside the host so it survives a failed boot disk.

Questions teams ask before replacing a ZFS disk

Can our team replace a failed ZFS disk on Proxmox VE without outside help?

Yes, if your team already runs Linux storage and has tested the procedure on a non-production node. The core steps are short: identify the failed device, replace it with zpool replace, and watch the resilver. The work gets riskier when the failed disk is a boot disk, when the hardware cannot hot-swap cleanly, or when nobody has checked that recent backups restore. A useful first step is a rehearsal on a spare host with the same pool layout, so the on-call engineer has seen the commands before a real failure. DeployOpen can plan or run this work as a fixed-scope engagement if your team prefers not to do it live.

What makes a ZFS disk replacement take longer or carry more risk?

Three factors dominate. The first is pool layout: a mirror resilvers from one surviving partner, while a RAIDZ vdev depends on every remaining member, so a second failure during the rebuild matters more in some layouts than others. The second is boot versus data disk: a boot disk also needs its boot partitions recreated with proxmox-boot-tool, which adds steps and a reboot check. The third is hardware: bays that support hot-swap and controllers that expose the new disk cleanly shorten the window. Backup currency sets the cost of a mistake, so confirm that the most recent backup of every guest on the pool is complete before you start.

What does an outside engagement cover, and what do we need to provide?

A scoped engagement typically covers reviewing the pool layout and disk health, preparing a written procedure for your hardware, supervising or performing the replacement, monitoring the resilver, verifying boot configuration, and documenting the result. The scope and timeline are agreed in writing before work starts, and the quote follows from that scope. From your side, expect to provide remote or onsite access to the hosts, the current zpool status and hardware inventory, the change window, the backup status for affected guests, and a named contact who can approve actions on the day. DeployOpen works inside your infrastructure, so no data leaves your environment.

Does replacing a failed disk require a Proxmox VE subscription?

No. The software can be used without a subscription, and all subscription tiers include the same software features. What changes is access to the enterprise repository and support entitlements. The enterprise repository requires a valid subscription key and is the recommended choice for production, while the no-subscription repository is described for testing and non-production use. Replacing a disk does not itself require a subscription, but if you run production nodes on the no-subscription repository, check whether your organization's policy requires enterprise packages before you update the boot tooling as part of the repair.

Which Proxmox VE version should we confirm before we start?

Confirm the exact Proxmox VE release and the Debian release underneath it, because the boot tooling and ZFS packages follow the platform version. Proxmox VE 9.0 was released on August 5, 2025 on Debian 13, Proxmox VE 9.1 followed on November 19, 2025, and Proxmox VE 9.2 was released on May 21, 2026. Proxmox VE is supported at least as long as the matching Debian release has security support, and Proxmox VE 8 on Debian 12 reached end of life in August 2026. If a node runs an unsupported release, plan the disk replacement together with the upgrade, since a replacement on an end-of-life host still leaves the underlying risk in place.

What happens if a second disk fails while the pool is resilvering?

It depends on the redundancy left. A mirror that loses its surviving partner during resilver loses the data that exists only on that pair, so the pool cannot be repaired from parity. A RAIDZ vdev can tolerate the number of failures its parity level allows, but a further failure during the rebuild leaves less margin. In both cases, stop non-essential I/O if possible, check zpool status for the affected devices, and restore affected guests from your latest verified backup rather than forcing a repair. Ask your team to define this escalation path before the incident, and test restores on a schedule so the decision is not made under pressure.

How do we know the pool is degraded before users notice?

Set up alerting on pool health and watch for the state change, not only for complete failure. Schedule regular scrubs, review zpool status output automatically, and send a notification when a vdev shows DEGRADED or a device shows errors. Ask your monitoring team to confirm which channel receives the alert, who acknowledges it out of hours, and how long a degraded pool may stay open before escalation. The exact tooling depends on your monitoring stack, so confirm what your environment already collects before adding new checks.

Security and operational risks during a disk swap

A disk swap touches data at rest, the people who can reach the host, the record of what changed, the package state of the node and the keys that unlock the pool. Each card below is a point to confirm in your own environment before and after the replacement, not a guarantee that the procedure removes it.

Data left on the removed disk

A failed disk may still hold readable ZFS labels and data blocks, and it may leave the building with a vendor's RMA process. Confirm whether the drive stays on site, who signs for it and whether your policy requires physical destruction or a documented secure erase before it is returned or disposed of. Check whether the disk was ever part of an unencrypted pool.

Operator access to the node

The person running zpool replace on a Proxmox VE host usually has root-level control of the hypervisor and every guest on it. Confirm who is allowed to open a shell on the node for this work, whether that access is tied to named accounts, and whether the change is performed under a time-limited approval. Review the permissions model before granting anyone a shared root login.

User management wiki

Change record for audit evidence

Auditors and internal reviewers will ask what changed, when, by whom and why. Record the failed device identifier, the replacement serial number, the pool status before and after, the commands run and the resilver completion time in a change ticket. Keep the record outside the node so it survives a failure of the host.

Repository and package consistency

After a disk is replaced and boot tools are refreshed, the node should install packages from the repository your subscription or testing setup expects. Confirm which repository the node uses, that it matches your production policy and that the ZFS and boot packages on each node are at the same level. Mixed package states across cluster members complicate later troubleshooting.

Package repositories wiki

Encryption key availability

If the pool or its datasets use native ZFS encryption, the replacement disk cannot be used without the key material, and a lost key cannot be recovered from the pool itself. Confirm where the passphrase or key file is stored, who can retrieve it during an incident and that a restore test has been done with keys held outside the failed node.

Decision path from degraded pool to healthy pool

The path starts when zpool status reports a pool as DEGRADED. Before touching hardware, the operator identifies the failed device and decides whether it holds guest data or boot partitions, because the two paths differ. A data disk goes through zpool replace, while a boot disk also needs its boot partitions re-created with proxmox-boot-tool. Both paths converge on resilver monitoring, and the check is whether the pool returns to a healthy state or must be escalated because another device is failing.

Decision path for a degraded ZFS pool, splitting data and boot disk handling before resilver monitoring.

When an outside team should take over the swap

An outside team earns its place when the failure is no longer a single disk swap. The clearest cases are a root pool that will not boot after a boot disk fails, a pool that is already degraded with a second fault such as a checksum error or a second device reporting read errors, and production hosts where nobody has a tested runbook for zpool replace and the boot partition steps. In each case the risk is not the commands themselves but the order of operations, and a wrong step on a degraded pool can turn a recoverable event into data loss. Before deciding, check whether your team has rehearsed a replacement on a non-production host and whether your backups have been restored recently enough to trust.

If you engage DeployOpen, the scope would be agreed in writing before any work starts. That scope would normally name the hosts and pools in question, the current state of each vdev and the boot configuration, the access and change windows, who approves the disk replacement and the data risk, and the evidence to be captured, such as pool status before and after, resilver logs and the boot-tool verification output. Timelines and fees would follow from that written scope and from what the inspection finds, so ask for them in the quote rather than assuming a standard duration. Ask also how the alerting on degraded pools will be handed over and tested, since a repair that nobody sees again is only half finished.

Where the platform is subject to a compliance assessment, the outside team's job extends to evidence. DeployOpen prepares systems, controls and evidence for assessments but does not issue audit reports or certifications, so confirm with your assessor which records they expect for a hardware change to production storage, such as change tickets, disk serial numbers, timestamps and monitoring history. Agree in the scope who keeps those records and where they are stored. Finally, confirm whether the engagement includes a follow-up review of the pool after resilver completes, because the days after a replacement are when a second fault is most likely to surface.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.