From nobody Fri Dec 02 06:29:10 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NNjhR1jsDz4jRyT for ; Fri, 2 Dec 2022 06:29:11 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NNjhQ6ncmz3QN7 for ; Fri, 2 Dec 2022 06:29:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669962551; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GsCgT3XXdC+58VFohCM+2ncFKl9jSoTwDoxfKj3CzCM=; b=rKnwxgSn9WD3TzsIQsXRU41gch+pbqc4oPSAMw1gdTt0PtRl0UaBAeFTlQx451Of5P/Dl4 sg+iVgaH9tvM+FPBhRbcWWOHBiwicUTIRcHoBos7erpMy5zKaFeqZPMK/Y4izhwS9JjJKG knyhO63teWCTKqNVQqSM1aCMNR3r4UCC/vMLZDqvO3UqpVeLIP7oBOSpsygH7IZqHzBKZw 1ft06u24AqPCMw+roIwQ3bfz0L1LjFmMFOzLajoPA4QGAjgZb3B1PNsuet31kmCybTnOYP 4d73c7PwYZkvz0t5/949VZ260g6qsc2R0SJ7nXli88k6WgxetrlGbewrS/waoA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669962551; a=rsa-sha256; cv=none; b=PHbSJVH7xSrsXTRJXE7HC7OnlYQLUIafL6kwhQ8pb3xC68g5BbOfRZXOAuvPodk5fZysAs s8oWwMZZVZlM427sbm/NwTALM8opBg+lfzGUsAqTN8waUTGTWainJxlambZXrCrVaVcRs/ ClqAwqy82eezE5zkkKDw3lhWVvboz5b5B3O9EHNd0hLs33j3S+2T32D9kcJyGJbUaN3GJr lpznYFZ8XMSFt70y/9VvGakW3YXQ7BKS+2JE2b+huyvUlPgh9mlAt+zW8YuUOXWsIBaQ3R BRKrEU0sCt6GoabymARJRzZV615Az7CVhoGSsmis5Au1xWrnLNKDhW3+QF62kw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NNjhQ5kZcz15ym for ; Fri, 2 Dec 2022 06:29:10 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2B26TAoE044842 for ; Fri, 2 Dec 2022 06:29:10 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2B26TARb044841 for bugs@FreeBSD.org; Fri, 2 Dec 2022 06:29:10 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268116] reboot after readding ZIL device to ZFS Date: Fri, 02 Dec 2022 06:29:10 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: cmiu147@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268116 Bug ID: 268116 Summary: reboot after readding ZIL device to ZFS Product: Base System Version: 13.1-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: cmiu147@gmail.com Hi, i'm facing a weird problem. I tested this on multiple machines with multiple ZFS array (zfs stripe, mirror, raidz1). This problem appears only on FreeBSD 13.1-RELEASE, 13.1-STABLE and 14-CURRE= NT. So, here is the scenario: 1. I create a new log and cache device using the following commands: gpart create -s gpt nvd0 gpart add -a 4k -s 50G -t freebsd-zfs -l log nvd0 gpart add -a 4k -s 50G -t freebsd-zfs -l cache nvd0 zpool add zroot log /dev/gpt/log zpool add zroot cache /dev/gpt/cache=20 2. I reboot the machine, everything works as it should, ZFS devices are displayed correctly.=20 3. I realise that i want to allocate less space for log and more for cache = for example. I remove the log and cache from the pool with the following comman= ds: zpool remove zroot /dev/gpt/cache zpool remove zroot /dev/gpt/log 4. I reboot the machine, to ensure that everything is ok. The machine is booting correctly. 5. I destroy the array and recreate it, then added to the pool using the following commands: gpart destroy -F /dev/nvd0 gpart create -s gpt /dev/nvd0 gpart add -a 4k -s 16G -t freebsd-zfs -l log nvd0 gpart add -a 4k -s 84G -t freebsd-zfs -l cache nvd0 zpool add zroot log /dev/gpt/log zpool add zroot cache /dev/gpt/cache=20 6. Everything is ok, is working for the moment.=20 7. I reboot the system, the bootloader is loading, and the system start to = boot and when trying to mount the log device the system reboots automatically.=20 8. I tried to remove only the cache device from the pool using the command zpool remove zroot /dev/gpt/cache 9. I reboot the system, same result, the system reboots. 10. Getting back to usb drive, import the zfs, remove the log, add the cach= e. The system booting normally using only the cache device. 11. I tried using different ssd, separate log and cache to different psychi= cal=20 devices, same result. 12. I made a fresh install of freebsd 14-CURRENT and reproduce all the steps above... the system reboots exactly the same only with log device attached. Here is the kernel panic message i got: VERIFY0(0 =3D=3D nvlist_lookup_uint64(nvl, name, &rv)) failed (0 =3D=3D 22) Is there a workaround to fix this? Thank you! --=20 You are receiving this mail because: You are the assignee for the bug.=