From owner-netperf-users@freebsd.org Fri Nov 20 17:55:01 2020 Return-Path: Delivered-To: netperf-users@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A4BCC468D52 for ; Fri, 20 Nov 2020 17:55:01 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from tor1-11.mx.scaleengine.net (tor1-11.mx.scaleengine.net [IPv6:2001:470:1:474::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4Cd42F45jlz4Qr8; Fri, 20 Nov 2020 17:55:01 +0000 (UTC) (envelope-from allanjude@freebsd.org) Received: from [10.1.1.2] (Seawolf.HML3.ScaleEngine.net [209.51.186.28]) (Authenticated sender: allanjude.freebsd@scaleengine.com) by tor1-11.mx.scaleengine.net (Postfix) with ESMTPSA id 451641D89B; Fri, 20 Nov 2020 17:54:55 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.10.3 tor1-11.mx.scaleengine.net 451641D89B Subject: Re: zoo reboot Friday Nov 20 14:00 UTC To: Mateusz Guzik , mike tancsa Cc: Philip Paeps , "Bjoern A. Zeeb" , netperf-admin@freebsd.org, netperf-users@freebsd.org References: <1f8e49ff-e3da-8d24-57f1-11f17389aa84@sentex.net> <2691e1fd-5a27-4dd0-2ef7-b1c06fd4e751@sentex.net> <5A5094BC-D417-4BA6-97E2-7CB522B51368@FreeBSD.org> <4ec6ed6f-b3b4-22ae-e1ec-93a46f3d88ea@sentex.net> <0ddec867-32b5-f667-d617-0ddc71726d09@sentex.net> <5549CA9F-BCF4-4043-BA2F-A2C41D13D955@freebsd.org> From: Allan Jude Message-ID: Date: Fri, 20 Nov 2020 12:54:54 -0500 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Cd42F45jlz4Qr8 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: netperf-users@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "Announcements and discussions related to the netperf cluster. " List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2020 17:55:01 -0000 On 2020-11-20 12:49, Mateusz Guzik wrote: > On 11/20/20, Mateusz Guzik wrote: >> CC'ing Allan Jude >> >> So: >> >> pool: zroot >> state: DEGRADED >> status: One or more devices could not be opened. Sufficient replicas exist >> for >> the pool to continue functioning in a degraded state. >> action: Attach the missing device and online it using 'zpool online'. >> see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q >> scan: scrub repaired 0B in 05:17:02 with 0 errors on Tue Aug 18 15:19:00 >> 2020 >> config: >> >> NAME STATE READ WRITE CKSUM >> zroot DEGRADED 0 0 0 >> mirror-0 DEGRADED 0 0 0 >> 1517819109053923011 UNAVAIL 0 0 >> 0 was /dev/ada0p3 >> ada1 ONLINE 0 0 0 >> mirror-1 ONLINE 0 0 0 >> ada3p3 ONLINE 0 0 0 >> ada4p3 ONLINE 0 0 0 >> mirror-2 ONLINE 0 0 0 >> ada5p3 ONLINE 0 0 0 >> ada6p3 ONLINE 0 0 0 >> special >> mirror-3 ONLINE 0 0 0 >> gptid/db15e826-1a9c-11eb-8d25-0cc47a1f2fa0 ONLINE 0 0 0 >> mfid1p2 ONLINE 0 0 0 >> >> errors: No known data errors >> >> # dmesg | grep ada0 >> Trying to mount root from ufs:/dev/ada0p2 [rw]... >> ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 >> ada0: ACS-2 ATA SATA 3.x device >> ada0: Serial Number WD-WCC137TALF5K >> ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) >> ada0: Command Queueing enabled >> ada0: 2861588MB (5860533168 512 byte sectors) >> ada0: quirks=0x1<4K> >> Mounting from ufs:/dev/ada0p2 failed with error 2; retrying for 3 more >> seconds >> Mounting from ufs:/dev/ada0p2 failed with error 2. >> vfs.root.mountfrom=ufs:/dev/ada0p2 >> GEOM_PART: Partition 'ada0p3' not suitable for kernel dumps (wrong type?) >> ZFS WARNING: Unable to attach to ada0p3. >> ZFS WARNING: Unable to attach to ada0p3. >> ZFS WARNING: Unable to attach to ada0p3. >> ZFS WARNING: Unable to attach to ada0p3. >> ZFS WARNING: Unable to attach to ada0p3. >> ZFS WARNING: Unable to attach to ada0p3. >> >> # gpart show ada0 >> => 34 5860533101 ada0 GPT (2.7T) >> 34 6 - free - (3.0K) >> 40 88 1 freebsd-boot (44K) >> 128 3072000 2 freebsd-swap (1.5G) >> 3072128 5857461000 3 freebsd-zfs (2.7T) >> 5860533128 7 - free - (3.5K) >> >> Running naive dd if=/dev/ada0p3 works, so I don't know what zfs complains >> about. >> > > Also note Philip's point boot partition of 44k. Is that too small now? > Yeah, the very-small freebsd-boot suggests the bootcode has not been updated in a while, so doesn't understand the 'special' vdev concept etc. Likely what you want to do is: gpart delete -i 1 ada0 gpart delete -i 2 ada0 gpart add -t freebsd-boot -s 512k -a 4k ada0 gpart add -t freebsd-swap -a 4k ada0 Which should steal a bit of space from that swap partition to make the freebsd-boot larger. then: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0 to install the updated bootcode. -- Allan Jude