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!
The actual output of the 3 commands was:
naviseccli -h 10.200.200.1 -user adminabc -password V@rY$ecreT -scope 2 getlun 1
Prefetch size (blocks) = N/A
Prefetch multiplier = N/A
Segment size (blocks) = N/A
Segment multiplier = N/A
Maximum prefetch (blocks) = N/A
Prefetch Disable Size (blocks) = N/A
Prefetch idle count = N/APrefetching: N/A
Prefetched data retained: N/ARead cache configured according to
specified parameters.Name TEST ROB
Minimum latency reads N/ARAID Type: N/A
RAIDGroup ID: N/A
State: Bound
Stripe Crossing: 0
Element Size: 0
Current owner: SP A
Offset: N/A
Auto-trespass: DISABLED
Auto-assign: DISABLED
Write cache: ENABLED
Read cache: ENABLED
Idle Threshold: N/A
Idle Delay Time: N/A
Write Aside Size: 0
Default Owner: SP A
Rebuild Priority: N/A
Verify Priority: N/A
Prct Reads Forced Flushed: N/A
Prct Writes Forced Flushed: N/A
Prct Rebuilt: 100
Prct Bound: N/A
LUN Capacity(Megabytes): 1024
LUN Capacity(Blocks): 2097152
UID: 60:06:01:60:18:A0:3B:01:EF:76:B2:56:98:E8:E8:11
Is Private: NO
Snapshots List: Not Available
MirrorView Name if any: Not Available
the actual expansion:
C:\Windows\system32>naviseccli -h 10.200.200.1 -user adminabc -password V@rY$ecreT -scope 2 lun -expand -l 1 -capaci
ty 10 -sq gb
Are you sure you want to perform this operation?(y/n): y
And to verify if it worked:
naviseccli -h 10.200.200.1 -user adminabc -password V@rY$ecreT -scope 2 getlun 1
Prefetch size (blocks) = N/A
Prefetch multiplier = N/A
Segment size (blocks) = N/A
Segment multiplier = N/A
Maximum prefetch (blocks) = N/A
Prefetch Disable Size (blocks) = N/A
Prefetch idle count = N/APrefetching: N/A
Prefetched data retained: N/ARead cache configured according to
specified parameters.Name TEST ROB
Minimum latency reads N/ARAID Type: N/A
RAIDGroup ID: N/A
State: Bound
Stripe Crossing: 0
Element Size: 0
Current owner: SP A
Offset: N/A
Auto-trespass: DISABLED
Auto-assign: DISABLED
Write cache: ENABLED
Read cache: ENABLED
Idle Threshold: N/A
Idle Delay Time: N/A
Write Aside Size: 0
Default Owner: SP A
Rebuild Priority: N/A
Verify Priority: N/A
Prct Reads Forced Flushed: N/A
Prct Writes Forced Flushed: N/A
Prct Rebuilt: 100
Prct Bound: N/A
LUN Capacity(Megabytes): 10240
LUN Capacity(Blocks): 20971520
UID: 60:06:01:60:18:A0:3B:01:EF:76:B2:56:98:E8:E8:11
Is Private: NO
Snapshots List: Not Available
MirrorView Name if any: Not Available
0 Comments.