# 1. Restore a Proxmox ZFS pool

Source: [Oneuptime](https://oneuptime.com/blog/post/2026-03-02-how-to-replace-a-failed-disk-in-a-zfs-pool-on-ubuntu/view)

In the occasion that one of your Proxmox ZFS pools becomes degraded then this is one of the ways to restore your pool. Such a pool could be an OS, VM or a storage pool. Now, once you receive a [proxmox notification](https://docs.rfeyn.org/books/23-maintenance/chapter/2-proxmox-notifications) (Don't forget to setup Proxmox notifications via Email or NTFY) that your pool is degraded you will see in the Proxmox GUI the following:

[![Screenshot From 2026-06-30 02-25-01.png](https://docs.rfeyn.org/uploads/images/gallery/2026-07/scaled-1680-/gHbPQlrpeMeZzMoi-screenshot-from-2026-06-30-02-25-01-png.png)](https://docs.rfeyn.org/uploads/images/gallery/2026-07/scaled-1680-/gHbPQlrpeMeZzMoi-screenshot-from-2026-06-30-02-25-01-png.png)

1\. If you then double click on the Degraded pool you will see which drive is actually degraded and needs to be replaced.

[![Screenshot From 2026-06-30 02-29-50.png](https://docs.rfeyn.org/uploads/images/gallery/2026-07/scaled-1680-/x6R8k4C3A1nW2qZ9-screenshot-from-2026-06-30-02-29-50-png.png)](https://docs.rfeyn.org/uploads/images/gallery/2026-07/scaled-1680-/x6R8k4C3A1nW2qZ9-screenshot-from-2026-06-30-02-29-50-png.png)

2\. The note down the Serial Number of your degraded or failed drive s.t you can go into your machine and take out the failed drive.

3\. Then take your new drive and insert it in the failed drive location.

4\. Now, what is important is that you need to note down the serial number of the new drive that you have added. Luckily we can just go into Proxmox &gt; Disks and we see an overview of all the disks that are connected to the Proxmox system

5\. Then look for your drive in my case that is **ata-Samsung\_SSD\_870\_EVO\_1TB\_S75CNX0WC58810Y** which is mount to /dev/sda and the degraded drive is **ata-KINGSTON\_SA400S37480G\_50026B7785A335B4** mounted to /dev/sdc

[![Screenshot From 2026-07-03 23-05-05.png](https://docs.rfeyn.org/uploads/images/gallery/2026-07/scaled-1680-/DuCjC2XiBLjOrzt5-screenshot-from-2026-07-03-23-05-05-png.png)](https://docs.rfeyn.org/uploads/images/gallery/2026-07/scaled-1680-/DuCjC2XiBLjOrzt5-screenshot-from-2026-07-03-23-05-05-png.png)

6\. Then to make sure everything is removed from the **new fresh disk** and it is clean you will wipe the disk with the button Wipe Disk.

7\. Then we will go into our Shell and use the command **sudo zpool status &lt;YOUR POOL NAME&gt;**

```bash
root@pve1:~# sudo zpool status VMPool
  pool: VMPool
 state: DEGRADED
status: One or more devices has experienced an unrecoverable error.  An
        attempt was made to correct the error.  Applications are unaffected.
action: Determine if the device needs to be replaced, and clear the errors
        using 'zpool clear' or replace the device with 'zpool replace'.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-9P
  scan: resilvered 104M in 00:00:01 with 0 errors on Fri Jul  3 22:47:08 2026
config:

        NAME                                            STATE     READ WRITE CKSUM
        VMPool                                          DEGRADED     0     0     0
          mirror-0                                      DEGRADED     0     0     0
            ata-KINGSTON_SA400S37480G_50026B72832059D9  ONLINE       0     0     2
            ata-KINGSTON_SA400S37480G_50026B7785A335B4  DEGRADED     0     0     0  too many errors

errors: No known data errors
```

8\. Note down the disk that has failed or is degraded (ata-KINGSTON\_SA400S37480G\_50026B7785A335B4 in this case). Then as suggested in the actions we will use the command **zpool replace** to replace the failed drive.

```bash
sudo zpool replace POOLNAME /dev/disk/by-id/old-disk /dev/disk/by-id/new-disk
```

This will then result in this ;)

```bash
root@pve1:~# sudo zpool replace VMPool /dev/disk/by-id/ata-KINGSTON_SA400S37480G_50026B7785A335B4 /dev/disk/by-id/ata-Samsung_SSD_870_EVO_1TB_S75CNX0WC58810Y
root@pve1:~# zpool status VMPool
  pool: VMPool
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Fri Jul  3 23:29:16 2026
        69.8G / 69.8G scanned, 513M / 69.8G issued at 257M/s
        501M resilvered, 0.72% done, 00:04:36 to go
config:

        NAME                                               STATE     READ WRITE CKSUM
        VMPool                                             DEGRADED     0     0     0
          mirror-0                                         DEGRADED     0     0     0
            ata-KINGSTON_SA400S37480G_50026B72832059D9     ONLINE       0     0     2
            replacing-1                                    DEGRADED     0     0     0
              ata-KINGSTON_SA400S37480G_50026B7785A335B4   OFFLINE      0     0     0
              ata-Samsung_SSD_870_EVO_1TB_S75CNX0WC58810Y  ONLINE       0     0     0  (resilvering)

errors: No known data errors
root@pve1:~# 
```

9\. We can now see that after the replace command that the VMPool is resilvering straight away. Since, it is a mirror zfspool the resilvering process can go really quick.

10\. Then you will get a notification via NTFY or Email once the resilvering process is done. If it is a long resilvering process you can check the progress of the resilvering progress by using the **zpool status POOLNAME** command.

Awesome! You replaced your old drive with a new one ! basically in 15 minutes!! That was not that hard was it ;)