Once in a while you come across a storage system that cannot be managed through the GUI or you just want to script or use the CLI to perform management tasks on a VNX. Recently I came across an old VNX2 which GUI wasn’t responding the way I’d like, so I decided to use the CLI instead.
In this particular case I needed to expand a LUN.
First I listed the current size:
naviseccli -h [SPA/B ip#] -user [user] -password [password] -scope [scope] getlun [LUN#]
Then I expanded the LUN to the new size:
naviseccli -h [SPA/B ip#] -user [user] -password [password] -scope [scope] lun -expand -l [LUN#] -capacity [new capacity] -sq [mb/gb/tb/bc]
Pay attention to the number and the prefix! It could be a lot of work if you needed to resize a LUN from 50GB to 60GB and instead GB, you used TB…..
And finally I checked if the new size was actually available:
naviseccli -h [SPA/B ip#] -user [user] -password [password] -scope [scope] getlun [LUN#]
Sometimes CLI is so much easier than the GUI!
Follow me on social media