[SOLVED] I messed up my zfs vmpoool

diversity

Active Member
Feb 19, 2020
245
15
38
54
I started out with;
Code:
  pool: vmpool
 state: ONLINE
config:

        NAME                                      STATE     READ WRITE CKSUM
        vmpool                                    ONLINE       0     0     0
          mirror-0                                ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802523  ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802590  ONLINE       0     0     0
          mirror-1                                ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_20465F800961  ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802025  ONLINE       0     0     0

then I detached one disk because I thought it might be a bad ssd disk as sometimes it would not register and the whole system is slow to start and the pool is degraded.
resulting in;

Code:
 pool: vmpool
 state: ONLINE
  scan: resilvered 1.20M in 00:00:00 with 0 errors on Fri Jul 30 09:51:54 2021
config:

        NAME                                      STATE     READ WRITE CKSUM
        vmpool                                    ONLINE       0     0     0
          mirror-0                                ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802523  ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802590  ONLINE       0     0     0
          nvme-WDS100T1X0E-00AFY0_204540802025    ONLINE       0     0     0

Then I wanted to give it another try after reseating the ssd. So I used this command.
zpool add vmpool /dev/nvme2n1
resulting in

Code:
  pool: vmpool
 state: ONLINE
  scan: resilvered 1.20M in 00:00:00 with 0 errors on Fri Jul 30 09:51:54 2021
config:

        NAME                                      STATE     READ WRITE CKSUM
        vmpool                                    ONLINE       0     0     0
          mirror-0                                ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802523  ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802590  ONLINE       0     0     0
          nvme-WDS100T1X0E-00AFY0_204540802025    ONLINE       0     0     0
          nvme2n1                                 ONLINE       0     0     0

errors: No known data errors

But I wanted to recreate the stripped mirror I had originally and now I can't remove the disk to try again but am getting this.

Code:
zpool detach vmpool nvme2n1
cannot detach nvme2n1: only applicable to mirror and replacing vdevs

How do I reconfigure the vmpool to it's original state?
 
Last edited:
If you are on a recent Proxmox version you might be able to use the remove command which was only added to ZFS(onLinux) recently (I think).
Can you try zpool remove vmpool nvme2n1?
 
great, thank you

Code:
  pool: vmpool
 state: ONLINE
  scan: resilvered 1.20M in 00:00:00 with 0 errors on Fri Jul 30 09:51:54 2021
remove: Removal of vdev 2 copied 23.3M in 0h0m, completed on Sat Jul 31 09:59:12 2021
        11.7K memory used for removed device mappings
config:

        NAME                                      STATE     READ WRITE CKSUM
        vmpool                                    ONLINE       0     0     0
          mirror-0                                ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802523  ONLINE       0     0     0
            nvme-WDS100T1X0E-00AFY0_204540802590  ONLINE       0     0     0
          nvme-WDS100T1X0E-00AFY0_204540802025    ONLINE       0     0     0

now how to recreate the original situation?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!