NVMe Disk의 fw를 nvme-cli 툴을 통해 업그레이드 해보자.

 

사전작업:

- nvme-cli를 의존 패키지와 개별 설치하거나, yum을 통해 설치하고자 한다면, yum repository가 구성되어 있어야 한다.

- 설치하고자 하는 NVMe disk의 fw 파일을 HPE 웹사이트에서 다운로드 하여, 설치한다.

   (fw rpm package installed before. / rpm -ivh fw-name.rpm)

-- fw image는 패키지 설치 후 "/usr/lib/x86_64-linux-gnu/firmware-hdd-*/*.rel" 형태로 확인되게 됨

 

1. Install nvme-cli package.
# yum install nvme*
<snip>
===================================================================================================================================================================
Package                                     Arch                            Version                                      Repository                          Size
===================================================================================================================================================================
Installing:
nvme-cli                                    x86_64                          1.4-3.el7                                    RHEL7-DVD                          190 k
nvmetcli                                    noarch                          0.5-1.el7                                    RHEL7-DVD                           35 k
Installing for dependencies:
pyparsing                                   noarch                          1.5.6-9.el7                                  RHEL7-DVD                           94 k
python-configshell                          noarch                          1:1.1.fb23-3.el7                         RHEL7-DVD                           67 k
python-kmod                                 x86_64                          0.9-4.el7                                    RHEL7-DVD                           57 k
python-urwid                                x86_64                          1.1.1-3.el7                                  RHEL7-DVD                          654 k

요런 패키지들이 설치 됨.

 

2. Check NVMe device(s).
# nvme list
Node             SN                   Model                                    Namespace Usage                      Format           FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------

/dev/nvme0n1     <% NVMe disk SN %>   MO001600KWJSN               1           1.60  TB /   1.60  TB      4 KiB +  0 B   4ICDHPK0

 

3. fw download to NVMe drive
nvme fw-download <device> [--fw=<firmware-file> | -f <firmware-file>]

                                              [--xfer=<transfer-size> | -x <transfer-size>] [--offset=<offset> | -o <offset>]

# nvme fw-download /dev/nvme0n1 -f /usr/lib/x86_64-linux-gnu/firmware-hdd-1656c1b14a-HPK1-1.1/4ICDHPK1.rel
Firmware download success

 

4. activate fw to target device.
nvme fw-activate <device> [--slot=<slot> | -s <slot>] [--action=<action> | -a <action>]

 

 Value

 Definition

 0

 Downloaded image replaces the image indicated by the Firmware Slot field.

 This image is not activated.

 1

 Downloaded image replaces the image indicated by the Firmware Slot field.

 This image is activated at the next reset.

 2

 The image indicated by the Firmware Slot field is activated at the next reset.

 3

 The image specified by the Firmware Slot field is requested to be activated immediately without reset. 

 

# nvme fw-activate /dev/nvme0n1 -s 1 -a 1
Success activating firmware action:1 slot:1

 

5. reset for loading fw.
# nvme reset /dev/nvme0

 

6. confirm fw version.
# nvme list
Node             SN                   Model                                    Namespace Usage                      Format           FW Rev
---------------- -------------------- ---------------------------------------- --------- -------------------------- ---------------- --------
/dev/nvme0n1     <% NVMe disk SN %>   MO001600KWJSN               1           1.60  TB /   1.60  TB      4 KiB +  0 B   4ICDHPK1

#

Posted by 스쳐가는인연

댓글을 달아 주세요