Upgrade microcode disků na Storwize

Od nějaké verze 7.5.x.x přidali hoši z IBM/Lenova do GUI možnost upgrade microcode u disků (Monitoring>System>Action/Update>Drives), což je dobrý počin, jako opravdu bez ironie nebo sarkasmu, protože do té doby se to dělalo jen z comandlajny.
Jen takový detail ještě nedoladili, a to když nenajde v balíku mikrokódů k nějakému disku zastrčeném v poli update, tak to z GUI skončí chybou: …the specified file does not contain an image for that drive’s technology… A neprovede se ale update u žádného disku.Takže zpátky na stromy, teda do cmd.

1. Stáhneme pscp.exe a přes cmd si nalejeme microcode do Storwize:
pscp.exe Lenovo_6099_DRIVE_20160111 superuser@192.168.2.110:/home/admin/upgrade
superuser@192.168.2.110’s password:
Lenovo_6099_DRIVE_2016011 | 22837 kB | 22837.4 kB/s | ETA: 00:00:00 | 100%

2. Přes SSH se přihlásíme do Storwize a zkontrolujeme verze na discích:
svcinfo lsdrive -nohdr |while read did error use;do svcinfo lsdrive $did |while read id value;do if [[ $id == „firmware_level“ ]];then echo $did“   „$value;fi;done;done
0   B679
1   B679
2   B679
3   BD44
4   BD44
5   BD44

3.  Uděláme update postupně na discích:
for did in 0 1 2;do echo „Updating drive „$did;svctask applydrivesoftware -file Lenovo_6099_DRIVE_20160111 -type firmware -drive $did;sleep 10s;done
Updating drive 0
CMMVC6568E The Apply Drive Software task cannot be initiated because for at least one of the specified drives, the specified file does not contain an image for that drive’s technology.
Updating drive 1
CMMVC6568E The Apply Drive Software task cannot be initiated because for at least one of the specified drives, the specified file does not contain an image for that drive’s technology.
Updating drive 2
CMMVC6568E The Apply Drive Software task cannot be initiated because for at least one of the specified drives, the specified file does not contain an image for that drive’s technology.

for did in 3 4 5;do echo „Updating drive „$did;svctask applydrivesoftware -file Lenovo_6099_DRIVE_20160111 -type firmware -drive $did;sleep 10s;done
Updating drive 3
Updating drive 4
Updating drive 5

4. Zkontrolujeme, že se opravdu na disku 3-5 update opravdu udělal:
svcinfo lsdrive -nohdr |while read did error use;do svcinfo lsdrive $did |while read id value;do if [[ $id == „firmware_level“ ]];then echo $did“   „$value;fi;done;done
0   B679
1   B679
2   B679
3   BD48
4   BD48
5   BD48

 

 

 

About Author:

Error! Keyboard not detected. Press any key to continue.