[Bug 236006] 'bectl destroy' doesn't remove snapshots

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Feb 26 00:09:20 UTC 2019


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236006

Rob <rob.fx907 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rob.fx907 at gmail.com

--- Comment #1 from Rob <rob.fx907 at gmail.com> ---
Hey Sergey,

As of R343993, bectl accepts the '-o' flag to destroy the origin snapshot when
you a boot environment is destroyed.

>From the man page (CURRENT): 
    ...
    ...
    destroy [-Fo] {beName | beName at snapshot}
               Destroys the given beName boot environment or beName at snapshot
               snapshot without confirmation, unlike in beadm.  Specifying -F
               will automatically unmount without confirmation.

               By default, bectl will warn that it is not destroying the
               origin of beName.  The -o flag may be specified to destroy the
               origin as well.
    ...
    ...


so, the following *should* delete the origin snapshot as well:

$ bectl create backup

$ bectl destroy -o backup


I say should because deleting the origin snapshot with the '-o' flag failed for
me. I submitted a bug report and a proposed patch: 

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=236043

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list