Use LUN clones to create multiple readable, writable copies of a LUN.
Before You Begin
Before you can clone a LUN, you must create a Snapshot copy (the backing Snapshot copy) of the LUN you want to clone.
Considerations
Note that a space-reserved LUN clone requires as much space as the space-reserved parent LUN. If the clone is not space-reserved, make sure the volume has enough space to accommodate changes to the clone.
Steps
-
Create a LUN by entering the following command:lun create -s size -t lun type lun_path
Example
lun create -s 100g -t solaris /vol/vol1/lun0
-
Create a Snapshot copy 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
-
Create the LUN clone by entering the following command:lun clone create clone_lun_path -bparent_lun_path parent_snap
clone_lun_path is the path to the clone you are creating, for example, /vol/vol1/lun0clone.
parent_lun_path is the path to the original LUN.
parent_snap is the name of the Snapshot copy of the original LUN.
Example
lun clone create /vol/vol1/lun0clone -b vol/vol1/lun0 mysnap
The LUN clone is created.