Linux & Development

mpt3sas Module 업데이트

DaehanCNI 2024. 3. 13. 17:01

 

오래된 장비를 사용하다보면 디스크가 올라오지 않는 문제가 발생할 때가 있다.

Module이 오래되어 지원하지 않는 경우가 있는데, Module을 업데이트하여 해결할 수 있다. 

 

 설치 환경

OS Rocky Linux 8.8
Kernel 4.18.0-513.18.1.el8_9.x86_64

 

1. 초기 설치 모습 

대용량 디스크가 잡히지 않는 모습

[stephen@localhost ~]$ sudo fdisk -l
Disk /dev/sda: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x85acd24f

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1  *        2048  2099199  2097152    1G 83 Linux
/dev/sda2        2099200 35653631 33554432   16G 83 Linux
/dev/sda3       35653632 52430847 16777216    8G 82 Linux swap / Solaris
/dev/sda4       52430848 62531583 10100736  4.8G  5 Extended
/dev/sda5       52432896 62531583 10098688  4.8G 83 Linux

 

커널 로그 

[stephen@localhost ~]$ sudo vi /var/log/messages
... ... ... 
Mar 13 16:01:55 localhost kernel: mpt3sas version 43.100.00.00 loaded
Mar 13 16:01:55 localhost kernel: Warning: Disabled Hardware is detected: mpt3sas:0072:1000 @ 0000:05:00.0 is no longer enabled in this release.

 

mpt3sas module 버전 확인

[stephen@localhost ~]$ modinfo mpt3sas                                                                                                                                                                                                        
filename:       /lib/modules/4.18.0-513.18.1.el8_9.x86_64/kernel/drivers/scsi/mpt3sas/mpt3sas.ko.xz
alias:          mpt2sas
version:        43.100.00.00
license:        GPL
description:    LSI MPT Fusion SAS 3.0 Device Driver
author:         Avago Technologies <MPT-FusionLinux.pdl@avagotech.com>
rhelversion:    8.9
srcversion:     16BBFEE0FC76FAA2BCB9668
alias:          pci:v00001000d000000E7sv*sd*bc*sc*i*
... ... ...
        (by default:
             SAS 2.0 & SAS 3.0 HBA - This will be disabled,
             SAS 3.5 HBA - This will be enabled) (int)
parm:           host_tagset_enable:Shared host tagset enable/disable Default: enable(1) (int)
parm:           max_queue_depth: max controller queue depth  (int)
parm:           max_sgl_entries: max sg entries  (int)
parm:           msix_disable: disable msix routed interrupts (default=0) (int)
parm:           smp_affinity_enable:SMP affinity feature enable/disable Default: enable(1) (int)
parm:           max_msix_vectors: max msix vectors (int)
parm:           irqpoll_weight:irq poll weight (default= one fourth of HBA queue depth) (int)
parm:           mpt3sas_fwfault_debug: enable detection of firmware fault and halt firmware - (default=0)
parm:           perf_mode:Performance mode (only for Aero/Sea Generation), options:
        0 - balanced: high iops mode is enabled &
        interrupt coalescing is enabled only on high iops queues,
        1 - iops: high iops mode is disabled &
        interrupt coalescing is enabled on all queues,
        2 - latency: high iops mode is disabled &
        interrupt coalescing is enabled on all queues with timeout value 0xA,
        default - default perf_mode is 'balanced' (int)

 

 

2. Package 업데이트 (mpt3sas Module)

다음 링크를 통하여 최신 Package을 다운로드

https://rhel.pkgs.org/8/elrepo-x86_64/kmod-mpt3sas-43.100.00.00-1.el8_9.elrepo.x86_64.rpm.html

 

mpt3sas Module 업데이트 

[stephen@localhost ~]$ sudo rpm -Uvh kmod-mpt3sas-43.100.00.00-1.el8_9.elrepo.x86_64.rpm 
warning: kmod-mpt3sas-43.100.00.00-1.el8_9.elrepo.x86_64.rpm: Header V4 DSA/SHA256 Signature, key ID baadae52: NOKEY
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:kmod-mpt3sas-43.100.00.00-1.el8_9################################# [100%]

 

기존 module 제거 후, module 업로드

[stephen@localhost ~]$ sudo modprobe -r mpt3sas
[stephen@localhost ~]$ sudo modprobe mpt3sas

 

mpt3sas Module 버전 확인

[stephen@localhost ~]$ modinfo mpt3sas
filename:       /lib/modules/4.18.0-513.18.1.el8_9.x86_64/weak-updates/mpt3sas/mpt3sas.ko
alias:          mpt2sas
version:        43.100.00.00
license:        GPL
description:    LSI MPT Fusion SAS 3.0 Device Driver
author:         Avago Technologies <MPT-FusionLinux.pdl@avagotech.com>
rhelversion:    8.9
srcversion:     36A4094F01980B34E2BDD55
... ... ...

 

디스크 확인

[stephen@localhost ~]$ sudo fdisk -l
Disk /dev/sda: 29.8 GiB, 32017047552 bytes, 62533296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x85acd24f

Device     Boot    Start      End  Sectors  Size Id Type
/dev/sda1  *        2048  2099199  2097152    1G 83 Linux
/dev/sda2        2099200 35653631 33554432   16G 83 Linux
/dev/sda3       35653632 52430847 16777216    8G 82 Linux swap / Solaris
/dev/sda4       52430848 62531583 10100736  4.8G  5 Extended
/dev/sda5       52432896 62531583 10098688  4.8G 83 Linux


Disk /dev/sdg: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 86E27E37-33E0-11E8-9440-0007430BA720

Device       Start        End    Sectors  Size Type
/dev/sdg1     2048     106495     104448   51M unknown
/dev/sdg2  2203648 5860532223 5858328576  2.7T unknown


Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 41765A95-EA45-11E7-95E5-0007430BA720

Device       Start        End    Sectors  Size Type
/dev/sdb1     2048     106495     104448   51M unknown
/dev/sdb2  2203648 5860532223 5858328576  2.7T unknown
/dev/sdb3   106496    2203647    2097152    1G FreeBSD UFS

Partition table entries are not in disk order.

... ... ...

 

※ 장비를 재시작 시, 예전 Module로 올라오는 문제가 발생하였다. 이러할 경우, Module을 제거 후 다시 업로드하면 된다.