Microsemi Adaptec RAID 8405 がある. Adaptec Series 8 シリーズ品
https://storage.microsemi.com/en-us/support/raid/sas_raid/asr-8405/
「lspci -v」でみると
01:00.0 RAID bus controller: Adaptec Series 8 12G SAS/PCIe 3 (rev 01)
Subsystem: Adaptec Device 0562まずは現状確認. ツール arcconf をインストールします.
上記製品サポートURLから「Storage Manager Downloads」をクリックして「Adaptec Event Monitor v3.07.23980」(adaptec_event_monitor_v3_07_23980.zip, 95MB)を入手します
[root@c2 ~]# mkdir adaptec
[root@c2 ~]# cd adaptec/
[root@c2 adaptec]# unzip ../adaptec_event_monitor_v3_07_23980.zip
[root@c2 adaptec]# dnf localinstall ./ASM-EVENTMONITOR-LINUX64-ADAP/cdrom1/linux_x64/cmdline/EventMonitor-3.07-23980.x86_64.rpmっで確認
[root@c2 adaptec]# /usr/Adaptec_Event_Monitor/arcconf getconfig 1 |less
:
Controller Status : Optimal
Controller Mode : RAID (Expose RAW)
Channel description : SAS/SATA
Controller Model : Adaptec ASR8405
Controller Serial Number : 5C0463003A6
Controller World Wide Name : 50000D170002AA00
Controller Alarm : Disabled
:
BIOS : 7.18-0 (33556)
Firmware : 7.18-0 (33556)
Driver : 1.2-1 (50983)
Boot Flash : 7.18-0 (33556)
:
[root@c2 adaptec]#次にfirmwareを取得します
上記製品サポートURLから「Bios Updates and Other Downloads」をクリックして「Adaptec RAID 8405 Firmware Build 33556」(8405_fw_b33556.zip, 3.7MB)を取得します
っでfiremwareはこの時点で最新の模様( 33556 ) なのでupdateは不要ですが、更新方法は下記のようにして行います
「8405_fw_b33556.zip」の中にある「AS840501.ufi」を取り出して、
[root@c2 ~]# /usr/Adaptec_Event_Monitor/arcconf ROMUPDATE 1 AS840501更新後に再起動すればok
AdaptecRAIDの管理コンソールツール maxView Storage Manager .
そこに含まれる障害時発送メール(Javamail 1.4.7)は、昔ながらの TLS 1.0/1.1 には対応しているが、今主流の TLS 1.2 には未対応である。
なので TLS対応無し で請けてくれるSMTPを探して転送をお願いするか、間に中継(SMTPリレー)を用意してSMTPに渡すかになる.
当初、SMTPの受け入れ側で office365 を念頭にしたが、調べるとハードルが高い. direct send方式を採用すればいけそうだが、無理でした...
資料: https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365
ならばと、回線プロバイダーのSMTPを利用することにした.

SMTPリレーの構築. rockylinux9のpostfix(v 3.5.9)を使います
[root@rockylinux9 ~]# cat /etc/redhat-release
Rocky Linux release 9.4 (Blue Onyx)
[root@rockylinux9 ~]# dnf install postfix
[root@rockylinux9 ~]# vi /etc/postfix/main.cf
(定義済みの「smtp_tls_security_level=may」は行削除)
(末尾に下記を追記)
smtp_tls_security_level = encrypt
smtp_tls_wrappermode = yes
transport_maps = hash:/etc/postfix/transport
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/relay_password
smtp_sasl_security_options = noanonymous
smtp_tls_loglevel = 1
[root@rockylinux9 ~]#/etc/postfix/transportは、postfixの対応を示したもので、localhost, localhost.localdomain, 自ホスト(rockylinux9.sybyl.local)はpostfixで処理するが、それ以外「*」は外部のSMTPに流すという意味です
ここでは回線プロバイダが提供している「vsmtp.xxxxxxxx.jp」に投げます. このファイルですが、postmap コマンドでハッシュ化させて、平文の「/etc/postfix/transport」を削除します.
postfixは「/etc/postfix/transport.db」を参照します
[root@rockylinux9 ~]# vi /etc/postfix/transport
localhost :
localhost.localdomain :
rockylinux9.sybyl.local :
* smtp:[vsmtp.xxxxxxxx.jp]:465
[root@rockylinux9 ~]# postmap hash:/etc/postfix/transport
[root@rockylinux9 ~]# ls -l /etc/postfix/transport*
-rw-r--r--. 1 root root 97 Oct 18 18:42 /etc/postfix/transport
-rw-r--r--. 1 root root 12288 Oct 18 18:42 /etc/postfix/transport.db
[root@rockylinux9 ~]# rm /etc/postfix/transport次に「/etc/postfix/relay_password」を作ります. こちらはSMTPへのお願いするときに認証が要求されます. その認証用のアカウントとパスワードを記載したものです.
こちらも平文は残したくないので、postmap コマンドでハッシュ化させて、オリジナルの「/etc/postfix/relay_password」は削除します.
[root@rockylinux9 ~]# vi /etc/postfix/relay_password
[vsmtp.xxxxxxxx.jp]:465 <メールアドレス>:<パスワード>
[root@rockylinux9 ~]# postmap hash:/etc/postfix/relay_password
[root@rockylinux9 ~]# rm /etc/postfix/relay_passwordこれで準備が整ったので、postfixを起動させます.
[root@rockylinux9 ~]# systemctl enable postfix --now次に「maxView Storage Manager」側の設定
「maxView Storage Manager」に入って左ツリーの根本「Enterprise View」を選択して、上部メニューの「System」から「System Setting」を開きます
「SMTP」欄を開いて「Enable Email Notification」を有効にして「SMTP Server Address」を自ホスト(localhost)にします. 自ホストでSMTPリレーのpostfixを動かしているから
「SMTP Server Port」はそのままです。25だからとfirewall-cmdで25の穴を作る必要はないです. 自ホストなので不要

