LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   ZFS: no pools available (https://www.linuxquestions.org/questions/centos-111/zfs-no-pools-available-4175670931/)

notooth 03-07-2020 07:27 PM

ZFS: no pools available
 
I failed to import a pool using these commands:
Code:

# zpool status
no pools available

# zpool import
no pools available to import

# zpool import -f tank
cannot import 'tank': no such pool available

I just fixed the problem using this command:
Code:

# zpool import -d /dev/disk/by-id tank

uteck 03-08-2020 12:54 PM

you could post the fix if others have the same problem they can use your solution.

notooth 03-08-2020 10:25 PM

I have just reposted the fix so everyone can see it :)

postcd 03-13-2021 05:42 AM

It may be helpful to someone so i post:
ls -l /dev/disk/by-id/
Then possibly the first partition of the drive is the one to mount.
For example:
sudo zpool import -a -d /dev/disk/by-id/ata-Samsung_SSD_abc-part1 -d /dev/disk/by-id/ata-Samsung_SSD_def-part1
(-a switch may work, no need to remember pool name)
If issues, try "man zpool-import"


All times are GMT -5. The time now is 05:29 PM.