ONTAP Discussions

Renaming a LUN in Ontap 9.

DaleW

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

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

5 REPLIES 5

SpindleNinja

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"

  

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

Worked like a charm.  Thanks!

 

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

 

 

 

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

 

 Thanks 

Public