Clone volumes are writable, point-in-time copy of a parent FlexVol volume. They reside in the same aggregate as their parent volume. Changes made to the parent volume after the clone is created are not inherited by the clone.
Because clone volumes and parent volumes share the same disk space for any data common to both, creating a clone is instantaneous and requires no additional disk space. You can split the clone from its parent if you do not want the clone and parent to share disk space.
Clone volumes are fully functional volumes; you manage them using the vol command, just as you do the parent volume. Clone volumes themselves can be cloned.
You can clone FlexVol volumes when you want a writable, point-in-time copy of a FlexVol volume. For example, you might want to clone FlexVol volumes in the following scenarios:
When you create clone volumes, LUNs in the parent volume are present in the clone but they are not mapped and they are offline. To bring the LUNs in the clone online, you must map them to igroups. When the LUNs in the parent volume are backed by Snapshot copies, the clone also inherits the Snapshot copies.
You can also clone individual LUNs. If the parent volume has LUN clones, the clone volume inherits the LUN clones. A LUN clone has a base Snapshot copy, which is also inherited by the volume clone. The LUN clone's base Snapshot copy in the parent volume shares blocks with the LUN clone's base Snapshot copy in the volume clone. You cannot delete the LUN clone's base Snapshot copy in the parent volume until you delete the base Snapshot copy in the volume clone.
Clone volumes inherit the same volume-level space guarantee setting as the parent volume, but the space guarantee is disabled for the clone. This means that the containing aggregate does not ensure that space is always available for write operations to the clone volume, regardless of the clone's guarantee setting.
The following example shows guarantee settings for two volumes: a parent volume called testvol and its clone, testvol_c. For testvol the guarantee option is set to volume. For testvol_c, the guarantee option is set to volume, but the guarantee is disabled.
filer_1> vol options testvol
nosnap=off, nosnapdir=off, minra=off, no_atime_update=off, nvfail=off, snapmirrored=off, create_ucode=off, convert_ucode=off, maxdirsize=5242, fs_size_fixed=off, guarantee=volume, svo_enable=off, svo_checksum=off, svo_allow_rman=off, svo_reject_errors=off, fractional_reserve=100
filer_1> vol status testvol_c
Volume State Status Options
c1 online raid_dp, flex maxdirsize=5242,
guarantee=volume(disabled)
Clone, backed by volume 'testvol', snapshot 'hourly.0'
Containing aggregate: 'a1'
Volume-level space guarantees are enabled on the clone volume only after you split the clone volume from its parent. After the clone-splitting process, space guarantees are enabled for the clone volume, but the guarantees are enforced only if there is enough space in the containing aggregate.
LUNs in clone volumes inherit the space reservation setting from the LUNs in the parent volume. This means if space reservation is enabled for a LUN in the parent volume, it is also enabled for the LUN in the clone volume. Clone volumes inherit fractional overwrite reserve settings from the parent volume. For example, if fractional overwrite is set to 50 percent on the parent volume, it is also set to 50 percent on the clone volume. Space reservation and fractional overwrite reserve settings are enabled, but they are enforced only if there is enough space in the containing aggregate.
You use the following commands to clone FlexVol volumes:
To clone a FlexVol volume, complete the following steps.
| 1 |
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 clone volume that you want to create. -s {volume | file | none} specifies the space guarantee for the new volume clone. If no value is specified, the clone is given the same space guarantee setting as its parent. For more information, see How volume cloning affects space reservation. Note f_p_vol_name is the name of the flexible parent volume that you intend to clone. [parent_snap] is the name of the base Snapshot copy of the parent volume. If no name is specified, Data ONTAP creates a base Snapshot copy with the name clone_cl_name_prefix.id, where cl_name_prefix is the name of the new clone volume (up to 16 characters) and id is a unique digit identifier (for example 1,2, and so on). The base Snapshot copy cannot be deleted as long as the parent volume or any of its clones exists. Example Snapshot copy name:To create a clone newclone of the volume named flexvol1, the following command is entered: vol clone create newclone -b flexvol1 The Snapshot copy created by Data ONTAP is named clone_newclone.1. |
|
| 2 |
Verify the success of the clone creation by entering the following command: vol status -v cl_vol_name |
|
You might want to split your cloned volume into two independent volumes that occupy their own disk space.
Note
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.
If you take the clone offline while the splitting operation is in progress, the operation is suspended; when you bring the clone back online, the splitting operation resumes.
To split a clone from its parent volume, complete the following steps.
For detailed information about volume cloning, including limitations of volume cloning, see the Data ONTAP Storage Management Guide.
Copyright © 1994-2005, Network Appliance, Inc. All rights
reserved.
Part No. 210-01094_B0
File: c9data10.htm
Last updated: 08-Dec-2005 13:25:35