EMC – Using naviseccli to change the LUN Migration priority of a LUN

I am currently working through a metric shitload of LUN migrations on one of our CX4 arrays, with the end-goal being a replacement of 60 or so 300GB FC disks with 60 600GB FC disks. This is the sort of stuff you have to do when you’re not allowed to buy new arrays (budget notwithstanding). But enough moaning.

I’ve set up a number LUN migrations to get this done, but Mat says I shouldn’t run them at a high priority during business hours. I say if the spurs fit. But whatever. With naviseccli, you can list all of the LUNs that are currently migrating on the array. Once you have this list, you can grep for the LUN IDs and modify the migration priority depending on whether it’s during or after hours.

C:\Users\dan>naviseccli -h SPA migrate -list
Source LU Name: LUN 7010
Source LU ID: 7010
Dest LU Name: LUN 6
Dest LU ID: 6
Migration Rate: HIGH
Current State: MIGRATING
Percent Complete: 89
Time Remaining: 24 minute(s)

Source LU Name: LUN 7018
Source LU ID: 7018
Dest LU Name: LUN 8
Dest LU ID: 8
Migration Rate: HIGH
Current State: MIGRATING
Percent Complete: 90
Time Remaining: 20 minute(s)

Source LU Name: LUN 600
Source LU ID: 600
Dest LU Name: LUN 1
Dest LU ID: 1
Migration Rate: MEDIUM
Current State: MIGRATING
Percent Complete: 44
Time Remaining: 8 hour(s) 23 minute(s)
[snip]

 

So let’s say I want to change the migration priority for LUN ID 7018. All I need to use is the modify command, specify the correct source ID, and the set the rate to low | medium | high | asap. I’m using -o to avoid prompting.

C:\Users\dan>naviseccli -h SPA migrate -modify -source 7018 -rate medium -o

Now I can use the -list switch to verify my work. Note that it takes the array a little while to calculate the new estimate for  Time Remaining. So if you really want to know that, give it a minute or so.

C:\Users\dan>naviseccli -h SPA migrate -list
Source LU Name: LUN 7010
Source LU ID: 7010
Dest LU Name: LUN 6
Dest LU ID: 6
Migration Rate: HIGH
Current State: MIGRATING
Percent Complete: 90
Time Remaining: 22 minute(s)

Source LU Name: LUN 7018
Source LU ID: 7018
Dest LU Name: LUN 8
Dest LU ID: 8
Migration Rate: MEDIUM
Current State: MIGRATING
Percent Complete: 91
Time Remaining: ?

Source LU Name: LUN 600
Source LU ID: 600
Dest LU Name: LUN 1
Dest LU ID: 1
Migration Rate: MEDIUM
Current State: MIGRATING
Percent Complete: 44
Time Remaining: 8 hour(s) 23 minute(s)
[snip]

C:\Users\dan>

And that’s pretty much it.