Destroy root without destroying child filesystems

All your general support questions for OpenZFS on OS X.

Destroy root without destroying child filesystems

Postby thePoet » Fri Nov 18, 2022 6:52 pm

There is a long story about how I got here that isn't worth going into, but the root of my pool is currently a clone pointing to a shared snapshot of another filesystem. Here is the layout:

Code: Select all
NAME                              USED  AVAIL     REFER  MOUNTPOINT
pool                             4.95T   370G      297M  /Volumes/pool
pool/Starbug                     4.95T   370G     4.82T  /Volumes/Starbug


To prove this:

Code: Select all
$ zfs get origin
NAME                                PROPERTY  VALUE                          SOURCE
pool                                origin    pool/Starbug@clone_dependency  -
pool/Starbug                        origin    -                              -


I'm afraid what I'm going to ask may not be possible. At this point I don't want the files to exist in root and I'd like to destroy the snapshot. If this were a normal filesystem and not root I could destroy it, but I don't think there is a way to do that to the root. Is there some way of reseting root so that it is no longer a clone of the snapshot?
thePoet
 
Posts: 23
Joined: Sat May 24, 2014 8:12 am

Re: Destroy root without destroying child filesystems

Postby lundman » Sat Nov 19, 2022 1:49 pm

You promote it?

"zfs promote pool"
User avatar
lundman
 
Posts: 1335
Joined: Thu Mar 06, 2014 2:05 pm
Location: Tokyo, Japan

Re: Destroy root without destroying child filesystems

Postby thePoet » Sat Nov 19, 2022 7:17 pm

This just inverts it back to the way it was with pool/Starbug now being a clone instead of pool. It still isn't possible to destroy the contents of pool itself and the cloned snapshot while leaving pool/Starbug to be an unaffected standalone filesystem.
thePoet
 
Posts: 23
Joined: Sat May 24, 2014 8:12 am


Return to General Help

Who is online

Users browsing this forum: No registered users and 29 guests