ONTAP Discussions

Clone a Volume from a Snapshot?

General
2,530 Views

Hello All,

 

Quick question. How do you clone a Volume from a Snapshot?

 

I know the command for cloning a LUN from a snapshot but is there not a way to clone an entire Volume by using a Snapshot.

 

The problem that throws me off is the "LUN" part, since I'm not trying to create a clone of a LUN. I want a clone of the entire Volume by way of using a Snapshot.

 

Can this be done?

 

volume snapshot create -vserver vs1 -volume vol1 -snapshot vol1_snapshot

file clone create -vserver vs1 -volume vol1 -source-path lun1 -snapshot-name vol1_snapshot -destination-path lun1_snap_clone

 

 

2 REPLIES 2

aborzenkov
2,498 Views

Use “volume clone”.

liu
134 Views

Use volume clone create   

volume clone create

For example  

cluster1::> volume clone create -vserver vs1 -flexclone fc_vol_1 -parent-volume fv2 -junction-active true -foreground true -comment "Testing FlexClone creation"
cluster1::> volume clone show fc_vol_1 -vserver vs1
Public