From owner-freebsd-hackers@freebsd.org Sun Jul 16 08:59:41 2017 Return-Path: Delivered-To: freebsd-hackers@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 CDBE4BFA42D for ; Sun, 16 Jul 2017 08:59:41 +0000 (UTC) (envelope-from nbari@codigo.io) Received: from mail-wm0-x22a.google.com (mail-wm0-x22a.google.com [IPv6:2a00:1450:400c:c09::22a]) (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 72B5F72A2D for ; Sun, 16 Jul 2017 08:59:41 +0000 (UTC) (envelope-from nbari@codigo.io) Received: by mail-wm0-x22a.google.com with SMTP id 62so52306626wmw.1 for ; Sun, 16 Jul 2017 01:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codigo.io; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ilgNcMzLD6ce3a7cHo3HoJ9Jdkjr2ccwcMQ/AUmwSwM=; b=XwNwSJM7KlxfXf2uzS2nNDItUcExDlvSgO0L8JpWT/8SWowce6Nez9qyQVUpLUGUeY PT7qEIY6UhUw/2n0H7NqHGXps3oQ6y8faP8LAKzUZzv0yPnQVsx9HV48oB8DfgPqK2rL cDsTCtg3qbJEZVcdVIXtYjPN9rwS6P8RiahIS03RuSSxjAeY/tJgll3/9DLr3HTm1qGD /BJBO1Xd0t/RT3XsSyM7Pm15PYDvw1bLx3gATo1HNRZWEuhcOyEvt5MMPvPzJyKEfKIw mXFLCYi5Q99Netw9h8IdWIYkS/Wtq0ix7q4P5jvSrIApmG8MsCvIdGVahwR5zTze+MZ8 z2aQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tequila.io; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=ilgNcMzLD6ce3a7cHo3HoJ9Jdkjr2ccwcMQ/AUmwSwM=; b=MRJ2Ag2whrdUduJ+eKra+MGIm0v12SYfR/mvskFfhXVLK9c9HcVVo7mygWXgQSBGwX FI2FyluRXvTIS7NIxvCnWyZlDPYEPTqVXE1VESQazMk8ezomeVD2ghR90Cqow0ETr8pu DdusJGUrA49InUCw7qkvphAMLnP0vG1Qi1UgEPijlaWbQDqGVakNj+gUXZwktkMaXVLQ hBsx7B32zWrnOc0J9gItGi/9jX92JPKSQmFXhwrHN5/AekyDblumik4VDig/Wcn/s7/Y K1EiJNv/Da3uZqX9LQIFkWx6w16pQqmR6tP6fgsdDSa1pL4wgXTHELPt2wZXZtJTMjqk JeEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=ilgNcMzLD6ce3a7cHo3HoJ9Jdkjr2ccwcMQ/AUmwSwM=; b=YtqlO3WK0tBu0gbycw56Dl8iB/aIJSgNmMGMonvIca/PvecmF5u38rBpelagGYHBan 5PMZmowh41nfbpeOCxfo4FP+wC4rsTAoMPSLRS6nPXyQG+bJnKzsLy5dYuryguW0R9eH Qwa1D5YLKmt/9tedYmlEE9NBM7+D43evsLMfqAyKZETed8t50aSIGuK186Q+m0E/GU7W 5qqGyVpvqcZZOVqVd0QeU3N2nE/m8RXhuNzIc9v++CqPuKDWhAf5ile5sIF/FYP/sqgo Gd1DUAsKZy3VqKGPPPRMLbGq8MW/ria/GcRl14MSe0KbOD2tbSMBkEReS4T72p7cPwlz YZgw== X-Gm-Message-State: AIVw111BTpR6tEjTm4sqJzZKXDpYhc2UNI+UhLK5K/SH4DJe+fU26/lT J8OqjUGLRAEqWNDJVCURrjXMwyU6NGrghFxsYg== X-Received: by 10.28.113.21 with SMTP id m21mr886559wmc.80.1500195578926; Sun, 16 Jul 2017 01:59:38 -0700 (PDT) MIME-Version: 1.0 Sender: nbari@codigo.io Received: by 10.223.146.162 with HTTP; Sun, 16 Jul 2017 01:59:38 -0700 (PDT) X-Originating-IP: [91.64.160.139] In-Reply-To: References: From: Nicolas Embriz Date: Sun, 16 Jul 2017 10:59:38 +0200 X-Google-Sender-Auth: gtbANgTjR3_LeWWhS9q5hx5wcEw Message-ID: Subject: Re: GEOM: ada0: the secondary GPT header is not in the last LBA or random: unblocking device. when using more than 2 cores To: Warner Losh Cc: "freebsd-hackers@freebsd.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2017 08:59:41 -0000 Hi, this is the only output I have from AWS (system log), important to mention that this only happens when using more than 2 cores (t2.medium) for example, when using 1 core it works. Output: / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ /boot/kernel/kernel text=3D0x6876= f0 | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / data=3D0x76348+0x37d168= - \ | syms=3D[0x8+0xa1e38/ - +0x8+0x9d58c\ | / ] - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ /boot/kernel/zfs.ko | / - \ | / - \ | / size 0x2e8938 at 0xfba000 loading required module 'opensolaris' - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / - \ | / /boot/kernel/opensolaris.ko size 0xaab0 at 0x12a3000 Booting [/boot/kernel/kernel]... - \ | / - \ | / - \ | / - \ Copyright (c) 1992-2017 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 11.1-PRERELEASE #0 r321034: Sat Jul 15 20:44:15 UTC 2017 devops@fabrik-de1.127.network:/fabrik/aws/host/obj/usr/src/sys/FABRIKAW= S amd64 FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM 4.0.0) VT: init without driver. XEN: Hypervisor version 4.2 detected. CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz (2400.05-MHz K8-class CPU) Origin=3D"GenuineIntel" Id=3D0x306f2 Family=3D0x6 Model=3D0x3f Steppi= ng=3D2 Features=3D0x1783fbff Features2=3D0xfffa3203 AMD Features=3D0x28100800 AMD Features2=3D0x21 Structured Extended Features=3D0x728 XSAVE Features=3D0x1 Hypervisor: Origin =3D "XenVMMXenVMM" real memory =3D 4294967296 (4096 MB) avail memory =3D 4128489472 (3937 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) ioapic0: Changing APIC ID to 1 MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-47 on motherboard random: entropy device external interface random: registering fast source Intel Secure Key RNG random: fast provider: "Intel Secure Key RNG" nexus0 aesni0: on motherboard cryptosoft0: on motherboard acpi0: on motherboard acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) cpu0: on acpi0 cpu1: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 62500000 Hz quality 950 attimer0: port 0x40-0x43 irq 0 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 atrtc0: port 0x70-0x71 irq 8 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 isab0: at device 1.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xc100-0xc10f at device 1.1 on pci0 ata0: at channel 0 on atapci0 ata1: at channel 1 on atapci0 pci0: at device 1.3 (no driver attached) vgapci0: mem 0xf0000000-0xf1ffffff,0xf3000000-0xf3000fff at device 2.0 on pci0 vgapci0: Boot video device xenpci0: port 0xc000-0xc0ff mem 0xf2000000-0xf2ffffff irq 28 at device 3.0 on pci0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 uart0: console (9600,n,8,1) xenpv0: on motherboard granttable0: on xenpv0 xen_et0: on xenpv0 Event timer "XENTIMER" frequency 1000000000 Hz quality 950 Timecounter "XENTIMER" frequency 1000000000 Hz quality 950 xenstore0: on xenpv0 evtchn0: on xenpv0 privcmd0: on xenpv0 debug0: on xenpv0 ZFS NOTICE: Prefetch is disabled by default if less than 4GB of RAM is present; to enable, add "vfs.zfs.prefetch_disable=3D0" to /boot/loader.conf. ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec nvme cam probe device init xenballoon0: on xenstore0 xctrl0: on xenstore0 xs_dev0: on xenstore0 xenbusb_front0: on xenstore0 xn0: at device/vif/0 on xenbusb_front0 xn0: Ethernet address: 0a:9a:53:0d:ff:6b xenbusb_back0: on xenstore0 xn0: backend features: feature-sg feature-gso-tcp4 xbd0: 18432MB at device/vbd/768 on xenbusb_front0 xbd0: attaching as ada0 SMP: AP CPU #1 Launched! Trying to mount root from zfs:zroot/ROOT/default []... GEOM: ada0: the secondary GPT header is not in the last LBA. On Sun, Jul 16, 2017 at 9:49 AM, Nicolas Embriz wrote: > Hi, > > I am trying this in Amazon AWS, the problem is that I can=E2=80=99t do a = dmesg > or get more logs because when choosing a t2.medium or any instance > with more than 2 cores, the image gets stuck on the boot process and > therefore I can=E2=80=99t login. > > I have a working image with FreeBSD 11.0-stable: > https://github.com/fabrik-red/images/releases/download/11.0/disk.tar.gz > > Using this kernel: > https://github.com/fabrik-red/images/blob/11.0/fabrik.kernel and made > using this script: > https://github.com/fabrik-red/images/blob/11.0/fabrik.sh > > I know is probably not useful this info but so far the only difference > is that I updated the sources and now while doing the same thing with > FreeBSD 11.1-prelrelease I am getting this strange behaviour. > > When using only one single cpu core the image works but when using > more thant 2 cores the image just don=E2=80=99t boot. > > Any ideas of what else I may add so that I could get more info at > least on the boot screen that is the only thing I get from AWS while > booting? > > Thanks in advance. > > Regards. >