ONTAP Discussions
ONTAP Discussions
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
Solved! See The Solution
And the real command is here:
lun move-in-volume
This command moves a LUN to a new path in the same volume or renames a LUN
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:
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
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?
I'd start here -> https://library.netapp.com/ecmdocs/ECMLP2858435/html/resources/lun.html
Looks like that API not support this argument move-in-volume.
I got it. Using PATCH to update the lun name. Thanks