-
Notifications
You must be signed in to change notification settings - Fork 30
install mega status
Been Kyung-yoon edited this page Nov 10, 2023
·
1 revision
MegaRAID 컨틀롤러의 구성 상태 확인하는 /root/mega-status.sh 를 설치하는 방법입니다.
# MegaCLI 다운로드, 해시 검증(23.11.10)
cd ~ && mkdir MegaCLI && cd MegaCLI
wget https://docs.broadcom.com/docs-and-downloads/raid-controllers/raid-controllers-common-files/8-07-14_MegaCLI.zip
echo 'd9b152ae3dab76a334b9251702dba3311ceed91b58aaf52d916eb4ba1c2ab6e9 8-07-14_MegaCLI.zip' > 8-07-14_MegaCLI.zip.sha256
sha256sum -c 8-07-14_MegaCLI.zip.sha256
unzip 8-07-14_MegaCLI.zip
cd Linux/
yum -y localinstall MegaCli-8.07.14-1.noarch.rpm
# Rocky Linux 8 - python2 및 호환성 패키지 설치
yum -y install python2 ncurses-compat-libs
# megaclisas-status 를 mega-status.sh 로 다운로드, 해시 검증(23.11.10)
cd ~
wget https://raw.githubusercontent.com/eLvErDe/hwraid/master/wrapper-scripts/megaclisas-status -O mega-status.sh
sed -i "s/^\#\!\/usr\/bin\/python$/\#\!\/usr\/bin\/python2/" mega-status.sh
head -n1 mega-status.sh
echo '37f8f41418f1cb0f390ba4f815bc64458252149d7ced194e9d6502430f5ef3a0 mega-status.sh' > mega-status.sh.sha256
sha256sum -c mega-status.sh.sha256
# MegaRAID 상태보기
chmod 700 mega-status.sh
./mega-status.sh
./mega-status.sh --nagios- 23.11.10 Rocky Linux 8 기준으로 8-07-14_MegaCLI.zip, mega-status.sh 2개 파일의 해시코드를 스크립트에 포함하여 검증. 파일 업데이트시 확인후 문서 갱신 필요.