Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use the MegaRAID tool

2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to use MegaRAID tools", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to use MegaRAID tools" this article.

DELL raid card management tool MegaRAID Storage Manager (emphasis on RAID common management commands)

1. Download address of MSM

Linux-4.6-CC 2.0

Www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.33-01_Linux_MSM.zip

Windows-4.6-CC 2.0

Www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/8.33-01_Windows_MSM.zip

The above version does not include the command line tool MegaCli. In order to support the CacheCade function, you need to use the above version (both versions are supported in the actual test, but not in the official lsi software description). Otherwise, please use the following link to download and include the command tool MegaCli-8.02.14-1.i386.rpm

Linux-4. 6-11M06

Www.lsi.com/downloads/Public/MegaRAID%20Common%20Files/11.06.00-05_Linux_MSM.zip

II. Prerequisite for software installation

1. Check the server type. The test environment is DELL R610.

# dmidecode-s system-product-name

PowerEdge R610

2. Confirm whether to use LSI MegaRAID card

# dmidecode | grep "RAID"

Description: Integrated RAID Controller

Reference Designation: Integrated RAID

# lspci | grep RAID

03Symbios Logic LSI MegaSAS 00.0 RAID bus controller: LSI Logic / Symbios Logic LSI MegaSAS 9260 (rev 05)

# dmesg | grep "RAID"

Scsi0: LSI SAS based MegaRAID driver

3. Controller models are supported. See the package content file "8.33-01_Linux_MSM.txt".

The contents are as follows:

Supported Controllers

=

MegaRAID SAS 9265-8i

MegaRAID SAS 9285-8e

MegaRAID SAS 9240-4i

MegaRAID SAS 9240-8i

MegaRAID SAS 9260-4i

MegaRAID SAS 9260CV-4i

MegaRAID SAS 9260-8i

. The content is slightly...

MegaRAID SAS 8480E *

MegaRAID SATA 300-8ELP *

* These older controllers should work but have not been tested.

. The content is slightly...

Third, install MegaRAID Storage Manager version 8.33.0100

System test environment: RHEL 5.5_64bit

1. Software dependency relationship

Compat-libstdc++-33-3.2.3-61.x86_64.rpm

Libstdc++-4.1.2-48.el5.x86_64.rpm

Net-snmp-5.3.2.2-9.el5.x86_64.rpm

Net-snmp-utils-5.3.2.2-9.el5.x86_64.rpm

two。 Install MSM

# unzip 8.33-01_Linux_MSM.zip

# cd disk

# install.sh

3. Just choose according to the prompts, we choose the full installation

(1)-Complete

This option will install all program features.

4. Installed software packages include

(1) Lib_Utils (2) Lib_Utils2 (3) MegaRAID_Storage_Manager-8.33-01 (4) sas_snmp-3.17-1119

5. Install raid card command line management tool MegaCli

# rpm-ivh MegaCli-8.02.14-1.i386.rpm

Or replace the installation location to facilitate command line operation

# rpm-relocate / opt/=/usr/sbin/-I MegaCli-8.02.14-1.i386.rpm

Confirm the installation location of the MegaCli package

# rpm-ql MegaCli

/ opt/MegaRAID/MegaCli/MegaCli # 32bit installation location

/ opt/MegaRAID/MegaCli/MegaCli64 # 64bit installation location, the experimental environment for this

4. The common commands of MegaCli are:

Tip: first the interpretation of the command, then the specific content of the command.

1. Command help

MegaCli64-help |-h |?

two。 Set adapter properties

Here we take enabling the CopyBack function as an example to explain the syntax: the vale value of 0 is to enable the corresponding function, here it is disabled for Enable Copyback,1,-an is followed by an orchestration number, and generally an adapter is specified as-a0 or ALL. The specific parameters are subject to the help instructions, and the syntax of other commands is the same.

AdpSetProp-CopyBackDsbl-val-aN |-a0Magol 1Pol 2 |-aALL

View current CopyBack status

MegaCli64-AdpGetProp-CopyBackDsbl a0

Enable the adapter 0 copyback feature

MegaCli64-AdpSetProp-CopyBackDsbl-0-a0

To get the current Cache Flush Interval value, the default is 4s.

MegaCli64-AdpGetProp CacheFlushInterval a0

Set Cache Flush Interval. The default is 4s.

MegaCli64-AdpSetProp CacheFlushInterval 4 a0

Get the reconstruction ratio, which is 30% by default

MegaCli64-AdpGetProp RebuildRate a0

Set the rebuild ratio to 40%

MegaCli64-AdpSetProp RebuildRate 40 a0

View the current date and time of the setter

MegaCli64-AdpGetTime a0

Set adapter time

MegaCli64 AdpSetTime 20111101 11:33:00 a0

View adapter BIOS status

