Removing not used dataset not possible - busy

cfmedicus

Cadet
Joined
Sep 11, 2023
Messages
4
Hi,

I had an app installed (photoprism) and used a dataset for the image storage. After removing the photoprism app completely I tried to remove the dataset, which is not used by anything else (eg samba service). Whenever I try to remove the dataset I‘ll get the error

[EBUSY] Failed to delete dataset: cannot destroy 'Data/photoprism': dataset is busy

I did (thanks to the newest update) a server restart, but that doesn‘t do it for me.

Any ideas how I could get rid of a unused dataset?

Best regards

cfmedicus
 

Dohuginn

Dabbler
Joined
Nov 6, 2022
Messages
35
Hello everyone!

I have the same problem. After uninstalling photoprism, it is not possible to delete the dataset it used.
 

Dohuginn

Dabbler
Joined
Nov 6, 2022
Messages
35
Hello, everyone.
Does anyone know how to solve this issue? I did an experiment, I just created a photoprism folder in another pool. Immediately after creating it, I tried to delete it and failed. I got a warning message.
EBUSY] Failed to delete dataset: cannot destroy 'Data/photoprism': dataset is busy.
Can anyone help me?
 

PhilD13

Patron
Joined
Sep 18, 2020
Messages
203
Is the dataset attached to a share service such as SMB? If it is stop the service and you should be able to remove the dataset. Snapshots could also have a hold on the dataset and prevent the deletion. You could also try the following I found on the forum search (reference post) from earlier this month for the same basic issue to look and see what is keeping the dataset mounted in use.
# Figure out which process(es)
grep "$YOUR_DATASET_NAME" /proc/*/mounts

# List processes and filter by the id(s) from last step
ps -aux | grep $PROC_ID
 

Dohuginn

Dabbler
Joined
Nov 6, 2022
Messages
35
Thank you very much, it helped.
The photoprism folder was mounted by filebrowsers. But why only photoprism is a mystery to me.
 

NugentS

MVP
Joined
Apr 16, 2020
Messages
2,947
reboot the NAS and delete as soon as possible after the reboot - works for me.

Its probably a bug
 

Sonderbaer

Cadet
Joined
Oct 8, 2023
Messages
1
What helped here: stop all apps --> delete dataset --> restart all apps.
Maybe easier and faster than looking for the only app.
 
Top