次に「Sender Information」ですが、「Use Secure Mail Server」はチャックなし.「User Name/EMail Address」は通知メールの差出人となります。存在するメールアドレスを入力します

あとは「Email」欄を開いて通知先を入力します. その際現象の程度に応じることができそう. その設定が終わったら「Send Test Email」ボタンを押下して実際にメールが届くか確認します
文面はこんな感じでした
MICROSEMI EMAIL NOTIFICATION MANAGER (Instant)
Event Type: Informational
Event Source: storage@rockylinux9.sybyl.local
Date: 10/18/2024
Time: 09:56:18 PM JST
EVENT LIST
This is a test event.
**[Note]: This message was generated by the maxView Storage Manager. Please do not reply to this message.注意点
他の目的に転用されないように注意かな.
旧製品の Series 8 な製品に対応する maxView Storage Manager を Rockylinux9にインストールするには
インストール前に
[root@rockylinux9 ~]# mkdir /etc/init.dと「/etc/init.d」を作ってから maxView Storage Manager をインストールします。本来はサポート外みたい
現行製品群(2024.10)
https://storage.microsemi.com/en-us/support/
OS標準の Adaptec ドライバ aacraid でもいいのですが、これを更新してみる
OS標準品は
[root@c2 ~]# modinfo aacraid
:
filename: /lib/modules/5.14.0-503.14.1.el9_5.x86_64/kernel/drivers/scsi/aacraid/aacraid.ko.xz
version: 1.2.1[50983]-custom
license: GPL
description: Dell PERC2, 2/Si, 3/Si, 3/Di, Adaptec Advanced Raid Products, HP NetRAID-4M, IBM ServeRAID & ICP SCSI driver
author: Red Hat Inc and Adaptec
rhelversion: 9.5
:
[root@c2 ~]#と「1.2.1[50983]-custom」らしい
現在の環境は
[root@c2 ~]# cat /etc/redhat-release
Rocky Linux release 9.5 (Blue Onyx)
[root@c2 ~]# uname -r
5.14.0-503.14.1.el9_5.x86_64
[root@c2 ~]#である。Adaptec 提供のソースコードは「aacraid-linux-src-1.2.1-60001.tgz」と version 1.2.1-60001 のようでversionは同じながらリビジョンが上がっている
これを入れてみる.
[root@c2 ~]# tar xf aacraid-dkms-1.2.1.60001.tgz rpm/aacraid-1.2.1.60001-1dkms.noarch.rpm
[root@c2 ~]# dnf localinstall ./rpm/aacraid-1.2.1.60001-1dkms.noarch.rpm
[root@c2 ~]# dkms status
aacraid/1.2.1.60001: added
[root@c2 ~]# dkms build aacraid/1.2.1.60001
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/aacraid/1.2.1.60001/source/dkms.conf)
Sign command: /lib/modules/5.14.0-570.28.1.el9_6.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Building module(s)...(bad exit status: 2)
Failed command:
make -j4 KERNELRELEASE=5.14.0-570.28.1.el9_6.x86_64 -C /lib/modules/5.14.0-570.28.1.el9_6.x86_64/build M=/var/lib/dkms/aacraid/1.2.1.60001/build
Error! Bad return status for module build on kernel: 5.14.0-570.28.1.el9_6.x86_64 (x86_64)
Consult /var/lib/dkms/aacraid/1.2.1.60001/build/make.log for more information.
[root@c2 ~]#エラーでコンパイルできないみたい.
gcc-toolkitで上げてみたけど、それもだめ。