ONTAP Discussions

Renaming a LUN in Ontap 9.

DaleW
4,386 Views

Is there a command line way to rename a LUN in Ontap 9.8P10?

I saw the solution from 2012 in this forum but it doesn't work:

 

hostname::> lun move /vol/vol_test06_vol/vol_test06_lun  /vol/vol_test06_vol/yoda_test06_lun

Error: "/vol/vol_test06_vol/vol_test06_lun" is not a recognized command

1 ACCEPTED SOLUTION

TMACMD
4,350 Views

And the real command is here:

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-cmpr%2FGUID-5CB10C70-AC11-41C0-8C16-B4D0DF916E9B.html

lun move-in-volume

 

This command moves a LUN to a new path in the same volume or renames a LUN

View solution in original post

9 REPLIES 9

SpindleNinja
4,354 Views

I think you're missing a few parts of the command. Here's what I did in my 9.8 lab: 

 

WOPR::> lun move start -vserver Storage_iSCSI -source-path /vol/testvol/testlun.lun -destination-path /vol/testvol/newlun.lun

Following LUN moves have been started:
"Storage_iSCSI:/vol/testvol/testlun.lun" move to "Storage_iSCSI:/vol/testvol/newlun.lun"

  

TMACMD
4,351 Views

And the real command is here:

https://docs.netapp.com/ontap-9/index.jsp?topic=%2Fcom.netapp.doc.dot-cm-cmpr%2FGUID-5CB10C70-AC11-41C0-8C16-B4D0DF916E9B.html

lun move-in-volume

 

This command moves a LUN to a new path in the same volume or renames a LUN

DaleW
4,341 Views

Worked like a charm.  Thanks!

 

SpindleNinja
4,336 Views

I think this is the url you wanted buddy?   that just took me to the man pages over all.  

https://docs.netapp.com/ontap-9/topic/com.netapp.doc.dot-cm-cmpr-980/lun__move-in-volume.html

 

 

 

TMACMD
4,332 Views

Yeah. Sure. The “new” docs site doesn’t have that cool link feature anymore. Cutting and pasting on the phone just sticks

 

 Thanks 

jchen2022
3,824 Views

I am also looking at API to rename lun.  How does the API call looks like?  I want to use the postman to test it.  Can someone help me here?

jchen2022
3,813 Views

Looks like that API not support this argument move-in-volume.

jchen2022
3,808 Views

I got it. Using PATCH to update the lun name. Thanks

Public