ZFS clones and snapshot... can't delete snapshot were clone is based on

root@solaris [/] # zfs list -r
NAME   USED  AVAIL  REFER  MOUNTPOINT
home   100K  9,78G    21K  /datahome
root@solaris [/] # zpool list
NAME   SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
home  9,94G   108K  9,94G     0%  ONLINE  -
root@solaris [/] # zfs create home/test
root@solaris [/] # zfs snapshot home/test@today
root@solaris [/] # zfs clone home/test@today home/myclone
root@solaris [/] # zfs list -r
NAME              USED  AVAIL  REFER  MOUNTPOINT
home              138K  9,78G    23K  /datahome
home/myclone         0  9,78G    21K  /datahome/myclone
home/test          21K  9,78G    21K  /datahome/test
home/test@today      0      -    21K  -
root@solaris [/] # zfs promote home/myclone
root@solaris [/] # zfs list -r
NAME                 USED  AVAIL  REFER  MOUNTPOINT
home                 140K  9,78G    24K  /datahome
home/myclone          21K  9,78G    21K  /datahome/myclone
home/myclone@today      0      -    21K  -
home/test               0  9,78G    21K  /datahome/test
root@solaris [/] # zfs destroy home/myclone
cannot destroy 'home/myclone': filesystem has children
use '-r' to destroy the following datasets:
home/myclone@today
root@solaris [/] # zfs destroy home/myclone@today
cannot destroy 'home/myclone@today': snapshot has dependent clones
use '-R' to destroy the following datasets:
home/test
root@solaris [/] #Why can't I destroy a snapshot? home/myclone is now a volume that is not linked to home/test.
So I would expect to be able to delete the snapshot from myclone.
Maybe I misunderstand something about how this works or I have the wrong expectations.
I would expect a clone to be something like a copy that is independent of the volume being cloned.

The idea is that when you create a clone, it is lightweight and based on the snapshot. That's what makes it so fast. You're not copying every block in the filesystem. So the snapshot is what ties together the parent filesystem and the clone.
For the clone to be independent, you'd have to copy all the blocks. There's no option to do that within the clone process. So as long as both the parent filesystem and the clone filesystem are around, the snapshot has to exist as well.
Darren

