Marking the zfs-linux task as won't fix after looking more deeply about 
cause/consequences of forcing -f on every boot:
- zfs 0.8, as told previously, tag with which system the pool was associated 
with and refuse to import previously unexported pool, as they can still be 
attached to any systems (possibly running).
- there is a kernel option zfs.force=on (or _, '') which can be set to on/yes/1 
to force the import in the initramfs.
This is seen upstream as a way to force broken systems, where they have
been imported but not exported before reboot.

Note that this broken case only impacts the 2 following scenarios:
- you install a new system (so system id != final id) and then reboot to your 
new installed system. This is the curtin (and ubiquity) cases. I think it's 
fine to require them to properly export the pools before rebooting (which will 
cause a sync).
- you have 2 systems installed in parallel on the same pool, and on shutdown, 
while switching between the 2 systems, the export wasn't working on shutdown. 
This has to be seen how frequent this is and having zfs marked as experimental 
for this cycle sounds like a good fit to get those data.

Marking the zfs task as won't fix for now.

** Changed in: zfs-linux (Ubuntu)
       Status: New => Won't Fix

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to zfs-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1838278

Title:
  zfs-initramfs wont mount rpool

Status in curtin package in Ubuntu:
  In Progress
Status in zfs-linux package in Ubuntu:
  Won't Fix

Bug description:
  1. Eoan

  2. http://archive.ubuntu.com/ubuntu eoan/main amd64 zfs-initramfs
  amd64 0.8.1-1ubuntu7 [23.1 kB]

  3. ZFS rootfs rpool is mounted at boot

  4. Booting an image with a rootfs rpool:

  [    0.000000] Linux version 5.2.0-8-generic (buildd@lgw01-amd64-015) (gcc 
version 9.1.0 (Ubuntu 9.1.0-6ubuntu2)) #9-Ubuntu SMP Mon Jul 8 13:07:27 UTC 
2019 (Ubuntu 5.2.0-8.9-generic 5.2.0)
  [    0.000000] Command line: 
BOOT_IMAGE=/ROOT/zfsroot@/boot/vmlinuz-5.2.0-8-generic 
root=ZFS=rpool/ROOT/zfsroot ro console=ttyS0

  
  Command: /sbin/zpool import -N   'rpool'
  Message: cannot import 'rpool': pool was previously in use from another 
system.
  Last accessed by ubuntu (hostid=d24775ba) at Mon Jul 29 05:21:19 2019
  The pool can be imported, use 'zpool import -f' to import the pool.
  Error: 1

  Failed to import pool 'rpool'.
  Manually import the pool and exit.

  
  Note, this works fine under Disco, 

  http://archive.ubuntu.com/ubuntu disco/main amd64 zfs-initramfs amd64
  0.7.12-1ubuntu5 [22.2 kB]

  [    4.773077] spl: loading out-of-tree module taints kernel.              
  [    4.777256] SPL: Loaded module v0.7.12-1ubuntu3
  [    4.779433] znvpair: module license 'CDDL' taints kernel.
  [    4.780333] Disabling lock debugging due to kernel taint
  [    5.713830] ZFS: Loaded module v0.7.12-1ubuntu5, ZFS pool version 5000, 
ZFS filesystem version 5
  Begin: Sleeping for ... done.
  Begin: Importing ZFS root pool 'rpool' ... Begin: Importing pool 'rpool' 
using defaults ... done.
  Begin: Mounting 'rpool/ROOT/zfsroot' on '/root//' ... done.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/curtin/+bug/1838278/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to