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

zfs destroy crashes on specific dataset #16798

Open
43615 opened this issue Nov 22, 2024 · 1 comment
Open

zfs destroy crashes on specific dataset #16798

43615 opened this issue Nov 22, 2024 · 1 comment
Labels
Type: Defect Incorrect behavior (e.g. crash, hang)

Comments

@43615
Copy link

43615 commented Nov 22, 2024

System information

Type Version/Name
Distribution Name TrueNAS SCALE
Distribution Version 24.10.0.2
Kernel Version 6.6.44-production+truenas
Architecture x86_64
OpenZFS Version zfs-2.2.99-1

Describe the problem you're observing

I'm trying to delete a dataset that was automatically created for the Plex app by TrueNAS and didn't get deleted when uninstalling it:

# zfs list -r sto/ix-apps/app_mounts/plex
NAME                                 USED  AVAIL  REFER  MOUNTPOINT
sto/ix-apps/app_mounts/plex         2.35M  57.4T   153K  /mnt/.ix-apps/app_mounts/plex
sto/ix-apps/app_mounts/plex/config  2.10M  57.4T  1.92M  /mnt/.ix-apps/app_mounts/plex/config

This happens when running the destroy command:

# zfs destroy -Rv sto/ix-apps/app_mounts/plex
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-17_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-18_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-08_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-07_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-20_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-10_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-19_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-16_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-06_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-09_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-11_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-21_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-22_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-12_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-15_00-00-00
will destroy sto/ix-apps/app_mounts/plex/config@daily-2024-11-05_00-00-00
Aborted (core dumped)

The utility exits with code 134, and nothing is actually deleted. I have used the same command on other datasets with no issues.

I also can't rm -rf the files at the mountpoint, it says "Device or resource busy".

Describe how to reproduce the problem

Don't know the specific circumstances, just trying to delete a dataset.

Include any warning/errors/backtraces from the system logs

Core dump (recompressed as ZIP):
core.zfs.0.d9082b294cf042da963c2e5571dcc027.716503.1732278964000000.zip

@43615 43615 added the Type: Defect Incorrect behavior (e.g. crash, hang) label Nov 22, 2024
@43615
Copy link
Author

43615 commented Nov 27, 2024

I was able to delete the config directory after unmounting the dataset, but I still can't delete the dataset. Attempting modifications like zfs rename and zfs set mountpoint=none results in the same crash, and it also crashes zfs list -t snap.

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

1 participant