Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zpool get attempts to look at non-vdevs resulting in errors #16974

Open
RichardBelzer opened this issue Jan 22, 2025 · 1 comment
Open

zpool get attempts to look at non-vdevs resulting in errors #16974

RichardBelzer opened this issue Jan 22, 2025 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@RichardBelzer
Copy link

System information

Type Version/Name
Distribution Name Debian
Distribution Version 12.9
Kernel Version 6.1
Architecture AMD64
OpenZFS Version 2.2.7

Describe the problem you're observing

I currently have a resilver operation in progress:

root@server:~# zpool status
  pool: tank
 state: DEGRADED
status: One or more devices is currently being resilvered.  The pool will
        continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Wed Jan 22 03:11:14 2025
        63.3T / 63.3T scanned, 18.6T / 63.3T issued at 1.16G/s
        3.10T resilvered, 29.37% done, 10:56:17 to go
config:

        NAME                       STATE     READ WRITE CKSUM
        tank                       DEGRADED     0     0     0
          raidz2-0                 DEGRADED     0     0     0
            drive1                 ONLINE       0     0     0
            drive2                 ONLINE       0     0     0
            drive3                 ONLINE       0     0     0
            replacing-3            DEGRADED     0     0     0
              7483274857294629346  UNAVAIL      0     0     0  was /dev/drive4/old
              drive4               ONLINE       0     0     0  (resilvering)
            drive5                 ONLINE       0     0     0
            drive6                 ONLINE       0     0     0

While resilvering, I decided to check the pool properties:

root@server:~# zpool get ashift tank all-vdevs
NAME       PROPERTY  VALUE   SOURCE
root-0     ashift    0       -
raidz2-0   ashift    12      -
drive1   ashift    12      -
drive2   ashift    12      -
drive3   ashift    12      -
cannot get vdev property name from replacing-3 in tank: invalid argument for this pool operation
cannot get vdev property ashift from replacing-3 in tank: invalid argument for this pool operation
7483274857294629346  ashift    12      -
drive4   ashift    12      -
drive5   ashift    12      -
drive6   ashift    12      -

The command attempted to look at replacing-3, which is not a valid vdev, resulting in "invalid argument" errors

Describe how to reproduce the problem

Run zpool get ashift tank all-vdevs while replacing a drive

@RichardBelzer RichardBelzer added the Type: Defect Incorrect behavior (e.g. crash, hang) label Jan 22, 2025
@amotin
Copy link
Member

amotin commented Jan 22, 2025

IIRC the replacing-3 internally is actually a temporary mirror vdev. But it is a good question what does it miss to cause the errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)
Projects
None yet
Development

No branches or pull requests

2 participants