-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Renaming a zvol does not update the kstat's dataset_name #15482
Labels
Type: Defect
Incorrect behavior (e.g. crash, hang)
Comments
asomers
added a commit
to asomers/zfs
that referenced
this issue
Nov 2, 2023
Closes openzfs#15482 (for FreeBSD only) Sponsored-by: Axcient Signed-off-by: Alan Somers <[email protected]>
Ah that is true and probably also the case in Solaris/illumos, certainly the case in Windows/macOS. |
I'm testing a fix for FreeBSD now. |
asomers
added a commit
to asomers/zfs
that referenced
this issue
Nov 2, 2023
Closes openzfs#15482 (for FreeBSD only) Sponsored-by: Axcient Signed-off-by: Alan Somers <[email protected]>
I see no immediate reason that wouldn't work for Windows/macOS..? |
asomers
added a commit
to asomers/zfs
that referenced
this issue
Nov 2, 2023
Closes openzfs#15482 (for FreeBSD only) Sponsored-by: Axcient Signed-off-by: Alan Somers <[email protected]>
13 tasks
asomers
added a commit
to asomers/zfs
that referenced
this issue
Nov 3, 2023
Closes openzfs#15482 (for Linux only) Sponsored-by: Axcient Signed-off-by: Alan Somers <[email protected]>
behlendorf
pushed a commit
that referenced
this issue
Nov 7, 2023
Add a dataset_kstats_rename function, and call it when renaming a zvol on FreeBSD and Linux. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alan Somers <[email protected]> Sponsored-by: Axcient Closes #15482 Closes #15486
lundman
pushed a commit
to openzfsonwindows/openzfs
that referenced
this issue
Dec 12, 2023
Add a dataset_kstats_rename function, and call it when renaming a zvol on FreeBSD and Linux. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alan Somers <[email protected]> Sponsored-by: Axcient Closes openzfs#15482 Closes openzfs#15486
mmatuska
pushed a commit
to mmatuska/zfs
that referenced
this issue
Dec 27, 2023
Add a dataset_kstats_rename function, and call it when renaming a zvol on FreeBSD and Linux. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alan Somers <[email protected]> Sponsored-by: Axcient Closes openzfs#15482 Closes openzfs#15486
behlendorf
pushed a commit
that referenced
this issue
Jan 9, 2024
Add a dataset_kstats_rename function, and call it when renaming a zvol on FreeBSD and Linux. Reviewed-by: Alexander Motin <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Alan Somers <[email protected]> Sponsored-by: Axcient Closes #15482 Closes #15486
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
System information
Describe the problem you're observing
The
kstat.zfs.<POOLNAME>.dataset.objset-0x<OBJID>
sysctl nodes publish statistics about ZFS datasets, such as throughput. The "dataset_name" node contains the name of the ZFS dataset. For file system datasets, renaming the dataset also updates the value ofdataset_name
. But for zvols, it does not. After the rename,dataset_name
still contains the dataset's prior name.Describe how to reproduce the problem
These instructions work on FreeBSD. For Linux, do
cat /proc/spl/kstat/zfs/testpool/objset-XXX
instead of usingsysctl
.The text was updated successfully, but these errors were encountered: