CodexBloom - Programming Q&A Platform

ZFS Pool Import scenarios with 'dataset does not exist' scenarios on Ubuntu 22.04

👀 Views: 71 đŸ’Ŧ Answers: 1 📅 Created: 2025-06-15
zfs ubuntu linux storage bash

I'm trying to import a ZFS pool that I exported from a different machine, but I keep running into the behavior `want to import 'my_pool': dataset does not exist`. The pool was exported correctly using `zpool export my_pool`, and I'm now trying to import it on a fresh installation of Ubuntu 22.04. I've confirmed that the underlying devices are available and recognized by the system. Running `zpool list` shows no existing pools, which indicates that the system is not recognizing the pool at all. I've also checked the ZFS version, which is `0.8.5`, and I've ensured that the ZFS services are running using `systemctl status zfs`. To troubleshoot, I attempted to manually specify the location of the pool by running: ```bash sudo zpool import -d /dev/disk/by-id/ my_pool ``` However, this yields the same behavior message. I also tried listing available pools with: ```bash sudo zpool import ``` This command returns no pools available for import. I've verified that the disks were not wiped or formatted after the export, and they still contain the ZFS metadata. Is there a specific step I'm missing here, or is there a way to recover the pool from its current state? Any suggestions or insights would be greatly appreciated.