MegaCli64-AdpBIOS-Dsply a0

View the boot device

MegaCli64-AdpBootDrive-Get-a0

Set up the boot device

MegaCli64-AdpBootDrive-Set-physdrv [32:0]-a0

Enable | View | disable automatic rebuild status

MegaCli64-AdpAutoRbld-Enbl |-Dsbl |-Dsply-aN |-a0Person1Pol 2 |-aALL

Adapter CacheFlush

MegaCli64-AdpCacheFlush a0

Adapter statistics

MegaCli64-adpCount

All adapter information, this command can also see the above functional parameters

MegaCli64-AdpAllInfo-aALL

2. View physical hard disk information

List of all physical hard disk information

MegaCli64-PDList-a0

View the information of the first physical hard disk

MegaCli64-pdInfo-PhysDrv [32:0]-a0

3. Offline hard disk management

Set the physical hard disk online

MegaCli64-PDOnline-PhysDrv [32:5]-a0

Set the physical hard disk offline

MegaCli64-PDOffline-PhysDrv [32:5]-a0

4. Hot spare management

Set ID3 hard disk as a stand-alone hot spare for logical disk group 1

MegaCli64-PDHSP-Set-Dedicated-Array1-EnclAffinity-nonRevertible-PhysDrv [32:3]-aALL

Set the ID3 hard disk as a global hot spare

MegaCli64-PDHSP-Set-EnclAffinity-nonRevertible-PhysDrv [32:3]-a0

Delete hot spare ID3

MegaCli64-PDHSP-Rmv-PhysDrv [32:3]-aALL

5. Disk data reconstruction management

Manage a process of physical disk data reconstruction, display reconstruction

MegaCli64-PDRbld-Start |-Stop |-Suspend |-Resume |-ShowProg |-ProgDsply-PhysDrv [32:3]-a0

6. Physical hard disk initialization

Physical hard disk ID3 initialization, display initialization process

MegaCli64-PDClear-Start |-Stop |-Suspend |-Resume |-ShowProg |-ProgDsply-PhysDrv [32:3]-a0

7.Miss status hard disk management

Mark the physical hard disk as miss, and the normal hard disk does not support commands.

MegaCli64-PdMarkMissing-physdrv [32:3]-aN |-a0meme1Magi 2 |-aALL

View the physical hard disk with a status of miss

MegaCli64-PdGetMissing-a0

View adapter attachment information

MegaCli64-EncInfo-a0

8. Virtual hard disk management

View virtual disk information,-L followed by virtual disk ID

MegaCli64-LDInfo-Lx |-L0Magol 1Magin2 |-Lall-aN |-a0Magne1Magol 2 |-aALL

8.1 caching policy terms explain:

8.1.1 Write Policy (write policy)

Sets the cache method to write back or through write.

In the WT (Write through) (by write) cache, when the disk subsystem has received all the data in a transaction, the controller sends a data transmission completion signal to the host.

In the WB (Write back) (writeback) cache, when the controller cache has received all the data in a transaction, the controller sends a data transmission completion signal to the host.

Write-through caches have data security advantages over Write-back caches, but Write-back caches have performance advantages over Write-through caches.

8.1.2 Read-ahead (pre-read) enables SCSI read-ahead for logical drives.

You can set this parameter to No-Read-Ahead (not pre-read), Read-ahead (pre-read), or Adaptive (adaptive). Default setting is Adaptive (adaptive).

NORA (No read ahead) (not pre-read) specifies that the controller does not use pre-read in the current logical drive.

RA (Read ahead) (pre-read) specifies that the controller uses pre-read in the current logical drive.

ADRA (Adaptive read ahead) (adaptive) specifies that if the last two disk accesses occur in contiguous sectors, the controller starts using Read-ahead (read-ahead). If all read requests are random, the algorithm replies to No-Read-Ahead (not pre-read), but still determines whether it is possible for all read requests to operate sequentially.

8.1.3 Cache Policy (caching policy)

Suitable for reading on a specific logical drive. It does not affect the Read ahead (read-ahead) cache.

Cached (cache Istroke O) specifies that all read data is cached in cache memory.

Direct specifies that read data is not cached in cache memory. This is the default setting. It does not replace the cache policy setting. The data is transferred to both the cache and the host. If the same data block is read again, it is read from the cache memory.

8.2 Virtual hard disk Management Command

View cache policies

MegaCli64-LDGetProp-Cache-L1-a0

View access policy

MegaCli64-LDGetProp-Access-L1-a0

View virtual disk name

MegaCli64-LDGetProp-Name-L1-a0

View write policy

MegaCli64-LDGetProp-DskCache-L1-a0

Set the virtual disk name

MegaCli64-LDSetProp-Name vd_test-L1-a0

Set access policy

MegaCli64-LDSetProp-RW-L1-a0

