Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zpool fails to create pool in file "no such device in /dev" #15229

Open
mystica555 opened this issue Aug 31, 2023 · 3 comments
Open

zpool fails to create pool in file "no such device in /dev" #15229

mystica555 opened this issue Aug 31, 2023 · 3 comments
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@mystica555
Copy link

System information

cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.04
DISTRIB_CODENAME=lunar
DISTRIB_DESCRIPTION="Ubuntu 23.04"

zfs-2.1.9-2ubuntu1.1
zfs-kmod-2.1.9-2ubuntu1.1

Linux 6.2.0-27-generic #28-Ubuntu SMP PREEMPT_DYNAMIC Wed Jul 12 22:39:51 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Describe the problem you're observing

zpool create does not work on files; it used to. this is now a bug.

Describe how to reproduce the problem

zpool create poolname ./path-to-file-where-you-want-the-filesystem-created-as-a-loopback

zpool create mikehomedir ./diskimage-mikehomedir-zfs 
cannot open './diskimage-mikehomedir-zfs': no such device in /dev
must be a full path or shorthand device name

@mystica555 mystica555 added the Type: Defect Incorrect behavior (e.g. crash, hang) label Aug 31, 2023
@ixhamza
Copy link
Contributor

ixhamza commented Aug 31, 2023

If diskimage-mikehomedir-zfs does not exist under /dev/ directory, it should be a full path name.

@mystica555
Copy link
Author

mystica555 commented Aug 31, 2023 via email

@ixhamza
Copy link
Contributor

ixhamza commented Aug 31, 2023

So instead of putting ./filename while within the current directory of
filename, I should put instead /mnt/usb-exfat/filename

Yes, the absolute path should work fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

2 participants