From owner-freebsd-current@freebsd.org Mon Jul 10 21:14:44 2017 Return-Path: Delivered-To: freebsd-current@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 C793FDB1171 for ; Mon, 10 Jul 2017 21:14:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8EA1B7859F for ; Mon, 10 Jul 2017 21:14:44 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dUflR-00066H-Vu; Mon, 10 Jul 2017 22:58:42 +0200 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes To: "Toomas Soome" , "Boris Samorodov" Cc: freebsd-current@freebsd.org Subject: Re: [SOLVED] [memstick install] auto-zfs error References: <3f6e5da8-f818-eef2-5384-912d6879cd8e@passap.ru> <5F653933-EA3A-4DAD-93F3-A3C8A7016A30@me.com> Date: Mon, 10 Jul 2017 22:58:37 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 9e5d90b7ad51a80bf663b69d2bb8c379 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Jul 2017 21:14:44 -0000 On Mon, 10 Jul 2017 21:53:11 +0200, Boris Samorodov wro= te: > 10.07.2017 22:21, Toomas Soome =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >> >>> On 10. juuli 2017, at 21:24, Boris Samorodov wrote:= >>> >>> 10.07.2017 21:05, Allan Jude =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>> On 2017-07-09 14:40, Boris Samorodov wrote: >>>>> 08.07.2017 18:56, Boris Samorodov =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >>>>>> Hi All, >>>>>> >>>>>> I tied to install a new FreeBSD-amd-12 system from official USB >>>>>> installation memstick.img. Auto-UFS (GPT) installs fine and the = >>>>>> system >>>>>> boots fine. However, ZFS-Auto install succeeds, but is not loaded= . >>>>>> At the very beginning it gives something like "gpt sector XXXX = >>>>>> error, >>>>>> gpt sector 1 error, can't find zroot..." >>>>>> >>>>>> Is it a known error / should I give more (precise) errors? >>>>>> >>>>>> I tried two recent images with the same result: >>>>>> ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/12.0/FreeB= SD-12.0-CURRENT-amd64-20170703-r320599-memstick.img >>>>>> ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/ISO-IMAGES/12.0/FreeB= SD-12.0-CURRENT-amd64-20170626-r320360-memstick.img >>>>> >>>>> It turned out GPT and zfs are not usable at this machine. >>>>> MBR / ZFS works fine. >>>>> >>>>> I'll stick with that. >>>> >>>> What type of machine is it? >>> >>> It's a PC circa 2009 with MB ASUS P5QL/EPU: >>> --- >>> CPU: Intel(R) Core(TM)2 Duo CPU E7400 @ 2.80GHz (2799.52-MHz >>> K8-class CPU) >>> Origin=3D"GenuineIntel" Id=3D0x1067a Family=3D0x6 Model=3D0x17 = Stepping=3D10 >>> >>> >>> Features=3D0xbfebfbff >>> >>> >>> >>> Features2=3D0xc08e3bd >>> >>> AMD Features=3D0x20100800 >>> AMD Features2=3D0x1 >>> VT-x: HLT,PAUSE >>> TSC: P-state invariant, performance statistics >>> real memory =3D 4294967296 (4096 MB) >>> avail memory =3D 3324891136 (3170 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) >>> --- >>> >>> -- >>> WBR, bsam >> >> Of course it really can not be that the BIOS has something against = >> combination of GPT+ZFS, but this combination may trigger some sort of= = >> bug/misbehavior. I have seen some pretty weird issues and have work i= n = >> process to have a bit more fool proof approach, but I haven't had tim= e = >> yet to finalize it properly. > > Yep, UFS+GPT works fine here. > > Just for archieves: errors for ZFS + GPT > --- > gptzfsboot: error 128 lba 3907027040 > gptzfsboot: error 128 lba 1 > gptzfsboot: no zfs pools located, can't boot > --- > > The disk is: > --- > 512 # sectorsize > 2000397852160 # mediasize in bytes (1.8T) > 3907027055 # mediasize in sectors > 0 # stripesize > 0 # stripeoffset > 3876018 # Cylinders according to firmware. > 16 # Heads according to firmware. > 63 # Sectors according to firmware. > WD-WMAUR0112162 # Disk ident. > Not_Zoned # Zone Mode > --- > > UEFI is not available at the motherboard. > >> Namely, what I have found is that in some systems the INT13 ah=3D08 c= an = >> result with unexpected results - error from command reported or disk = = >> count not reported etc - something not really expected. It also may = >> have to do about what other devices are there. And also if the system= = >> has plain BIOS or BIOS emulated on UEFI. > This looks similar to: = https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D144234 Please add your information if you think it is the same issue. Or try th= e = workaround and see if it helps. Regards, Ronald.