From nobody Mon Apr 18 09:20:17 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 2AE6811E1EC7 for ; Mon, 18 Apr 2022 09:20:18 +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 4KhhH569lxz4vVY for ; Mon, 18 Apr 2022 09:20:17 +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 B3CE07C43 for ; Mon, 18 Apr 2022 09:20:17 +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 23I9KHco016378 for ; Mon, 18 Apr 2022 09:20:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 23I9KH1n016377 for bugs@FreeBSD.org; Mon, 18 Apr 2022 09:20:17 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 263388] zfs: zpool list -v adds -0 suffix and misaligns columns Date: Mon, 18 Apr 2022 09:20:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 13.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jfc@mit.edu 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=1650273617; 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=onr3pIZT+0FdTRQ3zjkIgxyZgyT8KGJDkBFLCmbklkw=; b=dT/4WJg/z//k1kKErIr3HQM3Kp7FeYJNaoWdqRvPFwWYV636ypn2Lw32rAmwts1zwnIRkx Co7hoLqwP/BNvcf+ttehtf65jPth3ZUgO/zr3ISicCiJJKCwjseO9PxW9qLC2Txvz01cdL Ir/V/ZiR2eVIAmhXpaHkCtycqLpygY8IzbnlbKbluf8MoEdh/vhu/76KWXuWpxXBkSkSGQ zD2dzXwUzTin91K74gKL+3YiNCibLc+pboI7Mg3MrVbRF7d1f7eyyvaXx9vJtgcovuJwZ6 MM+91wQtSyCkJUZgG9QNcHTJd/qs1bjYD4Ucd0zruT5gyEEQrs2W/vFxPPQZ0w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650273617; a=rsa-sha256; cv=none; b=c0C6akLWETVQOqU/mwuAtvv80csPoJ5BjzoAzdsjEl3NA8OaMBMw6IT7HdylqKiJqKLjox vCZ4P8EhEclV7t01mal2rPUtTv3NofEZWLhyzVdmUFh2lxjepbMlBxx79OwqG4qhSGeLo8 8ayuDxHzn4cqHAZA13b39tQgKIj1m579UcLOtq/w1Mts4kcWzMs2mmwgz+5b3r4Uam06sR X/FHfHLMFk8Icezaa3Lr6r4GAWjP/oaQamHj3cIlCbhgRRzN6OBbwXYS3dA83FV50BViUE MUGuGKj+xy9B79zd2/v1UkdvEQ5I9Xs2yXdovp0tRC5On34BrV+twIIjlTjFug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263388 Bug ID: 263388 Summary: zfs: zpool list -v adds -0 suffix and misaligns columns Product: Base System Version: 13.1-STABLE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: jfc@mit.edu When I run zpool list -v some of my pools have a "-0" suffix after the "rai= dz2" or "mirror" type string and the remaining columns of that row are misaligne= d. I think the combination of factors to trigger this is 1. Have a raidz vdev and a cache vdev in the same pool (not seen with single data disk, with or without cache). 2. Be running 13.1 (behavior not present on 12.3). Is "-0" a zero-based index into the non-cache vdevs? If so, it should be omitted when there is only one non-cache vdev. # zpool list -v NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP=20= =20=20 HEALTH ALTROOT data 36.4T 18.6T 17.8T - - 25% 51% 1.15x=20= =20=20 ONLINE - raidz2-0 36.4T 18.6T 17.8T - - 25% 51.2% -=20= =20=20 ONLINE ada0 - - - - - - - -=20= =20=20 ONLINE ada1 - - - - - - - -=20= =20=20 ONLINE ada2 - - - - - - - -=20= =20=20 ONLINE ada3 - - - - - - - -=20= =20=20 ONLINE cache - - - - - - - - - ada4p5 150G 51.6G 98.4G - - 0% 34.4% -=20= =20=20 ONLINE zroot 528G 20.7G 507G - - 5% 3% 1.00x=20= =20=20 ONLINE - ada4p4 528G 20.7G 507G - - 5% 3.91% -=20= =20=20 ONLINE $ zpool list -v NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP=20= =20=20 HEALTH ALTROOT data 1.81T 1.10T 732G - - 27% 60% 1.02x=20= =20=20 ONLINE - mirror-0 1.81T 1.10T 732G - - 27% 60.5% -=20= =20=20 ONLINE da0 - - - - - - - -=20= =20=20 ONLINE da1 - - - - - - - -=20= =20=20 ONLINE cache - - - - - - - - - nvd0p5 40.0G 37.5G 2.53G - - 0% 93.7% -=20= =20=20 ONLINE fast 888G 437G 451G - - 4% 49% 1.00x=20= =20=20 ONLINE - da7 888G 437G 451G - - 4% 49.2% -=20= =20=20 ONLINE cache - - - - - - - - - nvd0p7 20.0G 17.1G 2.91G - - 0% 85.4% -=20= =20=20 ONLINE --=20 You are receiving this mail because: You are the assignee for the bug.=