Data Backup and Recovery

When i issue a lun clone create i get the error "lun clone create: File exists"

fcantisano
3,568 Views

The antefacts are:

Whe had a failover when the lune clone was in execution

Now If we issue

lun clone create /vol/vol_mouse_mysql_polopoly_test51/clone -b /vol/vol_mouse_mysql_polopoly_test51/lun0 -o noreserve ss_clone_vol_mouse_mysql_polopoly_test51

we get

lun clone create: File exists

and If we try to destroy it

lun destroy: /vol/vol_mouse_mysql_polopoly_test51/clone : No such LUN exists

(also if we use the -f option)


So it seems that, during the failover, some files/pointer have not been cleaned well.

However we are able to create a clone and drop it using a new name (i.e. clone2 instead of clone)

lun clone create /vol/vol_mouse_mysql_polopoly_test51/clone2 -b /vol/vol_mouse_mysql_polopoly_test51/lun0 -o noreserve ss_clone_vol_mouse_mysql_polopoly_test51

So we could use this workaround (new lun clone names).

Does anyone can suggest how could we fix the problem?

Regards,

fc

1 ACCEPTED SOLUTION

olson
3,568 Views

I think there is a file called clone in this directory.

This can be verified with this command

priv set advanced; ls /vol/vol_mouse_mysql_polopoly_test51

I was able to complete a clone with the name "clone" without issue.

lun show

        /vol/SCSQLV1/1/clone       139.7g (150029107200)  (r/w, online)

        /vol/SCSQLV1/1/data1       139.7g (150029107200)  (r/w, online, mapped)

Regards,

John

View solution in original post

5 REPLIES 5

kumaraysun
3,568 Views

Hi,

Can you get the output of the lun show unmapped and check if you have any luns which is unmapped.

Kumaresan

fcantisano
3,568 Views

Hi, the command returns nothing.

netapp-7> lun show unmapped

netapp-7>

Thanks

fcantisano
3,568 Views

Hi, you are right! There is this file.

Do you think is safe to rm that file (considering that clone is no mapped neither used by anyone)?

Thanks

f

olson
3,569 Views

I think there is a file called clone in this directory.

This can be verified with this command

priv set advanced; ls /vol/vol_mouse_mysql_polopoly_test51

I was able to complete a clone with the name "clone" without issue.

lun show

        /vol/SCSQLV1/1/clone       139.7g (150029107200)  (r/w, online)

        /vol/SCSQLV1/1/data1       139.7g (150029107200)  (r/w, online, mapped)

Regards,

John

olson
3,568 Views

I think there is a file called clone in this directory.

This can be verified with this command

priv set advanced; ls /vol/vol_mouse_mysql_polopoly_test51

I was able to complete a clone with the name "clone" without issue.

lun show

        /vol/SCSQLV1/1/clone       139.7g (150029107200)  (r/w, online)

        /vol/SCSQLV1/1/data1       139.7g (150029107200)  (r/w, online, mapped)

Regards,

John

Public