Failed to delete boot environment

Nasb Klamb

Dabbler
Joined
Apr 1, 2017
Messages
21
I'm trying to delete old boot environments, and one of them refuses to be deleted. I'm on 11.2-U4.1 and have tried both the new and legacy web interfaces. Both of them get an HTTP response payload: "Failed to delete Boot Environment." and nothing else.

Edit: I found log messages:

May 11 13:05:33 alpha uwsgi: [freenasOS.Update:105] cannot destroy 'freenas-boot/ROOT/11.2-U3': filesystem has dependent clones
May 11 13:05:33 alpha uwsgi: [freenasOS.Update:105] use '-R' to destroy the following datasets:
May 11 13:05:33 alpha uwsgi: [freenasOS.Update:105] freenas-boot/ROOT/11.2-U2.1
May 11 13:05:33 alpha uwsgi: [freenasOS.Update:105] freenas-boot/ROOT/default
May 11 13:05:33 alpha uwsgi: [freenasOS.Update:105] freenas-boot/ROOT/Initial-Install

I had renamed the boot environment to 11.2-U3-BROKEN, but I'm guessing this is only an external name and the logs still think it is 11.2-U3. So I'm now reluctant to delete the default and Initial-Install boot entries. Advice?
 
Last edited:

Chris Moore

Hall of Famer
Joined
May 2, 2015
Messages
10,080
filesystem has dependent clones
The error explains the problem. There are clones that depend on the image. You need to delete the clones first.
 

Nasb Klamb

Dabbler
Joined
Apr 1, 2017
Messages
21
I deleted the clones and then the broken boot environment.

What I learned:
1. The logs in /var/log/messages indicate the dependencies -- the UI gives no useful feedback
2. The "default" and "Initial-install" boot environments can be deleted as long as they are not "Now" or "Reboot"
 
Top