Below are the steps used to create a clone of a file system on a Celerra or VNX. Cloning can be done to the same data mover, a different data mover on the same array, or to a completely different Celerra or VNX data mover.
- The source file system needs to be mounted read-only, or alternately you can use a checkpointed copy of the file system. Using a checkpoint is the least disruptive method if the source file system is being used in production.
- The destination file system must be the same size or larger than the source file system and must also be mounted read-only.
- If you created the new file system for the clone copy on the same storage pool as the source file system, the copy performance will suffer as you’re reading/writing to the same disks.
- The ReplicatorV2 license must be enabled for nas_copy to work.
To check the status of your installed licenses, use nas_license -list. The output looks like this:
[nasadmin@celerra01 ~]$ nas_license -list
key status value
site_key online 51 56 2e 69
cifs online
nfs online
iscsi online
snapsure online
replicatorV2 online
- To enable the replicator license, run this command:
nas_license -create replicatorV2.
- Once the source file system (or checkpoint, depending on which one you chose) and target file system are mounted correctly, verify the correct interconnect you want to use for the copy. You can review the configured interconnects with this command:
[nasadmin@celerra01 ~]$ nas_cel -interconnect -list
- To begin the clone, run the nas_copy command, which has the following syntax:
[nasadmin@celerra01 ~]$ nas_copy
-name <sessionName>
-source
{-fs {<name> | id=<fsId>} | -ckpt {<ckptName> | id=<ckptId>}
-destination
{-fs {id=<dstFsId>|<existing_dstFsName>}
|-pool {id=<dstStoragePoolId>}|<dstStoragePool>}}
[-from_base {<ckpt_name>|id=<ckptId>}]
-interconnect {<name> | id=<interConnectId>}
[-source_interface {<nameServiceInterfaceName> | ip=<ipaddr>}]
[-destination_interface {<nameServiceInterfaceName> | ip=<ipaddr>}]
[-overwrite_destination]
[-refresh]
[-full_copy]
[-background]
- Below is an example of a valid nas_copy command. This command will create a copy of the source files system on the same Data Mover.
[nasadmin@celerra01 ~]$ nas_copy -name copy_session -source -ckpt checkpoint_of_source_filesystem -destination -fs clone_of_Source_filesystem -interconnect loopback -background
- You can monitor the progress of the clone copy using nas_replicate -list. The output of the command looks like this:
Name Type Local Mover Interconnect Celerra Status Site1_VDM01 vdm server_2 <--Site2_VNX5700 Site1_NS960 Stopped Site2_Filesystem2 filesystem server_2 <--Site1_NS960 Site2_VNX5700 OK Site2_Filesystem3 filesystem server_2 <--Site1_NS960 Site2_VNX5700 OK Site2_Filesystem4 filesystem server_2 <--Site1_NS960 Site2_VNX5700 OK Site2_Filesystem5 filesystem server_2 <--Site1_NS960 Site2_VNX5700 OK . . .