ZFSClonesDemo

ZFS Clones Demo (5 Minutes)

Description

This demo is a continuation of the ZFS Snapshots Demo, however, it could easily be adapted to work with any existing snapshot. We essentially create a writable clone of a snapshot on our existing system.

OpenSolaris Versions Supported

2008.05, 2008.11

Points to Hit

  • ZFS Clones allow you to create a writable copy of a snapshot

Demo Prep

  • You need a snapshot to clone

Gotchas

None yet known

Demo

  • View the existing snapshots in the pool zfs list -t all | grep stripedpool. Assuming you're coming from the ZFS Snapshots Demo, one of them should be stripedpool@today.
  • zfs clone stripedpool@today stripedpool/PresentationsForRoman
  • ls /stripedpool
  • zfs list - why isn't stripedpool/PresentationsForRoman consuming any space? Because the clone is still dependent on the snapshot - zfs list -o origin stripedpool/PresentationsForRoman
  • To decouple them, promote the clone - zfs promote stripedpool/PresentationsForRoman.
  • zfs list to show it's now using the same space as stripedpool.

Demo Cleanup

  • cd /
  • zpool destroy stripedpool
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.

Sign up or Log in to add a comment or watch this page.


The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact