Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

ZFS Snapshot Delete / Destroy "dataset is busy" "Operation not Permitted"

Featured Replies

I can't delete a zfs pool and its snapshots, what can I do? 

 

# zfs destroy -vfrR disk3/backup
will destroy disk3/backup@littleboy_2023-12-19-04:40:40
will destroy disk3/backup@littleboy_2024-01-07-04:41:17
will destroy disk3/backup@littleboy_2024-01-09-04:41:07
will destroy disk3/backup@littleboy_2023-12-21-04:41:06
will destroy disk3/backup@littleboy_2023-12-22-04:41:06
will destroy disk3/backup@littleboy_2024-01-05-04:41:21
will destroy disk3/backup
cannot destroy snapshot disk3/backup@littleboy_2023-12-19-04:40:40: dataset is busy
cannot destroy snapshot disk3/backup@littleboy_2024-01-07-04:41:17: dataset is busy
cannot destroy snapshot disk3/backup@littleboy_2024-01-09-04:41:07: dataset is busy
cannot destroy snapshot disk3/backup@littleboy_2023-12-21-04:41:06: dataset is busy
cannot destroy snapshot disk3/backup@littleboy_2023-12-22-04:41:06: dataset is busy
cannot destroy snapshot disk3/backup@littleboy_2024-01-05-04:41:21: dataset is busy

 

lsof shows nothing

# lsof /mnt/disk3/backup

 

Could be SMB? 

Edited by skler

Solved by skler

  • skler changed the title to ZFS Snapshot Delete / Destroy "dataset is busy" "Operation not Permitted"
  • Community Expert

Try rebooting in safe mode.

  • Author
  • Solution

I didn't test with a reboot, an array stop or neither a docker/vm stop. I can suppose was some dockers that uses this resource. 

 

But I've solved with this without shutting down anything:

 

root@littleboy:~# zfs set mountpoint=none disk3/backup
root@littleboy:~# zfs destroy -vr disk3/backup
will destroy disk3/backup@littleboy_2023-12-19-04:40:40
will destroy disk3/backup@littleboy_2024-01-07-04:41:17
will destroy disk3/backup@littleboy_2024-01-09-04:41:07
will destroy disk3/backup@littleboy_2023-12-21-04:41:06
will destroy disk3/backup@littleboy_2023-12-22-04:41:06
will destroy disk3/backup@littleboy_2024-01-05-04:41:21
will destroy disk3/backup
root@littleboy:~#

 

Edited by skler

  • 1 month later...
On 1/16/2024 at 9:05 PM, skler said:
root@littleboy:~# zfs set mountpoint=none disk3/backup

 

I have the exact same problem. Followed SpaceinvaderOne's guide to setup appdata folders as ZFS datasets. Then tried to remove old folders containing data for apps that I do not use anymore. I tried first using the "ZFS master" plugin in destructive mode, but got "Operation not permitted" error. The same when using the command line: `zfs destroy -fr [DATASET]`. 

 

It worked when I first use your command `zfs set mountpoint=none [DATASET]`. 

 

Why is this necessary? Is there a way to automate this so that I can remove pools using the GUI?

  • 3 weeks later...

I've noticed this issue affecting Mover in the syslog as well. In the past I've used the ZFS Master to rename the dataset and then I could destroy. I like this method better. Too bad ZFS Master can't do the unmount...

Edited by Gex2501

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.