Unable to delete dataset

dwhite

Dabbler
Joined
Mar 3, 2021
Messages
26
I created a data set and used an underscore in the name. I realized I did not want that and tried to delete. It remains greyed out when I try to delete after I enter the name vm_backups and select confirm. I did a zfs list and it shows there. I tried to destroy it from cli and it says data set does not exist. I've rebooted several times and do not have any shares related to it. Any help would be appreciated.

Thanks Dino

1630972439895.png


1630972555950.png


1630972728485.png
 
Joined
Oct 22, 2019
Messages
3,641
Can you try again using the TAB key to autocomplete? Maybe it's a different character that looks similar to a proper underscore?

You can first unmount it with "zfs umount" and then try to destroy it with "zfs destroy".

UPDATE: It's a bug. See blow.
 
Last edited:
Joined
Oct 22, 2019
Messages
3,641
Oh dang! Looks like you found a bug!

I just tried the same thing in TrueNAS CORE 12.0-U5.1, and I cannot delete datasets with an underscore in the name! :eek:
 
Joined
Oct 22, 2019
Messages
3,641
ANOTHER UPDATE: Try again, but this time copy + paste this in the confirmation dialog: vm_backups

See if it allows you to check "Confirm" and "Delete Dataset".

When I did it using copy + paste, it worked. :cool:
 

dwhite

Dabbler
Joined
Mar 3, 2021
Messages
26
ANOTHER UPDATE: Try again, but this time copy + paste this in the confirmation dialog: vm_backups

See if it allows you to check "Confirm" and "Delete Dataset".

When I did it using copy + paste, it worked. :cool:

I tried the copy and paste and it did not work. Thanks for the input.

Dino
 

dwhite

Dabbler
Joined
Mar 3, 2021
Messages
26
Can you try again using the TAB key to autocomplete? Maybe it's a different character that looks similar to a proper underscore?

You can first unmount it with "zfs umount" and then try to destroy it with "zfs destroy".

UPDATE: It's a bug. See blow.


When I try to unmount it says dataset does not exist.

1630977463359.png


Dino
 
Joined
Oct 22, 2019
Messages
3,641
When I try to unmount it says dataset does not exist.
The ZFS command for unmount is actually "umount". There's no "n". You can thank the developers of yesteryear for that one. :wink:

If that still doesn't work, try to reboot the system, if it's feasible to do so.
 
Last edited:

DavidR

Cadet
Joined
Jun 6, 2022
Messages
1
The copy and paste worked for me. Note* I could not delete it but, I did not have an underscore. I opened up a text file on my desktop and typed in the name Tier 1 OLD and pasted it in. Poof Deleted. I also noted that when I typed it in the grey letters did not match up with the white. When I pasted it in, they did. Using MS Edge as a browser.
 
Top