Subscribe

lun clone create: A LUN exists at the path

I am getting this error on cloning a flexvol iscsi lun. any idea?

lun clone create /vol/flexvol0/iscsi_vol1 -o noreserve -b /vol/flexvol0/iscsi_vol1_clone clone_flexclone

lun clone create: A LUN exists at the path

lun clone create: A LUN exists at the path

Looking at the name of your paths I think you have the clone and parent path reversed in your command. It should be:

lun clone create /vol/flexvol0/iscsi_vol1_clone -o noreserve -b /vol/flexvol0/iscsi_vol1 clone_flexclone

BTW, it is iscsi_vol1 the name of your lun? You need to provide the full path including the name of the lun itself as you can't clone a qtree.

lun clone create: A LUN exists at the path

it still doesnt work

lun clone create /vol/flexvol0/iscsi_vol0_clone -o noreserve -b /vol/flexvol0/iscsi_vol0 clone_flexclone

lun clone create: No such snapshot

dataontap> df -h

Filesystem               total       used      avail capacity  Mounted on

/vol/vol0/               647MB      190MB      457MB      29%  /vol/vol0/

/vol/vol0/.snapshot      161MB      128MB       33MB      79%  /vol/vol0/.snapshot

/vol/flexvol0/          6216MB       45MB     6170MB       1%  /vol/flexvol0/

/vol/flexvol0/.snapshot     1554MB     1540KB     1552MB       0%  /vol/flexvol0/.snapshot

/vol/iscsi/             8192MB     8112MB       79MB      99%  /vol/iscsi/

/vol/iscsi/.snapshot     2048MB      351MB     1696MB      17%  /vol/iscsi/.snapshot

dataontap> lun show -v

        /vol/flexvol0/iscsi_vol0     3.0g (3224309760)    (r/w, online, mapped)

                Serial#: idWqJ4eE8V32

                Share: none

                Space Reservation: disabled

                Multiprotocol Type: windows_2008

                Maps: iscsi_test=1

                Occupied Size:   39.1m (40992768)    

                Creation Time: Tue Jul 26 05:23:00 GMT 2011

                Cluster Shared Volume Information: 0x0

        /vol/iscsi/iscsi_qtr/iscsi_vol0    7.9g (8488488960)    (r/w, online, mapped)

                Comment: "iscsi test"

                Serial#: idWqJ4eBac0J

                Share: none

                Space Reservation: enabled

                Multiprotocol Type: windows

                Maps: iscsi_test=0

                Occupied Size:  117.9m (123613184)   

                Creation Time: Mon Jul 25 23:51:55 GMT 2011

                Cluster Shared Volume Information: 0x0

lun clone create: A LUN exists at the path

you have to specify a snapshot name that will be used as the base of creating the clone

lun clone create <clone_lunpath> [-o noreserve] -b <parent_lunpath> <parent_snap>

if there are no snapshots for the volume, you can create one.

regards,

Mladen

lun clone create: A LUN exists at the path

Looking at the first error message:

lun clone create: A LUN exists at the path

And you lun show -v... then the error message is correct. the LUN already exists!

If you clone a LUN, you need to clone it to a location where no LUN exists.

Peter

lun clone create: A LUN exists at the path

In your original post you used clone_flexclone as a snapshot. You did not specify the snapshot in this example.

lun clone create: A LUN exists at the path

i have not created any snapshot. so you are saying in order to clone a lun (not a volume) I need to create a snapshot of the volume first?

snap list shows

dataontap> snap list

Volume vol0

working...

  %/used       %/total  date          name

----------  ----------  ------------  --------

  2% ( 2%)    1% ( 1%)  Jul 26 16:00  hourly.0      

10% ( 8%)    3% ( 2%)  Jul 26 12:00  hourly.1      

16% ( 8%)    5% ( 2%)  Jul 26 08:01  hourly.2      

22% ( 8%)    7% ( 2%)  Jul 26 00:00  nightly.0     

27% ( 8%)    9% ( 2%)  Jul 25 20:00  hourly.3      

31% ( 8%)   11% ( 2%)  Jul 25 16:00  hourly.4      

35% ( 8%)   13% ( 2%)  Jul 25 12:00  hourly.5      

38% ( 8%)   15% ( 2%)  Jul 25 00:00  nightly.1     

Volume flexvol0

working...

  %/used       %/total  date          name

----------  ----------  ------------  --------

  2% ( 2%)    0% ( 0%)  Jul 25 20:00  hourly.0      

  2% ( 0%)    0% ( 0%)  Jul 25 16:00  hourly.1      

  2% ( 0%)    0% ( 0%)  Jul 25 12:00  hourly.2      

  3% ( 0%)    0% ( 0%)  Jul 25 08:00  hourly.3      

  3% ( 0%)    0% ( 0%)  Jul 25 00:00  nightly.0     

  3% ( 0%)    0% ( 0%)  Jul 24 20:00  hourly.4      

  3% ( 0%)    0% ( 0%)  Jul 24 16:00  hourly.5      

  3% ( 0%)    0% ( 0%)  Jul 24 00:00  nightly.1     

lun clone create: A LUN exists at the path

ok so looks like I need to create a snapshot of the entire volume before I can do a do a clone of the lun?

I cannot snapshot the lun right? only a volume?

lun clone create: A LUN exists at the path

snapshot is ALWAYS the whole volume.

lun clone create: A LUN exists at the path

so a lun clone can only be created from a snapshot of a volume and not from the lun itself?