-
Notifications
You must be signed in to change notification settings - Fork 499
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
NAS-127511 / 25.04 / Fix zpool status for reporting used spare disks correctly #14262
Conversation
Can we have integration tests for this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zpool status
will resolve the vdev devices so we need to remove the resolve_*
methods accordingly.
If real_paths
is true, we can use -PL
otherwise, we can just use -P
.
-P
will give full path to device (i.e. /dev/disk/by-partuuid/**
)
-PL
will give full path to real device (i.e. /dev/sda1
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, actually, we'll leave it as is for now since this is going into RC.1
This PR has been merged and conversations have been locked. |
Problem
zpool.status
was not properly reporting path for disk properly when a spare had replaced a data disk.Solution
We are now using
zpool status
for retrieving serialized information about the zpool so we can properly account for disk path being reported for spare based disks and that is much better optimized for a system with large number of disks as compared to py-libzfs.