Similar Messages

  • What is the "Other" category under storage and how can i delete items from this?

    My disc is almost full.  "About this Mac" says that I have 47 GB of "Other."  What is this Other and how can I delete items from this?

    For information about the Other category in the Storage display, see this support article.
    Empty the Trash if you haven't already done so. If you use iPhoto, empty its internal Trash first:
    iPhoto ▹ Empty Trash
    Do the same in other applications, such as Aperture, that have an internal Trash feature. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of the data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    When Time Machine backs up a portable Mac, some of the free space will be used to make local snapshots, which are backup copies of recently deleted files. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown asBackups. The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself. If you followed bad advice to disable local snapshots by running a shell command, you may have ended up with a lot of data in the Other category. Reboot and it should go away.
    See this support article for some simple ways to free up storage space.
    You can more effectively use a tool such as OmniDiskSweeper (ODS) to explore the volume and find out what's taking up the space. You can also delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Deleting files inside an iPhoto or Aperture library will corrupt the library. Any changes to a photo library must be made from within the application that created it. The same goes for Mail files.
    Proceed further only if the problem isn't solved by the above steps.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    If you have more than one user account, make sure you're logged in as an administrator. The administrator account is the one that was created automatically when you first set up the computer.
    Install ODS in the Applications folder as usual. Quit it if it's running.
    Triple-click anywhere in the line of text below on this page to select it, then copy the selected text to the Clipboard by pressing the key combination command-C:
    sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the built-in Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The application window will open, eventually showing all files in all folders, sorted by size with the largest at the top. It may take a few minutes for ODS to finish scanning.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means. When in doubt, leave it alone or ask for guidance.
    When you're done with ODS, quit it and also quit Terminal.

  • Trying to use a new, larger external hard drive for my Time Machine backup.  However, every time I start the backup, it gets started then fails.  And, I can't delete the few files that did save on the external.  Sort of a catch 22.  Any ideas?

    Trying to use a new, larger external hard drive for my Time Machine backup.  However, every time I start the backup, it gets started then fails.  And, I can't delete the few files that did save on the external.  Sort of a catch 22.  Any ideas?

    Is it a USB hard drive?  USB hard drives have the problem of not giving full speed if they are hooked up on the same bus as keyboards and mice.  Double check your profiler to make sure that is not a problem.  If it is Firewire, make sure there aren't other firewire devices in use at the same time.  I recommend not only keeping a Time Machine backup, but also a clone, and if you do use Time Machine, to make sure the Time Machine drive or partition is at least twice the size of the original drive.

  • I have a iPhone 4 and I can't delete my pictures in the albums. Can anyone help me??

    I have a iPhone 4 and I can't delete the pictures in the photo albums. Can anyone help??

    There are two ways to get rid of them on your iPhone:
    1.  Get rid of them on your computer, and then sync your iPhone to your computer using iTunes.
    2.  Plug your iPhone into your computer, open iTunes, click on your iPhone's row on the left, go to the "Photos" tab on the top right, and uncheck "Sync Photos", then click "Apply" in the lower right.

  • I downloaded the Keynote app to use on my iPad and because of iCloud, it is trying unsuccessfully to download onto my iPhone. How can I get it to stop attempting to download onto my iPhone? It says waiting and I can't delete it (no X to click). Thx!

    I downloaded the Keynote app to use on my iPad and because of iCloud, it is trying unsuccessfully to download onto my iPhone. How can I get it to stop attempting to download onto my iPhone? It says waiting and I can't delete it (no X to click). Thx!

    Did you try shutting down the device? Resetting? Disabling iCloud? Disabling auto-update?
    I'd find the problem that is keeping the download from proceeding and fix that so that the process can finish...sounds like it may be your connection or a server issue, in which case you may need to wait.

  • I downloaded music from my icloud account on to my iphone and i can not delete them off my iphone

    I downloaded music from my icloud account on to my iphone and i can not delete them off my iphone

    Welcome to Apple Support Communities
    You cannot. However, you can solve this problem by setting the iPhone as a new device and upgrading iOS in Settings -> Software Update.
    After upgrading iOS, open Settings -> General -> Reset -> Erase All Content and Settings. Finally, Setup Assistant will let you restore the backup.

  • Just updated my 3gs and i can't delete any contacts

    just updated my 3gs and i can't delete any contacts

    If the Edit button is missing and you have enabled iCloud, check Settings>iCloud, set Contacts to ON.

  • I have synced pix from my laptop. Some appear multiple times and others I want to delete. In pictures when I tap edit the "delete" tab is red and I can't delete any pix. How do I fix this?

    How do I delete pix. In the edit mode the "delete" tab is red and I can't delete any pix.

    If the delete tab is red after you tap the edit button, then you have to select the pictures that you want to delete by tapping on them. A blue check mark will appear in the lower right corner of the photo indicating that it has been selected. The Delete button should then turn bright red after you make your selections. Tap the delete button and that should remove the photos. This will work for photos in the camera roll or the photo stream.
    Photos that you synced to your iPad must be removed by "unsyncing" them using iTunes on your computer. Deselect the albums in the photos tab of iTunes and follow that with a sync to remove them.

  • Trying to update my apps but it keeps saying update my credit card,I don't want to use a credit card and I can't delete the one that's on my account

    Trying to update my apps but it keeps saying update my credit card,I don't want to use a credit card and I can't delete the one that's on my account

    If you're positive the information is correct, ask the issuing bank why the transaction is being rejected.
    You're getting this error because the store can not authorize the card with your bank.

  • I forgot my restriction password and I can't delete any app. I can't download anything either, I've filled up all the space in my iPad, and I need to update my iPad in order to restore it. But my iPad needs space in order to update to a newer vers. of ios

    I forgot my restriction password and I can't delete any app. I can't download anything either, I've filled up all the space in my iPad, and I need to update my iPad in order to restore it. But my iPad needs space in order to update to a newer vers. of ios.. I've also tried to restore to the previous backup, but it yet doesn't work. Please help :c!

    I told you, I can't restore iOS. In order to restore my iPad, I need to update it to iOS 7.0.4, but my iPad needs available space to update, but I don't have any. I can't delete anything at all, so yeah.. are there any possible ways to restore my ipad without updating? If not, please state other ways to solve this problem.

  • IPhone shows 11.77GB taken up by "Other". What is it and how can I delete it?

    iPhone 4 shows 11.77GB taken up by "other" what is it and how can i delete it?

    One of the great mysteries of the Universe.
    However, I can tell you that if you power cycle the phone, Other will diminish significantly in size. So it probably contains caches, app workspaces, whathaveyou. Just had close to 4GB, but after force quitting all apps and then turning it off and on, Other went down to a tad over 1GB.

  • I have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!

    i have a dell computer with windows xp. i can not download itunes it is looking for itunes.msi and because it can not find it, i can not download itunes 10, and i can not delete itunes from my computer. HELP!!!!!!
    What else can I do ?

    Snow Leopard = OS X 10.6.x
    It is Not available as a download... It is a Paid Upgrade.
    Do this first...
    Check that your Mac meets the System Requirements for Snow Leopard...
    Snow Leopard Tech Specs
    http://support.apple.com/kb/SP575
    If so... Purchase a Snow Leopard Install Disc...
    http://store.apple.com/us/product/MC573Z/A/mac-os-x-106-snow-leopard
    Other countries...
    http://support.apple.com/kb/HE57
    After the Successful Install, run Software Update to get the latest updates for Snow Leopard.
    Be sure to make a Backup of your Current System Before Upgrading...

  • Have recently had update and now can't delete songs or podcasts?

    I recently downloaded the latest update from iTunes and since then have not been able to delete unwanted tracks or podcasts.  I don't think I've changed any settings.

    I have the same problem with the update (via Software Update). I am running OS 10.6.8 on a Mac Air and when I updated iTunes to 10.4, the Delete function in the menu is greyed out and I can't delete podcasts or music using the menus. I can, however, drag the podcast to the trash. Does anyone have the same problem or better yet a solution?

  • I want to install the latest version of i tunes. I recieve an error that the MSI file is missing. It won't load the new version and I can not delete the software either. HELP!

    I have a windows computer running xp. I can not load the latest version of I tunes. I receive an error message that the 'msi" file can not be found. I can not delete I tunes for the same reason.
    HELP

    ItIt is the the ituens msi file
    From: Apple Support Communities Updates
    [email protected]
    Sent: Monday, February 27, 2012 3:40 PM
    To: escow 39
    Subject: - Re: I want to install the latest version of
    i tunes. I recieve an error that the MSI file is missing. It won't load the
    new version and I can not delete the software either. HELP!
      <http://images.apple.com/support/images/emails/apple_logo_gray.gif>
    <https://discussions.apple.com/index.jspa> Apple Support Communities
    Re: I want to install the latest version of i tunes. I recieve an error that
    the MSI file is missing. It won't load the new version and I can not delete
    the software either. HELP!
    created by b noir <https://discussions.apple.com/people/b+noir>  in iTunes
    for Windows - View the full discussion
    <https://discussions.apple.com/message/17708214?ac_cid=142432#17708214

  • All of a sudden 1000  photos have suddenly appeared on my Iphone and I can't delete them and can't find them in my stream either.

    All of a sudden 1000 photos have suddenly appeared on my Iphone that came from my own computer and I can't delete them.

    You'll have to deselect the photos in the photo pane in iTunes on your computer and then sync the phone again, this will delete photos that have not been taken with the phone but synced from the computer.

  • Icloud is not allowing me to listen to my music or view my videos in itunes why? and how can i delete icloud off of my PC

    icloud is not allowing me to listen to my music or view my videos why? and how can i delete off my PC?
    i also went to unistall on my labtop and deleted icloud and i still see the clouds.
    dugga64

    Delete the iCloud account on your phone & recreate it with your new Apple ID.

Maybe you are looking for