microsoft / microsoft/WSL

Unable to import ZFS pools in WSL 2 after successfully installing the zfs-dkms kernel module

Open
#5,148 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
C++
Stars
33.7k
Forks
1.8k
Avg merge
3d 17h
Merged PRs (30d)
116

Description

  • Your Windows build number: Microsoft Windows [Version 10.0.19041.207]

  • What you're doing and what's happening: sudo zpool import -f [pool]

  • What's wrong / what should be happening instead:

cannot import '[pool]': no such pool available

The zpool should be imported; I think WSL 2 can't quite see the drives the pools are on. No idea how to get them to do that.

Thank you kindly for the help!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sudo zpool import -f [pool] command and the linked strace gist, then investigate how WSL 2 exposes the drives used by the zfs-dkms pools. Done means identifying the cause and enabling the reported pool to import successfully, or documenting a confirmed limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
linux
Domain
operating-systems
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.