Data ONTAP provides the ability to clone FlexVol volumes, creating FlexClone volumes. The following list outlines some key facts about FlexClone volumes that you should know:
For more information, see Space guarantees.
For more information about these restrictions, see Limitations of volume cloning.
Attention
Splitting a FlexClone volume from its parent volume deletes all existing snapshots of the FlexClone volume.
For more information, see FlexClone volumes and space guarantees.
For more information about using volume cloning with LUNs, see your Block Access Management Guide.
You can use volume cloning whenever you need a writable, point-in-time copy of an existing FlexVol volume, including the following scenarios:
Volume cloning provides similar results to volume copying, but cloning offers some important advantages over volume copying:
The following operations are not allowed on parent volumes or their clones.
For more information about using SnapMirror with FlexClone volumes, see Using volume SnapMirror replication with FlexClone volumes.
To create a FlexClone volume by cloning a FlexVol volume, complete the following steps.
| 1 | ||
| 2 |
Enter the following command to clone the volume: vol clone create cl_vol_name [-s {volume|file|none}] -b
f_p_vol_name [parent_snap]
cl_vol_name is the name of the FlexClone volume that you want to create. -s {volume | file | none} specifies the space guarantee setting for the new FlexClone volume. If no value is specified, the FlexClone volume is given the same space guarantee setting as its parent. For more information, see Space guarantees. f_p_vol_name is the name of the FlexVol volume that you intend to clone. parent_snap is the name of the base snapshot of the parent FlexVol volume. If no name is specified, Data ONTAP creates a base snapshot with the name clone_cl_name_prefix.id, where cl_name_prefix is the name of the new FlexClone volume (up to 16 characters) and id is a unique digit identifier (for example 1,2, etc.). The base snapshot cannot be deleted as long as the parent volume or any of its clones exists. ResultThe FlexClone volume is created and, if NFS is in use, an entry is added to the /etc/export file for every entry found for the parent volume. |
|
Example snapshot name:To create a FlexClone volume "newclone" from the parent "flexvol1", the following command is entered: vol clone create newclone -b flexvol1 The snapshot created by Data ONTAP is named "clone_newclone.1". |
||
| 3 |
Verify the success of the FlexClone volume creation by entering the following command: vol status -v cl_vol_name |
|
A FlexClone volume inherits its initial space guarantee setting from its parent volume. For example, if you create a FlexClone volume from a parent volume with a space guarantee of volume, then the FlexClone volume's initial space guarantee will be volume as well. You can change the FlexClone volume's space guarantee at any time.
A newly created FlexClone volume uses the snapshots it shares with its parent volume to optimize its space requirements from the aggregate when applying space guarantees. This is important because you can delete the shared snapshots from the FlexClone volume, but doing so may increase the space requirements of the FlexClone volume in the aggregate if space guarantees are being used.
Suppose you have a 100-MB FlexVol volume with a space guarantee of volume, with 70 MB used and 30 MB free, and you use that FlexVol volume as a parent volume for a new FlexClone volume. The new FlexClone volume has an initial space guarantee of volume, but it does not require a full 100 MB of space from the aggregate, as it would if you had copied the volume. Instead, the aggregate only needs to allocate 100 MB minus 70 MB or 30 MB of free space to the clone.
Now, suppose that you delete the base snapshot from the FlexClone volume. Now, the FlexClone volume can no longer optimize its space requirements, and the full 100 MB is required from the containing aggregate.
If you are prevented from deleting a snapshot from a FlexClone volume due to "insufficient space in the aggregate," it is because deleting that snapshot requires the allocation of more data than the aggregate currently has available. You can either increase the size of the aggregate, or change the space guarantee of the FlexClone volume.
Note
Before changing the space guarantee of the FlexClone volume, make sure you understand the effects of making such a change. For more information, see Space guarantees.
Snapshots that are shared between a FlexClone volume and its parent are not identified as such in the FlexClone volume. However, you can identify a shared snapshot by listing the snapshots in the parent volume. Any snapshot that appears as busy, vclone in the parent volume and is also present in the FlexClone volume is a shared snapshot.
Because both volume SnapMirror replication and FlexClone volumes rely on snapshots, there are some restrictions on how the two features can be used together.
You can create a volume SnapMirror relationship using a FlexClone volume or its parent as the source volume. However, you cannot create a new volume SnapMirror relationship using either a FlexClone volume or its parent as the destination volume.
You can create a FlexClone volume from a volume that is currently either the source or destination in an existing volume SnapMirror relationship. For example, you might want to create a FlexClone volume to create a writable copy of a SnapMirror destination volume without affecting the data in the SnapMirror source volume.
However, when you create the FlexClone volume, you might lock a snapshot that is used by SnapMirror. If that happens, SnapMirror stops replicating to the destination volume until the FlexClone volume is destroyed or split from its parent. You have two options for addressing this issue:
You might want to split your FlexClone volume and its parent into two independent volumes that occupy their own disk space.
Attention
When you split a FlexClone volume from its parent, all existing snapshots of the FlexClone volume are deleted.
Splitting a FlexClone volume from its parent will remove any space optimizations currently employed by the FlexClone volume. After the split, both the FlexClone volume and the parent volume will require the full space allocation determined by their space guarantees.
Because the clone-splitting operation is a copy operation that might take considerable time to carry out, Data ONTAP also provides commands to stop or check the status of a clone-splitting operation.
The clone-splitting operation proceeds in the background and does not interfere with data access to either the parent or the clone volume.
If you take the FlexClone volume offline while the splitting operation is in progress, the operation is suspended; when you bring the FlexClone volume back online, the splitting operation resumes.
Once a FlexClone volume and its parent volume have been split, they cannot be rejoined.
To split a FlexClone volume from its parent volume, complete the following steps.
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01085_B0
File: 6vol9.htm
Last updated: 01-Dec-2005 16:51:37