Skip to main content

Create FlexClone LUNs from a Snapshot copy in a volume

Contributors netapp-lenida

You can use a Snapshot copy in your volume to create FlexClone copies of your LUNs. FlexClone copies of LUNs are both readable and writeable.

What you'll need

A FlexClone license must be installed. This license is included with ONTAP One.

About this task

The FlexClone LUN inherits the space reservations attribute of the parent LUN. A space-reserved FlexClone LUN requires as much space as the space-reserved parent LUN. If the FlexClone LUN is not space-reserved, the volume must have enough space to accommodate changes to the clone.

Steps
  1. Verify that the LUN is not mapped or being written to.

  2. Create a Snapshot copy of the volume that contains the LUNs:

    volume snapshot create -vserver vserver_name -volume volume_name -snapshot snapshot_name

    You must create a Snapshot copy (the backing Snapshot copy) of the LUN you want to clone.

  3. Create the FlexClone LUN from the Snapshot copy:

    file clone create -vserver vserver_name -volume volume_name -source-path source_path -snapshot-name snapshot_name -destination-path destination_path

    If you need the FlexClone LUN to be available for automatic deletion, you include -autodelete true. If you are creating this FlexClone LUN in a volume using semi-thick provisioning, you must enable automatic deletion for all FlexClone LUNs.

  4. Verify that the FlexClone LUN is correct:

    lun show -vserver vserver_name

    Vserver Path                      State    Mapped    Type     Size
    ------- ----------------------    -------- --------- -------- -------
    vs1     /vol/vol1/lun1_clone      online   unmapped windows   47.07MB
    vs1     /vol/vol1/lun1_snap_clone online   unmapped windows   47.07MB