Hello everyone,
I have a ZFS1 pool made up of 10 disks. When I first created the pool, I only had 5 drives, and they formed the first vdev. At the time, I used /dev/sdx to set them up. Later on, I added another 5 drives to the pool and this time I used the /dev/disk/by-id path. So the pool ended up being a mix of both. I had no issue with this and was able to use whole pool's storage. All the disks are from the same manufacturer and have the same size (20TB).
I recently tried to fix this inconsistency by following this guide:
https://serverfault.com/questions/8...-in-a-zfs-pool-from-dev-sdx-to-dev-disk-by-id
I ran
to export the pool. Initially, I got a "zpool is busy" message, but after stopping all my containers in Proxmox, I was able to successfully run the export command.
Next, I tried to import the pool using:
But now the pool can't be found. The drives are all visible in /dev/disk/by-id, and by checking their SMART data, I can distinguish between the original 5 drives (the first vdev) and the 5 newer ones (the second vdev). My question is: is there a way to import the pool by explicitly specifying the disk IDs for both vdev0 and vdev1?
From my understanding, ZFS doesn’t store pool configuration based on how drives were referenced, but rather uses the metadata stored on the disks themselves. As one reddit user put it: For the record exporting a pool is akin to windows ejecting a usb drive. Can't destroy up a pool with an export command.
Have I managed to destroy the pool?
I have a ZFS1 pool made up of 10 disks. When I first created the pool, I only had 5 drives, and they formed the first vdev. At the time, I used /dev/sdx to set them up. Later on, I added another 5 drives to the pool and this time I used the /dev/disk/by-id path. So the pool ended up being a mix of both. I had no issue with this and was able to use whole pool's storage. All the disks are from the same manufacturer and have the same size (20TB).
I recently tried to fix this inconsistency by following this guide:
https://serverfault.com/questions/8...-in-a-zfs-pool-from-dev-sdx-to-dev-disk-by-id
I ran
Code:
zpool export pool-name
Next, I tried to import the pool using:
Code:
zpool import pool-name -d /dev/disk/by-id
But now the pool can't be found. The drives are all visible in /dev/disk/by-id, and by checking their SMART data, I can distinguish between the original 5 drives (the first vdev) and the 5 newer ones (the second vdev). My question is: is there a way to import the pool by explicitly specifying the disk IDs for both vdev0 and vdev1?
From my understanding, ZFS doesn’t store pool configuration based on how drives were referenced, but rather uses the metadata stored on the disks themselves. As one reddit user put it: For the record exporting a pool is akin to windows ejecting a usb drive. Can't destroy up a pool with an export command.
Have I managed to destroy the pool?
