Library Table of Contents Index Previous Next Comments

Using LUN clones

Creating a writable LUN of a snapshot  Top

Before you can clone a LUN, you must create a writable snapshot of the LUN you want to clone. To create a writable snapshot, complete the following steps.

Step

Action

1

Create a LUN by entering the following command:

lun create -s size lun_path
Example

lun create -s 100g /vol/vol1/lun0

2

Create a snapshot of the volume containing the LUN to be cloned by entering the following command:

snap create volume_name snapshot_name
Example

snap create vol1 mysnap

3

Create a writable LUN by entering the following command:

lun create -b snapshot_name lun_clone_path
Example

lun create -b /vol/vol1/.snapshot/mysnap/lun0 /vol/vol1/lun0.clone

What a LUN clone is  Top

A LUN clone is a copy of a writable snapshot of a LUN.

What LUN clones are used for  Top

LUN clones are used to If you want to delete a snapshot of a LUN without taking the LUN offline or losing its contents, you can clone the contents of the writable snapshot of the LUN without any disruption to an application using the LUN. After the clone operation is complete, you can delete the snapshot.

Note
Cloning is not NVLOG protected, so if the filer panics during a clone operation, the operation is restarted from the beginning on a reboot or takeover.

With the lun clone command, you start and stop the operation, display all the LUNs being cloned, and display the progress of the operation.

Starting the cloning process  Top

To clone a LUN, complete the following step.

Step

Action

1

Begin the clone operation by entering the following command:

lun clone start lun_clone_path 

Displaying the progress of the clone operation  Top

To display the progress of the clone operation, complete the following step.

Step

Action

1

Enter the following command:

lun clone status lun_clone_path 

Displaying all the clones  Top

To display all the clones, complete the following step.

Step

Action

1

Enter either of the following commands:

lun clone show [lun-path]
lun show -c

Stopping the cloning process  Top

If you need to stop the clone process, complete the following step.

Step

Action

1

Enter the following the command:

lun clone stop lun-path 

Library Table of Contents Index Previous Next Comments