NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

ONTAP Discussions

Clone a Volume from a Snapshot?

General
3,685 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
3,653 Views

Use “volume clone”.

liu
1,289 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