Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2022 09:20:17 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 263388] zfs: zpool list -v adds -0 suffix and misaligns columns
Message-ID:  <bug-263388-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263388-227>