Deleting no longer required datasets

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
I am trying to delete some datasets that are no longer required.
I have removed snapshots
I have removed the NFS Share
There is no SMB Share
Nothing is using these datasets any longer

When I try to delete the dataset I get dataset is busy. This happens a lot

Any thoughts?
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
lsof | grep <dataset>
 
Joined
Jul 3, 2015
Messages
926
any chance there is a live ssh connection to the box sat in that dir?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
lsof | grep <dataset>
Produces a large number of lines all of which are multiple versions of:
Code:
lsof: no pwd entry for UID 201
lsof: no pwd entry for UID 65535
 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
That's to be expected if you run jails. No output for open files on that dataset?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
No Jails - this is Scale. There are No apps using the dataset
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
The warnings about missing UIDs can come from apps as well. Inside the container something is running with UID X that the TN host does not know. That's why lsof complains. Can be ignored. Again: no files in the lsof output?
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
No files. Well no files pointing at /mnt/AppPool/Docker/"insert name of dataset" or just the dataset. They all point at VM's on different pools or /usr

ooo - though you have just made me think of something which shouldn't have an effect - but might have some sort of hangover. I have deleted the NFS Shares to the folders, but a VM which had them mounted is still running

And...... Nope - still can't delete
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
I rebooted the NAS and was allowed (briefly) to delete some of the datasets - but after 30 seconds or so got the dataset is busy again. I managed to delete 3 datasets
 
Joined
Jul 3, 2015
Messages
926
Could you change permissions to break any legacy access and then try and delete?
 

2twisty

Contributor
Joined
Mar 18, 2020
Messages
145
Do you have a terminal or ssh session open and are IN that directory? That one has caught me a few times.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
I didn't.
I did eventually manage to delete the datasets - but had to reboot to do so
 
Top