From nobody Mon Sep 26 18:48:33 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 4MbsGT2bXTz4cT63 for ; Mon, 26 Sep 2022 18:48:33 +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 4MbsGT0h2gz3Sjb for ; Mon, 26 Sep 2022 18:48:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 4MbsGS6gRgzrwN for ; Mon, 26 Sep 2022 18:48:32 +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 28QImWI3037103 for ; Mon, 26 Sep 2022 18:48:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 28QImWvg037102 for bugs@FreeBSD.org; Mon, 26 Sep 2022 18:48:32 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 266635] gstripe fails depending on GPT label content Date: Mon, 26 Sep 2022 18:48:33 +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-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd-bugzilla@umpquanet.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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664218113; 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=B1J3imdkv3wR2AqiIZUSPtUIAIOy3cdyHAt0Epgt0to=; b=XMh2Qoez9PhYLFWRQy8TGGgmLbgkjDHjLdLPzdyQ4v8cwZVNA9iuPYmUv41hrnyF/a5G85 juj2ybqE0cqUZn9JtO5f6keaRpsWYW1KqqW15a4QrbI8gN2I17DVKIbkVKvRJsemC5J74J BojCvaUJKuS62H2vkeRKljRpfoCgF4t7HKUDUtMPDxag4rshuQGdGdwZ0zmNijKj/4hv9v Sdwo1QqUDIHL1afLGYV/r7TMI+zZ3n5tGZW+UXjmLpKTeZjxPKpsStTz0Y6SAIP48jnKIb 2vOnR6YsraaIkwfuSV1gwFWeHmakvzbQ6uaxpMkhdgLLw4aDvfPXqWRMLjH13g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664218113; a=rsa-sha256; cv=none; b=huiI+xR6wJjlSD4DcIcML91unfEt/7rfqZnG9f8USPRGOe9gPF8488CVtcrK8wEhyZXVbH pddhTymEZmSB3snbPCC6lgStBdE0ao62niyx8FArArTbbFKzK/s8KCga4BffbxrnXSgC1X JolZZuZCU2FcDm0hpoVtiwOd0ln+VmtgvFnqkzWdr+G1ON38GilM5lrzOkN39QQYQu8YJ7 eCEonnYkvlOLUsJLzbQz67tDry/cPTSZVDy5TPFhJDJBN586tNbiTUTuNI9FuxdO7EtRlS eFCR209RkCVOyi8KzPRDoAcjO2dzw/yfFUSg//HCosTqiW0/T1MpTVBIotDdVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266635 Bug ID: 266635 Summary: gstripe fails depending on GPT label content Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: freebsd-bugzilla@umpquanet.com gstripe(8) sometimes does not recognize partition labels. This code creates a stripe based on two stripe sets, which differ only in t= he last element. In both cases, the last GPT label refers to the same physical partition on /dev/da11, namely da11p3. If the GPT label `swap11` is used, = the stripe is created successfully. But when the GPT label 'swap-C8338CHZ' is used, 'gstripe label' returns success, but the stripe is marked as DOWN, wi= th only three of the four consumer devices shown as online. Changing the name of the partition to 'swap11' allows the stripe to be crea= ted successfully. I'm happy to provide additional info on request. FreeBSD 13.1-STABLE #0 stable/13-n251787-8e6cfc632cf6: Wed Jul 13 15:06:25 = PDT 2022 root@jimsdesk:/usr/obj/usr/src/amd64.amd64/sys/GENERIC Thank you! #!/usr/bin/env bash set -e # Two stripe sets, where the last one $4 differs: stripeSetA=3D"gpt/swap8 gpt/swap9 gpt/swap10 gpt/swap-C8338CHZ" stripeSetB=3D"gpt/swap8 gpt/swap9 gpt/swap10 gpt/swap11" gstripe destroy test || true set -- $stripeSetA gpart modify -l "${4/gpt\/}" -i3 da11 gpart show -l da11 gstripe destroy test || true ( cd /dev && ls -l $@ ) gstripe label -h test $@ && printf 'Stripe created: test\n' gstripe list test gstripe destroy test && printf 'Stripe destroyed: test\n' set -- $stripeSetB gpart modify -l "${4/gpt\/}" -i3 da11 gpart show -l da11 gstripe destroy test && printf 'Stripe destroyed: test\n' ( cd /dev && ls -l $@ ) gstripe label -h test $@ && printf 'Stripe created: test\n' gstripe list test printf 'Finished.\n' Output: gstripe: No such device: test. da11p3 modified =3D> 6 2441609205 da11 GPT (9.1T) 6 256 1 boot-C8338CHZ (1.0M) 262 2441084661 2 zfs-C8338CHZ (9.1T) 2441084923 524288 3 swap-C8338CHZ (2.0G) gstripe: No such device: test. crw-r----- 1 root operator 0x16b Sep 26 11:39 gpt/swap-C8338CHZ crw-r----- 1 root operator 0x1c1 Sep 26 11:36 gpt/swap10 crw-r----- 1 root operator 0x1c5 Sep 26 11:31 gpt/swap8 crw-r----- 1 root operator 0x1c3 Sep 26 11:31 gpt/swap9 Stripe created: test Geom name: test State: DOWN Status: Total=3D4, Online=3D3 Type: AUTOMATIC Stripesize: 65536 ID: 2547884802 Consumers: 1. Name: gpt/swap8 Mediasize: 2147483648 (2.0G) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 9998683844608 Mode: r0w0e0 Number: 0 2. Name: gpt/swap9 Mediasize: 2147483648 (2.0G) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 9998683844608 Mode: r0w0e0 Number: 1 3. Name: gpt/swap10 Mediasize: 2147483648 (2.0G) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 9998683844608 Mode: r0w0e0 Number: 2 Stripe destroyed: test da11p3 modified =3D> 6 2441609205 da11 GPT (9.1T) 6 256 1 boot-C8338CHZ (1.0M) 262 2441084661 2 zfs-C8338CHZ (9.1T) 2441084923 524288 3 swap11 (2.0G) gstripe: No such device: test. crw-r----- 1 root operator 0x1c1 Sep 26 11:39 gpt/swap10 crw-r----- 1 root operator 0x1ca Sep 26 11:39 gpt/swap11 crw-r----- 1 root operator 0x1c5 Sep 26 11:39 gpt/swap8 crw-r----- 1 root operator 0x1c3 Sep 26 11:39 gpt/swap9 Stripe created: test Geom name: test State: UP Status: Total=3D4, Online=3D4 Type: AUTOMATIC Stripesize: 65536 ID: 1503218330 Providers: 1. Name: stripe/test Mediasize: 8589672448 (8.0G) Sectorsize: 4096 Stripesize: 65536 Stripeoffset: 0 Mode: r0w0e0 Consumers: 1. Name: gpt/swap8 Mediasize: 2147483648 (2.0G) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 9998683844608 Mode: r0w0e0 Number: 0 2. Name: gpt/swap9 Mediasize: 2147483648 (2.0G) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 9998683844608 Mode: r0w0e0 Number: 1 3. Name: gpt/swap10 Mediasize: 2147483648 (2.0G) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 9998683844608 Mode: r0w0e0 Number: 2 4. Name: gpt/swap11 Mediasize: 2147483648 (2.0G) Sectorsize: 4096 Stripesize: 0 Stripeoffset: 9998683844608 Mode: r0w0e0 Number: 3 Finished. --=20 You are receiving this mail because: You are the assignee for the bug.=