imported non-rpool/bpool zpools are not being reimported after reboot

Bug #1849522 reported by satmandu
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
zfs-linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Installed ubuntu 19.10 onto a zfs bpool/rpool.

Installed zsys.

Did a "zpool import" of my existing zfs pools.

Rebooted.

The previously imported zpools are not imported at boot!

I am currently using this hacky workaround:

https://gist.github.com/satmandu/4da5e900c2c80c93da38c76537291507

I would expect that local zpools I have manually imported would re-import when the system is rebooted.

ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: zsys 0.2.2
ProcVersionSignature: Ubuntu 5.3.0-19.20-generic 5.3.1
Uname: Linux 5.3.0-19-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
Date: Wed Oct 23 11:40:36 2019
InstallationDate: Installed on 2019-10-19 (4 days ago)
InstallationMedia: Ubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: zsys
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
satmandu (satadru-umich) wrote :
Revision history for this message
Florian Obradovic (florian-obradovic) wrote :

Hey Satmandu,
same here:

Ubuntu 19.10 installed on a HP MicroServer Gen8 on internal bay (2.5"SSD SATA).

Using the four 3.5" bays I've setup a zRaid1 pool "tank" which is unfortunately not imported on boot.
Due to the pool is not available on boot all my LXD containers won't start.
I will try your fix!

Offtopic:
- to get the MicroServer boot of the 5th SATA port you must set the SATA controller in BIOS to RAID mode instead of AHCI and build a single disk raid0 on your 5th SATA port. Don't worry: The OS still sees an AHCI disk.
00:1f.2 RAID bus controller: Intel Corporation 6 Series/C200 Series Desktop SATA RAID Controller (rev 05)

When booting the rpool is not available:
Cannot import 'rpool': no such pool available.

I fixed this by:
edit /etc/default/grub
find GRUB_CMDLINE_LINUX_DEFAULT=""
add rootdelay=10 to add a delay of 10 seconds (you can experiment with this value...)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in zsys (Ubuntu):
status: New → Confirmed
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Thanks for your bug report! This is now fixed in zfs-linux 0.8.3-1ubuntu10 in focal.

affects: zsys (Ubuntu) → zfs-linux (Ubuntu)
Changed in zfs-linux (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
satmandu (satadru-umich) wrote :

I don't think this is fixed, because now grub.cfg has NO entries in it aside from that for accessing the bios menu.

(Is this related to corresponding grub-common changes?)

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

See my previous comment: this is only related to zfs-linux with the version I mentioned. Also, we didnt’ make any change to grub for ZFS since 26 February, and if you have an empty grub.cfg, this may be due to other bugs, like multiple rpool/bpool, which isn’t what this one was about. Ensure that your bpool was imported before generating the grub menu and is in the cache. This may be why your grub config is empty.

Just to scope this one:
- have a bootable system (preferably installed with the beta image to not get stuck in a previous bug)
- create a pool that you import
- reboot -> the pool should still be there

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.