-
LINUX Megaraid 설치를 통한 DISK 관리하기System of Infra/Linux System 2022. 7. 24. 00:03728x90반응형
LINUX Megaraid 설치를 통한 DISK 관리하기
메가레이드란?
- 시스템의 SOFT RAID 구성이 아닌 BIOS에서 RAID를 구성시 시스템 운영체제에서 하드웨어의 RAID 구성을 관리할 수 있도록 RAID 구성 및 디스크 상태를 체크 및 정보를 사용할 수 있습니다.
- MegaCLT 명령을 사용하여, RAID 구성 및 디스크 상태 체크 및 정보를 확인 할 수 있다.[root@test_linux ~]# dnf list | grep -i unzip unzip.x86_64 6.0-41.el8 @anaconda
▶ 리눅스 서버에 메가레이드 파일을 업로드 하기전에 unzip 패키지가 설치되어 있는지 확인합니다. 없을 경우 웹사이트를 통해서 다운로드 후 설치하시면 됩니다.
[root@test_linux ~]# dnf -y install unzip Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. RHEL8DVD_AppStream 3.1 MB/s | 3.2 kB 00:00 RHEL8DVD_BaseOS 2.7 MB/s | 2.7 kB 00:00 Package unzip-6.0-41.el8.x86_64 is already installed. 종속성이 해결되었습니다. 할 것이 없음. 완료되었습니다!
▶ dnf 명령어를 통해서 unzip 패키지를 설치 하도록 합니다. 설치가 되어 있는 경우는 update가 되기도 합니다.
C:\Users>sftp guestadmin@192.168.111.58 guestadmin@192.168.111.58's password: Connected to 192.168.111.58. sftp> hash Invalid command. sftp> bin Invalid command. sftp> put 8-07-14_MegaCLI.zip Uploading 8-07-14_MegaCLI.zip to /home/guestadmin/8-07-14_MegaCLI.zip 8-07-14_MegaCLI.zip 100% 7753KB 68.6MB/s 00:00
▶ Megaraid 설치파일을 sftp를 통해서 해당 서버에 업로드합니다.
[root@test_linux guestadmin]# mv 8-07-14_MegaCLI.zip /usr/local/src/
▶ 업로드한 Megaraid 파일을 mv 명령어를 통해서 /usr/local/src 디렉터리로 이동합니다.
[root@test_linux src]# ls -ltr -rw-rw-r-- 1 guestadmin guestadmin 7939395 7월 21 10:48 8-07-14_MegaCLI.zip [root@test_linux src]# 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
▶ /usr/logcal/src 디렉터리에 8-07-14_MegaCLI.zip 파일이 업로드되었고 unzip 패키지를 통해서 압축을 풀어줍니다.
[root@test_linux src]# ls -ltr -rw-r--r-- 1 root root 48298 1월 19 2014 8.07.14_MegaCLI.txt -rw-rw-r-- 1 guestadmin guestadmin 7939395 7월 21 10:48 8-07-14_MegaCLI.zip drwxr-xr-x 2 root root 25 7월 21 10:50 DOS drwxr-xr-x 2 root root 46 7월 21 10:50 FreeBSD drwxr-xr-x 2 root root 42 7월 21 10:50 Linux drwxr-xr-x 2 root root 25 7월 21 10:50 Solaris drwxr-xr-x 2 root root 46 7월 21 10:50 Windows
▶ unzip을 통해서 Megaraid 압축을 풀게 되면 여러 가지 OS에 맞는 패키지의 파일들이 보입니다. 리눅스 시스템에 설치를 하기 위해서 Linux 디렉터리로 이동합니다.
[root@test_linux Linux]# ls -ltr -rw-r--r-- 1 root root 1549650 12월 16 2013 MegaCli-8.07.14-1.noarch.rpm
▶ MegaCli-8.07.14-1.noarch.rpm 파일을 확인합니다.
[root@test_linux Linux]# rpm -ivh MegaCli-8.07.14-1.noarch.rpm Verifying... ################################# [100%] 준비 중... ################################# [100%] Updating / installing... 1:MegaCli-8.07.14-1 ################################# [100%]
▶ MegaCli-8.07.14-1.noarch.rpm을 rpm 명령어를 통해서 설치합니다.
[root@test_linux Linux]# rpm -qa | grep -i MegaCli MegaCli-8.07.14-1.noarch
▶ MegaCli-8.07.14-1.noarch.rpm 패키지 파일이 설치 완료된 것을 확인할 수 있습니다.
[root@test_linux /]# cd /opt/MegaRAID/MegaCli/ [root@test_linux MegaCli]# ls -ltr | grep -i Mega -rwxr-xr-x 1 root root 2720320 12월 16 2013 MegaCli64 lrwxrwxrwx 1 root root 48 7월 21 10:51 libstorelibir-2.so -> /opt/MegaRAID/MegaCli/libstorelibir-2.so.14.07-0
▶ /opt/MedaRAID/MegaCli 디렉터리에 패키지들이 나열되어 있습니다.
[root@test_linux MegaCli]# ln -s /opt/MegaRAID/MegaCli/MegaCli64 /usr/bin/megacli
▶ Megaraid 디렉터리에서 해당 명령어를 수행하기 위해서 심볼릭 링크 설정을 해주도록 합니다.
[root@test_linux bin]# ls -al | grep -i mega lrwxrwxrwx 1 root root 31 7월 21 10:55 megacli -> /opt/MegaRAID/Megacli/Megacli64
▶ 심볼릭 링크를 설정하게 되면 megacli 명령어가 해당 /opt/MegaRAID/Megacli/Megacli64로 설정이 되었고 소유권 표시에 l로 표시가 됩니다.
[root@test_linux MegaCli]# ./MegaCli64 -pdlist -aall ./MegaCli64: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
▶ /usr/bin/megacli로 이동후 Megaraid 대표 명령어인 MegaCli64 -pdlist -aall을 수행합니다.
수행 시 libncures.so.5 파일이 없다는 Error 메시지가 출력되면 해당 패키지를 설치해줘야 합니다.[root@test_linux bin]# dnf -y install ncurses* Updating Subscription Management repositories. Unable to read consumer identity This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. 마지막 메타 데이터 만료 확인 : 0:23:11 전에 2022년 07월 21일 (목) 오전 10시 42분 56초. Package ncurses-6.1-7.20180224.el8.x86_64 is already installed. Package ncurses-base-6.1-7.20180224.el8.noarch is already installed. Package ncurses-libs-6.1-7.20180224.el8.x86_64 is already installed. 종속성이 해결되었습니다. ================================================================================================================================================================ 꾸러미 아키텍처 버전 리포지토리 크기 ================================================================================================================================================================ Installing: ncurses-c++-libs x86_64 6.1-7.20180224.el8 localrepo_BaseOS 58 k ncurses-compat-libs x86_64 6.1-7.20180224.el8 localrepo_BaseOS 331 k ncurses-devel x86_64 6.1-7.20180224.el8 localrepo_BaseOS 528 k ncurses-term noarch 6.1-7.20180224.el8 localrepo_BaseOS 557 k 거래 요약 ================================================================================================================================================================ ...(생략) 설치됨: ncurses-c++-libs-6.1-7.20180224.el8.x86_64 ncurses-compat-libs-6.1-7.20180224.el8.x86_64 ncurses-devel-6.1-7.20180224.el8.x86_64 ncurses-term-6.1-7.20180224.el8.noarch 완료되었습니다!
▶ dnf -y install ncurses* 명령어를 통해서 ncurse로 시작되는 패키지를 모두 설치합니다.
[root@test_linux bin]# megacli -pdlist -aall Adapter #0 Enclosure Device ID: 64 Slot Number: 0 Drive's position: DiskGroup: 0, Span: 0, Arm: 0 Enclosure position: 1 Device Id: 1 WWN: 5ace42e02535d9a6 Sequence Number: 2 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SATA Raw Size: 894.252 GB [0x6fc81ab0 Sectors] Non Coerced Size: 893.752 GB [0x6fb81ab0 Sectors] Coerced Size: 893.75 GB [0x6fb80000 Sectors] Sector Size: 512 Firmware state: Online, Spun Up Device Firmware Level: DZ02 Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x3f4ee0801b806a08 Connected Port Number: 8(path0) Inquiry Data: BDA8N5824I1408M1PHFS960G3H2X069N DZ02 FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Solid State Device Drive Temperature :34C (93.20 F) PI Eligibility: No Drive is formatted for PI information: No PI: No PI Drive's NCQ setting : Enabled Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No Enclosure Device ID: 64 Slot Number: 1 Drive's position: DiskGroup: 0, Span: 0, Arm: 1 Enclosure position: 1 Device Id: 0 WWN: 5ace42e02535d9a5 Sequence Number: 2 Media Error Count: 0 Other Error Count: 0 Predictive Failure Count: 0 Last Predictive Failure Event Seq Number: 0 PD Type: SATA Raw Size: 894.252 GB [0x6fc81ab0 Sectors] Non Coerced Size: 893.752 GB [0x6fb81ab0 Sectors] Coerced Size: 893.75 GB [0x6fb80000 Sectors] Sector Size: 512 Firmware state: Online, Spun Up Device Firmware Level: DZ02 Shield Counter: 0 Successful diagnostics completion on : N/A SAS Address(0): 0x3f4ee0801b806a09 Connected Port Number: 9(path0) Inquiry Data: BDA8N5824I1408M1OHFS960G3H2X069N DZ02 FDE Capable: Not Capable FDE Enable: Disable Secured: Unsecured Locked: Unlocked Needs EKM Attention: No Foreign State: None Device Speed: 6.0Gb/s Link Speed: 6.0Gb/s Media Type: Solid State Device Drive Temperature :33C (91.40 F) PI Eligibility: No Drive is formatted for PI information: No PI: No PI Drive's NCQ setting : Enabled Port-0 : Port status: Active Port's Linkspeed: 6.0Gb/s Drive has flagged a S.M.A.R.T alert : No Exit Code: 0x00
▶ 설치가 완료된 뒤에 MegaCli64 -pdlist -aall 명령어를 수행하게 되면 해당 시스템의 모든 하드웨어 정보에 대한 STATUS를 확인할 수 있습니다.
반응형2020.05.14 - [IT Certificate/정보보안기사] - 시스템 레이드구성 설명
2022.03.30 - [System of Infra/LINUX] - LINUX DISK Linear RAID 구성하는 방법(1편)
2022.04.05 - [System of Infra/LINUX] - LINUX DISK RAID0 RAID1 RAID5 구성하는 방법(2편)
2022.04.26 - [System of Infra/LINUX] - LINUX RAID1 디스크에 OS 설치하는 방법
PS. 포스팅의 내용은 제 기준으로 작성한 것이기 때문에 참고해서 보시면 감사하겠습니다.
포스팅 과정의 오류 및 오타 그리고 궁금한 점에 대해서는 댓글 남겨주세요.
728x90반응형'System of Infra > Linux System' 카테고리의 다른 글
LINUX HBA FC Adapter(QLogic) 성능 분석 테스트 방법 (10) 2022.07.26 LINUX Swap(Paging)영역 늘리는 방법 (14) 2022.07.25 LINUX 패스워드 없이 SU - 사용하는 방법 (2) 2022.07.23 LINUX WEB Console 시스템 관리 cockpit (6) 2022.07.21 LINUX 메일서버 구축하는 방법[3편] - Sendmail/dovecot (4) 2022.07.20