Re: main-n254654-d4e8207317c results in "no pools available to import"

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Tue, 12 Apr 2022 10:49:00 UTC
 
Van: Dennis Clarke <dclarke@blastwave.org>
Datum: dinsdag, 12 april 2022 10:41
Aan: freebsd-current@freebsd.org
Onderwerp: Re: main-n254654-d4e8207317c results in "no pools available to import"
> 
> On 4/11/22 14:18, Ronald Klop wrote:
> > On 4/11/22 17:17, Dennis Clarke wrote:
> >>
> >> Did the usual git pull origin main and buildworld/buildkernel but >> after installkernel the machine will not boot.
> >>
> >> The rev seems to be main-n254654-d4e8207317c.
> >>
> >> I can boot single user mode and get a command prompt but nothing past
> >> that. Is there something borked in ZFS in CURRENT ?
> >>
> >>
> >>
> >
> >
> > Up until now you are the only one with this error on the mailinglist > today. So I doubt something is borked.
> > You could consider to share more details about your setup to help people > to think along with you.
> >
> > Regards,
> > Ronald.
> 
> I am officially baffled.
> 
> I installed latest CURRENT snapshot on another system and then buildworld and buildkernel after checkout of d4e8207317c.
> 
> At reboot, with a serial console I can get to single user mode no problem :
> 
> 
> .
> .
> .
> cd0 at ahcich3 bus 0 scbus3 target 0 lun 0
> cd0: <HL-DT-ST DVDRAM GH70N UGA0> Removable CD-ROM SCSI device
> cd0: Serial Number K18C36A0237
> cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes)
> cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed
> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
> ada0: <Samsung SSD 870 QVO 1TB SVQ01B6Q> ACS-4 ATA SATA 3.x device
> ada0: Serial Number S5VSNG0NB12944W
> ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 512bytes)
> ada0: Command Queueing enabled
> ada0: 953869MB (1953525168 512 byte sectors)
> ses0: pass0,ada0 in 'Slot 00', SATA Slot: scbus0 target 0
> ses0: pass1,cd0 in 'Slot 03', SATA Slot: scbus3 target 0
> GEOM: new disk ada0
> Root mount waiting for: usbus0
> uhub0: 26 ports with 26 removable, self powered
> ugen0.2: <PixArt USB Optical Mouse> at usbus0
> efirtc0: providing initial system time
> start_init: trying /sbin/init
> Enter root password, or ^D to go multi-user
> Password:
> Enter full pathname of shell or RETURN for /bin/sh:
> root@:/ # uname -apKU
> FreeBSD  14.0-CURRENT FreeBSD 14.0-CURRENT #0 d4e8207317c-n254654-d4e8207317c: Tue Apr 12 08:10:00 UTC 2022 root@europa:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 amd64 1400056 1400056
> root@:/ #
> 
> 
> When I go to full multi-user mode I see the same message "no pools available to import" but the machine comes up just fine :
> 
> 
> 
> root@:/ # exit
> Setting hostuuid: 688682c8-76df-3f6f-3af4-b06ebf2eb755.
> Setting hostid: 0xc646c1f3.
> no pools available to import
> Fast boot: skipping disk checks.
> Mounting local filesystems:.
> Autoloading module: acpi_wmi
> AuACPI: Processor \_PR_.CPU2 (ACPI ID 3) ignored
> ACPI: Processor \_PR_.CPU3 (ACPI ID 4) ignored
> ACPI: Processor \_PR_.CPU4 (ACPI ID 5) ignored
> ACPI: Processor \_PR_.CPU5 (ACPI ID 6) ignored
> ACPI: Processor \_PR_.CPU6 (ACPI ID 7) ignored
> ACPI: Processor \_PR_.CPU7 (ACPI ID 8) ignored
> acpi_wmi0: <ACPI-WMI mapping> on acpi0
> acpi_wmi0: cannot find EC device
> acpi_wmi0: Embedded MOF found
> ACPI: \AMW0.WQMO: 1 arguments were passed to a non-method ACPI object (Buffer) (20220331/nsarguments-361)
> acpi_wmi1: <ACPI-WMI mapping> on acpi0
> acpi_wmi1: cannot find EC device
> pci0: driver added
> found-> vendor=0x8086, dev=0xa2ba, revid=0x00
>          domain=0, bus=0, slot=22, func=0
>          class=07-80-00, hdrtype=0x00, mfdev=1
>          cmdreg=0x0002, statreg=0x0010, cachelnsz=0 (dwords)
>          lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
>          intpin=a, irq=16
>          powerspec 3  supports D0 D3  current D0
>          MSI supports 1 message, 64 bit
> pci0:0:22:0: reprobing on driver added
> found-> vendor=0x8086, dev=0xa2a1, revid=0x00
>          domain=0, bus=0, slot=31, func=2
>          class=05-80-00, hdrtype=0x00, mfdev=1
>          cmdreg=0x0002, statreg=0x0000, cachelnsz=0 (dwords)
>          lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
> pci0:0:31:2: reprobing on driver added
> found-> vendor=0x8086, dev=0xa2a3, revid=0x00
>          domain=0, bus=0, slot=31, func=4
>          class=0c-05-00, hdrtype=0x00, mfdev=0
>          cmdreg=0x0003, statreg=0x0280, cachelnsz=0 (dwords)
>          lattimer=0x00 (0 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
>          intpin=a, irq=16
> pci0:0:31:4: reprobing on driver added
> ichsmb0: <Intel Kaby Lake SMBus controller> port 0xf040-0xf05f mem 0xf712a000-0xf712a0ff irq 16 at device 31.4 on pci0
> ioapic0: routing intpin 16 (PCI IRQ 16) to lapic 2 vector 53
> smbus0: <System Management Bus> on ichsmb0
> pci1: driver added
> pci2: driver added
> toloading module: ichsmb
> ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/perl5/5.32/malo0: link state changed to UP
> ch/CORE
> 32-bit compatibility ldconfig path: /usre0: link state changed to DOWN
> r/lib32
> Setting hostname: europa.
> Setting up harvesting: PURE_RDRAND,[CALLOUT],[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,[NET_ETHER],NET_TUN,MOUSE,KEYBOARD,ATTACH,CACHED
> Feeding entropy: .
> Starting Network: lo0 re0.
> lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
>          options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
>          inet6 ::1 prefixlen 128
>          inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
>          inet 127.0.0.1 netmask 0xff000000
>          groups: lo
>          nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>  
> options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
>          ether b0:6e:bf:2e:b7:55
>          inet 172.16.35.57 netmask 0xffffffc0 broadcast 172.16.35.63
>          media: Ethernet autoselect (none)
>          status: no carrier
>          nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
> Starting devd.
> Autoloading moduums0 on uhub0
> ums0: <PixArt USB Optical Mouse, class 0/0, rev 1.10/1.00, addr 1> on usbus0
> le: uhid
> Autoloums0: 3 buttons and [XYZ] coordinates ID=0
> ading module: ums
> Autoloading module: usbhid
> add host 127.0.0.1: gateway lo0 fib 0: route already in table
> add net default: gateway 172.16.35.1
> add host ::1: gateway lo0 fib 0: route already in table
> add net fe80::: gateway ::1
> add net ff02::: gateway ::1
> add net ::ffff:0.0.0.0: gateway ::1
> add net ::0.0.0.0: gateway ::1
> Clearing /tmp.
> Upda
> FreeBSD/amd64 (europa) (ttyu0)
> 
> login:
> 
> FreeBSD/amd64 (europa) (ttyu0)
> 
> login:
> 
> 
> I am baffled. On another machine, a Lenovo laptop I get to the message about "no pools available to import" and the machine hangs there.
> 
> Not a clue why.
> 
> 
> 
> -- 
> Dennis Clarke
> RISC-V/SPARC/PPC/ARM/CISC
> UNIX and Linux spoken
> GreyBeard and suspenders optional
>  
> 
> 
> 


Hi,

Some thoughts to narrow down on possibilities.

How do you specify what pool to boot from?
There are multiple options:
- vfs.root.mountfrom=zfs:...  in /boot/loader.conf
- zpool get all | grep bootfs
- Some cachefile. I think this is legacy. I don't see it on my ZFS anymore.
- A definition in /etc/fstab. But I guess the FS must be mounted first before this can be read.
- And probably other options I don't know about.

And somewhere in the boot messages you should have a line like this. What does it say?
"Trying to mount root from zfs:zrpi4/ROOT/14-2022_03_09"

And what is the output of "gpart show"?

Regards,
Ronald.