2022년 4월 20일 우분투 22.04 LTS가 새로 배포 되었습니다.
스토리지에 들어가는 MegaRAID 관련 우분투 22.04 설치후 레이드 툴 설치 되는지 확인 하였는데 기존 우분투 20.04 설치와 동일하게 진행시 약간의 수정과 패키지 설치가 필요 했습니다.
설치는 레이드 구성시 사용하는 msm 프로그램과 MegaCli 진행 하며 하단 설치 과정을 참고 하시기 바랍니다.
- debian 계열에서 설치하기 위한 alien 패키지 설치
# apt install alien
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
..
.. - MSM_linux_x64_installer 다운로드
# wget https://ftp.icm.edu.pl/packages/LSI/sw/MSM_linux_x64_installer-16.11.00-03.tar.gz
–2022-04-26 00:17:41– https://ftp.icm.edu.pl/packages/LSI/sw/MSM_linux_x64_installer-16.11.00-03.tar.gz
Resolving ftp.icm.edu.pl (ftp.icm.edu.pl)… 193.219.28.2, 2001:6a0:0:31::2
Connecting to ftp.icm.edu.pl (ftp.icm.edu.pl)|193.219.28.2|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 110725068 (106M) [application/x-gzip]
Saving to: ‘MSM_linux_x64_installer-16.11.00-03.tar.gz’MSM_linux_x64_installer-16.11.00-03.tar.gz 100%[================================================
2022-04-26 00:17:56 (7.80 MB/s) – ‘MSM_linux_x64_installer-16.11.00-03.tar.gz’ saved [110725068/110725068]
- 압축 풀기
# tar xvfz MSM_linux_x64_installer-16.11.00-03.tar.gz
disk/
disk/msm-readme_linux_x64.txt
disk/LSI-AdapterSAS.mib
disk/RunRPM.sh
disk/sas_snmp-16.11-0003.x86_64.rpm
disk/RunRPM_vmware.sh
disk/Lib_Utils2-1.00-08.noarch.rpm
disk/MegaRAID_Storage_Manager-16.11.00-03.noarch.rpm
disk/deleteOldVersion.sh
disk/install.csh
disk/readme.txt
disk/LSI-AdapterSASIR.mib
disk/sas_ir_snmp-16.11-0003.x86_64.rpm
disk/vmware_install.sh# cd disk/
- rpm 파일 deb 변환
# alien –scripts *.rpm
lib-utils2_1.00-9_all.deb generated
megaraid-storage-manager_16.11.00-4_all.deb generated
sas-ir-snmp_16.11-4_amd64.deb generated
sas-snmp_16.11-4_amd64.deb generated# dpkg -i lib-utils2_1.00-9_all.deb
Selecting previously unselected package lib-utils2.
(Reading database … 80541 files and directories currently installed.)
Preparing to unpack lib-utils2_1.00-9_all.deb …
Installing….
Unpacking lib-utils2 (1.00-9) …
Setting up lib-utils2 (1.00-9) …# dpkg -i megaraid-storage-manager_16.11.00-4_all.deb
Selecting previously unselected package megaraid-storage-manager.
(Reading database … 80559 files and directories currently installed.)
Preparing to unpack megaraid-storage-manager_16.11.00-4_all.deb …
Installing….
Unpacking megaraid-storage-manager (16.11.00-4) …
Setting up megaraid-storage-manager (16.11.00-4) …
/
/
/
/etc/X11/xinit/xinitrc.d
Processing triggers for libc-bin (2.35-0ubuntu3) … - vivaldiframeworkd 시작 서비스로 등록
# update-rc.d vivaldiframeworkd defaults
# find /etc/ |grep vival
/etc/rc4.d/S01vivaldiframeworkd
/etc/rc2.d/S01vivaldiframeworkd
/etc/rc3.d/S01vivaldiframeworkd
/etc/rc5.d/S01vivaldiframeworkd
/etc/rc6.d/K01vivaldiframeworkd
/etc/rc0.d/K01vivaldiframeworkd
/etc/init.d/vivaldiframeworkd - vivaldiframeworkd 서비스 시작
# systemctl start vivaldiframeworkd
# systemctl status vivaldiframeworkd
● vivaldiframeworkd.service – LSB: Framework serice startup/shutdown script
Loaded: loaded (/etc/init.d/vivaldiframeworkd; generated)
Active: active (running) since Tue 2022-04-26 00:29:53 UTC; 4s ago
Docs: man:systemd-sysv-generator(8)
Process: 19154 ExecStart=/etc/init.d/vivaldiframeworkd start (code=exited, status=0/SUCCESS)
Tasks: 40 (limit: 38335)
Memory: 99.9M
CPU: 1.841s
..
..# netstat -anlp | grep 3071
tcp 0 0 0.0.0.0:3071 0.0.0.0:* LISTEN 19162/../jre/bin/ja
udp 0 0 0.0.0.0:3071 0.0.0.0:* 19162/../jre/bin/ja - MegaCLI 패키지 다운로드
# wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
–2022-04-26 00:36:18– https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
Resolving docs.broadcom.com (docs.broadcom.com)… 104.18.4.158, 104.18.5.158, 2606:4700::6812:49e, …
Connecting to docs.broadcom.com (docs.broadcom.com)|104.18.4.158|:443… connected.
HTTP request sent, awaiting response… 200 OK
Length: 7939395 (7.6M) [application/octet-stream]
Saving to: ‘8-07-14_MegaCLI.zip’8-07-14_MegaCLI.zip 100%[===============================================================================
2022-04-26 00:36:18 (109 MB/s) – ‘8-07-14_MegaCLI.zip’ saved [7939395/7939395]
- 압축 해제
# unzip 8-07-14_MegaCLI.zip
Archive: 8-07-14_MegaCLI.zip
inflating: 8.07.14_MegaCLI.txt
inflating: DOS/MegaCLI.exe
extracting: FreeBSD/MegaCLI.zip
extracting: FreeBSD/MegaCli64.zip
inflating: Linux/MegaCli-8.07.14-1.noarch.rpm
inflating: Solaris/MegaCli.pkg
inflating: Windows/MegaCli.exe
inflating: Windows/MegaCli64.exe - rpm 파일 deb로 변경
# cd Linux
# ls
MegaCli-8.07.14-1.noarch.rpm# alien MegaCli-8.07.14-1.noarch.rpm
Warning: Skipping conversion of scripts in package MegaCli: postinst postrm
Warning: Use the –scripts parameter to include the scripts.
megacli_8.07.14-2_all.deb generated - 설치
# dpkg -i megacli_8.07.14-2_all.deb
Selecting previously unselected package megacli.
(Reading database … 84753 files and directories currently installed.)
Preparing to unpack megacli_8.07.14-2_all.deb …
Unpacking megacli (8.07.14-2) …
Setting up megacli (8.07.14-2) …# ls /opt/MegaRAID/MegaCli/
libstorelibir-2.so.14.07-0 MegaCli MegaCli64# cp /opt/MegaRAID/MegaCli/MegaCli64 /bin/MegaCli
‘MegaCli64’ -> ‘/bin/MegaCli’ - MegaCli 상태 확인
# MegaCli -PhyErrorCounters -aAll
MegaCli: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory# apt install libncurses5
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
libtinfo5
The following NEW packages will be installed:
libncurses5 libtinfo5
0 upgraded, 2 newly installed, 0 to remove and 5 not upgraded.
Need to get 206 kB of archives.
After this operation, 879 kB of additional disk space will be used.
Do you want to continue? [Y/n]# MegaCli -PhyErrorCounters -aAll
Adapter #0
================
Phy No. 0 is Disabled.Exit Code: 0x00
# MegaCli -PDList -aAll -NoLog | egrep “Slot Number:|Error|Inquiry Data:|state”
Slot Number: 0
Media Error Count: 0
Other Error Count: 0
Firmware state: Online, Spun Up
Inquiry Data: ZFN0941AST4000DM004-2CV104 0001
Slot Number: 1
Media Error Count: 0
Other Error Count: 0
Firmware state: Online, Spun Up
Inquiry Data: ZFN093MQST4000DM004-2CV104 0001
..
.. - megaclisas-status 모니터링 파일 생성
# vi /bin/megaclisas-status
– https://raw.githubusercontent.com/eLvErDe/hwraid/master/wrapper-scripts/megaclisas-status 에서 소스 복사 붙여 넣는다.# chmod 755 /bin/megaclisas-status
mode of ‘/bin/megaclisas-status’ changed from 0644 (rw-r–r–) to 0755 (rwxr-xr-x)# megaclisas-status
-bash: /usr/bin/megaclisas-status: /usr/bin/python: bad interpreter: No such file or directory# head -n 1 /bin/megaclisas-status
#!/usr/bin/python# sed -i “s/python/python3/g” /bin/megaclisas-status
# head -n 1 /bin/megaclisas-status
#!/usr/bin/python3# megaclisas-status
— Controller information —
— ID | H/W Model | RAM | Temp | BBU | Firmware
c0 | LSI MegaRAID SAS 9260-16i | 512MB | N/A | Absent | FW: 12.15.0-0239— Array information —
— ID | Type | Size | Strpsz | Flags | DskCache | Status | OS Path | CacheCade |InProgress
c0u0 | RAID-10 | 29105G | 256 KB | RA,WT | Default | Optimal | /dev/sdb | None |None— Disk information —
— ID | Type | Drive Model | Size | Status | Speed | Temp | Slot ID | LSI ID
c0u0s0p0 | HDD | ST4000DM004-2CV104 0001 ZFN0941A | 3.637 TB | Online, Spun Up | 6.0Gb/s | 33C | [245:0] | 18
c0u0s0p1 | HDD | ST4000DM004-2CV104 0001 ZFN093MQ | 3.637 TB | Online, Spun Up | 6.0Gb/s | 33C | [245:1] | 17
..
..