-
Notifications
You must be signed in to change notification settings - Fork 200
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
Unable to export rpool before first reboot #270
Comments
I have the same problem. Can't export the pool because rpool is busy. Then can't import rpool because pool was previously in use from another system. I think that "pool is busy" is a bug in openzfs itself because nothing was mounted. Editing /etc/default/grub and adding zfsforce=yes to GRUB_CMDLINE_LINUX_DEFAULT makes it possible to import the rpool though. |
Launch those commands before rebooting it will work 👍
|
Just took an environment and ran all the steps to try your suggestion. I still got the |
@DrGeek - see if this sparks another idea. I've implemented the ZFS 20.04 how-to as an Ansible role. The entire process works great minus this Note the Relevant Ansible Task:
The process fails on the
If I re-run just this task, buy its tag still fails, much less output:
|
@reefland I just ran into a similar issue with the NixOS Root on ZFS installation guide. In the last steps before exporting the zpools it says to run: umount /mnt/boot/efis/*
umount /mnt/boot/efi The first line runs fine but the second fails, but not because of the pool being busy but because nothing was mounted there. The problem is that all the pools were still mounted. I am running all this from a script and was not even getting the umount /mnt/boot/efis/*
umount -R /mnt I was able to export my zpools and reboot into the installed OS. |
@rlaager, I have the following issue with the Ubuntu 20.04 Root on ZFS HOWTO:
I've been using the ZFS on Root for Ubuntu for several years since 18.04 LTS. I've even replicated much of it as ansible playbook. I completed step updates based on guide to work with 20.04, then 20.04.1, now I'm testing with 20.04.3 and having a problem.
Following: https://openzfs.github.io/openzfs-docs/Getting%20Started/Ubuntu/Ubuntu%2020.04%20Root%20on%20ZFS.html#overview
I use a VirtualBox environment to practice / refine the steps before attempting on bare metal. I'm testing with three 20GB VDI files which provide for a 3 disk Legacy Boot, ZFS Native Encryption, Raidz1 setup, as per guide mdm is being used for encrypted swap.
VirtualBox boots the Ubuntu Desktop 20.04.3 ISO image and I follow the steps provided in the guide. I have started from scratch several times and keep having the same issue:
I get to Section 5, GRUB Installation, Step 10 ... I'm unable to export the pools. Everything previous to this goes pretty smooth.
My troubleshooting trying to determine why the pool busy:
I'm not in a path used by rpool:
Everything appears to unmounted cleanly:
No swap is used at this point:
The pool itself is in good shape:
Unable to export the pool:
If I ignore this issue and attempt to reboot, the rpool will not be imported as its says it was used by another system. My understanding is that is normal if you are unable to export cleanly. Thus I'm trying to solve this.
The text was updated successfully, but these errors were encountered: