Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2019 00:09:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 236006] 'bectl destroy' doesn't remove snapshots
Message-ID:  <bug-236006-227-MA2H3N0D0n@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-236006-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-236006-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236006

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

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

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

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

>From the man page (CURRENT):=20
    ...
    ...
    destroy [-Fo] {beName | beName@snapshot}
               Destroys the given beName boot environment or beName@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 t=
he
               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:=20

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236006-227-MA2H3N0D0n>