Set cache policy

MegaCli64-LDSetProp WB | RA | Direct-L1-a0

Enable disk cache

MegaCli64-LDSetProp-DisDskCache-L1-a0

Disk array initialization:

Initialize virtual disk

MegaCli64-LDInit {- Start [- full]} |-Abort-L1-a0

View initialization progress and process

MegaCli64-LDInit-ShowProg |-ProgDsply-L1-a0

Virtual disk consistency check

MegaCli-LDCC {- Start [- force]} |-Abort |-Suspend |-Resume |-ShowProg |-ProgDsply-L0-a0

Start consistency check

MegaCli64-LDCC-Start-L1-a0

Background initialization management:

Syntax:

MegaCli-LDBI-Enbl |-Dsbl |-getSetting |-Abort |-Suspend |-Resume |-ShowProg |-ProgDsply-Lx |-L0 aN 1 LALL 2 |-aALL

View background initialization status

MegaCli64-LDBI-getSetting-L0-a0

Enable background initialization

MegaCli64-LDBI-Enbl-L0-a0

View virtual disk group and physical hard disk information

MegaCli64-LdPdInfo-a0

View the number of virtual disk groups

MegaCli64-LDGetNum-a0

Create a virtual disk:

Configure raid1 and specify a hot spare disk. Here it is a stand-alone hot spare. If you delete this raid configuration, the hot spare will automatically be changed to a global hot spare.

MegaCli64-CfgLdAdd-R1 [32 WB RA Direct 1, 32 WB RA Direct 2] Hsp [32:3] ALL-a0

Configure only raid1

MegaCli64-CfgLdAdd-R1 [32WB RA Direct-a0]

Delete the specified raid configuration

MegaCli64-CfgLdDel-L1-a0

Rebuild the disk group online to add a hard disk to the virtual disk group ID1 with raid level 1

MegaCli64-LDRecon-Start-R1-Add-Physdrv [32:3]-L1-a0

Remove the hard disk from the virtual disk group ID1

MegaCli64-LDRecon-Start-R1-Rmv-Physdrv [32:3]-L1-a0

9. Cachecade management

Create cachecade

MegaCli64-CfgCacheCadeAdd-R0-Physdrv-Name cachecade-a0

View cachecade configuration information

MegaCli64-CfgCacheCadeDsply-a0

Delete cachecade and pay attention to the virtual disk group ID. If you use MegaCli64-LdPdInfo-aALL, you need to confirm it.

MegaCli64-CfgCacheCadeDel-L2-a0

Assign cachecade, the test prompt is not allowed, and the format is as follows

MegaCli64-CfgCacheCadeAdd-R0-Physdrv-Name cachecade-assign-L1-a0

MegaCli-Cachecade-assign |-remove-Lx |-LALL-aN |-LALL-aN |-aALL

10. Virtual disk configuration management

Clear existing configuration

MegaCli64-CfgClr-a0

View existing raid configuration

MegaCli64-CfgDsply-a0

Save the specified adapter configuration parameters

MegaCli64-CfgSave-f raidcfg-a0

Restore raid configuration parameters

MegaCli64-CfgRestore-f raidcfg-a0

11. Manage Foreign disks

Scan foreign status disk

MegaCli64-CfgForeign-Scan-a0

Show foreign status disk

MegaCli-CfgForeign-Dsply-a0

Import foreign disk

MegaCli-CfgForeign-Import-a0

Clear foreign information

MegaCli-CfgForeign-Clear-a0

MegaCli-Version-Cli |-Ctrl |-Driver |-Pd-aN |-a0mem1Pol 2 |-aALL

MegaCli-Perfmon {- start-interval} | {stop} | {- getresults-f}-aN

There are a lot of command line please see help, so not only to sigh the power of the command line, the graphical interface can do the same command line can do, the command line can not necessarily do the graphics!

5. Let's introduce the MSM graphical interface (the method is relatively easy to use, so I won't repeat it):

Experimental environment:

Server:rhel5.5_64bit, install MSM full mode

Client: win7, install client mode

5.1 launch interface

5.2 add a remote managed sever

5.3Login to remote server, login account password is remote server system user and password

MSM graphical interface, the lower part of the interface is log information, of course, the command line also has log

5.5 shut down and start MSM:

/ init.d/vivaldiframeworkd stop

/ etc/init.d/mrmonitor stop

/ init.d/vivaldiframeworkd start

/ etc/init.d/mrmonitor start

5.6 Uninstall MSM:

/ usr/local/MegaRAID Storage Manager/uninstaller.sh

LSI MegaRAID Storage Manager Array Management Software (MSM) remote management tools the Server side uses ports 3071 and 5571. If you cannot connect, you need to disable the firewall or open ports 3071 and 5571.

The above is all the content of this article "how to use MegaRAID tools". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report