From owner-freebsd-fs@freebsd.org Tue Oct 25 11:37:09 2016 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B5567C1F736 for ; Tue, 25 Oct 2016 11:37:09 +0000 (UTC) (envelope-from claudiu.ciurdariu@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B1606A0 for ; Tue, 25 Oct 2016 11:37:09 +0000 (UTC) (envelope-from claudiu.ciurdariu@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id x79so217882080lff.0 for ; Tue, 25 Oct 2016 04:37:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=43fdUDISh0hvxwJEukKJ3G2jsoWc8opvLbMZm3xa0Uo=; b=VgjRSuK+4T4Hw1+Wy37nLXs56z6Jz8S/1rtZQGyauNkQ3UTwg4z+dnmv14kTRtJRiu K+RCJhg+G3mZ9sc4wwXtB7xdCVDeeG21pCTnaPFNU/7Zy4f/IcDLDUeWZxyqay+5omDb PyAOIzkTU0O6UTF7juKgvpK0IuF3TtAw4PEOnwrqeZA+DEPZgA0mw3LVYXXq8J39JOKZ 6RpRUZU/7nj9yC22EuzQf/1jSCx1kEBDQD6gQNzhxKA7rbtdHOQgWVXNRumNrTCiZKpD 5GIoMFj1b3lh8qkBJ9CAgTvQtXKA3eKKLXondxq9ZqEhY31P/9n4oV0UVoneuEVMI4pb SkNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=43fdUDISh0hvxwJEukKJ3G2jsoWc8opvLbMZm3xa0Uo=; b=Oi77PxMlC1TEBGLY1Kxi2mr6PsqscF2izpiGIITzL+bIAguKc08QdUPKD6cm2kcbvL EMjFwe2sywJWmuiu3KkLFpprNory7FbIM2/bcrQIJqX/1kNXOj13RDvKxxKpar3tWimE kr8TMVvY/hMmF2IvBJng/ZKxoTI8Y7e9C3JLK9pXc/XX2pD+dEarlAvFsgPeIomK9S1N s/Xdkv3ASdznLW2du4KO6KALo+qfatWPeTMFHoKFnH6mm2X8MKsdEPpHxCY6nWG0S3cO 1tcpVv0AloZC6B34TvINyNDFwefkOB/AYm4oKy1uNtey7Aq/Lmi3u1a4qJgiCTPh2YGB /hSw== X-Gm-Message-State: ABUngvfGzJcVBaW+ETVUAhRrklsTvNyTymGyh2AaAQTZJBcVZOko62ygL9xnR35TcVdlhNMcN6WrOuVN0yo54w== X-Received: by 10.25.76.130 with SMTP id z124mr5710939lfa.53.1477395426625; Tue, 25 Oct 2016 04:37:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.127.150 with HTTP; Tue, 25 Oct 2016 04:37:06 -0700 (PDT) From: Claudiu Ciurdariu Date: Tue, 25 Oct 2016 12:37:06 +0100 Message-ID: Subject: FreeBSD 11 boot problem in a UEFI ZFS-root with 4K native HDDs setup To: freebsd-fs@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Oct 2016 11:37:09 -0000 Trying to boot FreeBSD 11.0 RELEASE in UEFI mode after installing the OS with root on a 4K native 2-disk ZFS mirror and getting the error below: >> FreeBSD EFI boot block Loader path: /boot/loader.efi Initializing modules: ZFS UFS Probing 14 block devices...........*.+ done ZFS found the following pools zroot UFS found no partitions ZFS: i/o error - all block copies unavailable ZFS: can't read MOS of pool zroot ZFS: i/o error - all block copies unavailable ZFS: can't read MOS of pool zroot Failed to load '/boot/loader.efi' panic: No bootable partitions found! The partition layout looks like this: # gpart show => 6 488378629 ada0 GPT (1.8T) 6 200 1 efi (800K) 206 50 - free - (200K) 256 488378368 2 freebsd-zfs (1.8T) 488378624 11 - free - (44K) => 6 488378629 ada1 GPT (1.8T) 6 200 1 efi (800K) 206 50 - free - (200K) 256 488378368 2 freebsd-zfs (1.8T) 488378624 11 - free - (44K) # gpart list Geom name: ada0 modified: false state: OK fwheads: 16 fwsectors: 63 last: 488378634 first: 6 entries: 128 scheme: GPT Providers: 1. Name: ada0p1 Mediasize: 819200 (800K) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 24576 Mode: r0w0e0 rawuuid: 1f029d6d-99f4-11e6-819b-001e67e6cc2f rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b label: efiboot0 length: 819200 offset: 24576 type: efi index: 1 end: 205 start: 6 2. Name: ada0p2 Mediasize: 2000397795328 (1.8T) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 1048576 Mode: r1w1e1 rawuuid: 1f496f99-99f4-11e6-819b-001e67e6cc2f rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: zfs0 length: 2000397795328 offset: 1048576 type: freebsd-zfs index: 2 end: 488378623 start: 256 Consumers: 1. Name: ada0 Mediasize: 2000398909440 (1.8T) Sectorsize: 4096 Mode: r1w1e2 Geom name: ada1 modified: false state: OK fwheads: 16 fwsectors: 63 last: 488378634 first: 6 entries: 128 scheme: GPT Providers: 1. Name: ada1p1 Mediasize: 819200 (800K) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 24576 Mode: r0w0e0 rawuuid: 1faf567b-99f4-11e6-819b-001e67e6cc2f rawtype: c12a7328-f81f-11d2-ba4b-00a0c93ec93b label: efiboot1 length: 819200 offset: 24576 type: efi index: 1 end: 205 start: 6 2. Name: ada1p2 Mediasize: 2000397795328 (1.8T) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 1048576 Mode: r1w1e1 rawuuid: 1fc2d874-99f4-11e6-819b-001e67e6cc2f rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: zfs1 length: 2000397795328 offset: 1048576 type: freebsd-zfs index: 2 end: 488378623 start: 256 Consumers: 1. Name: ada1 Mediasize: 2000398909440 (1.8T) Sectorsize: 4096 Mode: r1w1e2 And the ZFS dataset: # zfs list NAME USED AVAIL REFER MOUNTPOINT zroot 301M 1.76T 96K /mnt/zroot zroot/ROOT 299M 1.76T 96K none zroot/ROOT/default 299M 1.76T 299M /mnt zroot/tmp 128K 1.76T 128K /mnt/tmp zroot/usr 384K 1.76T 96K /mnt/usr zroot/usr/home 96K 1.76T 96K /mnt/usr/home zroot/usr/ports 96K 1.76T 96K /mnt/usr/ports zroot/usr/src 96K 1.76T 96K /mnt/usr/src zroot/var 588K 1.76T 96K /mnt/var zroot/var/audit 96K 1.76T 96K /mnt/var/audit zroot/var/crash 96K 1.76T 96K /mnt/var/crash zroot/var/log 108K 1.76T 108K /mnt/var/log zroot/var/mail 96K 1.76T 96K /mnt/var/mail zroot/var/tmp 96K 1.76T 96K /mnt/var/tmp The HDDs are 2 Tohsiba 4Kn spinning disks: # camcontrol devlist at scbus4 target 0 lun 0 (ses0,pass0) at scbus7 target 0 lun 0 (ada0,pass1) at scbus8 target 0 lun 0 (ada1,pass2) at scbus11 target 0 lun 0 (ses1,pass3) at scbus12 target 0 lun 0 (pass4,cd0) at scbus12 target 0 lun 1 (da0,pass5) The same setup on a Virtualbox VM is working fine. Any idea what the issue might be? Thanks, Claudiu