MEGACLI Tool Command Summary

Source: Internet
Author: User
Tags time interval


First, patrol reading

1, megacli-adppr-enblauto-a0, activate immediately.

2, megacli-adppr-enblman-a0 set into manual mode, need to use megacli-adppr-start–a0 to activate.

3, with megacli-adppr-info-a0 to view the mode of patrol reading, this tour end and the next time to start the patrol reading interval, the current status and other information.

4, megacli-fwtermlog-dsply-a0 can view the progress of the patrol reading

5, Megacli-adppr-stop-a0 end of the tour reading, in the course of the tour, many times the use of megacli-adppr-stop-a0 or megacli-adppr-start-a0 will increase the stack algebra, at this time may not start or end the tour reading, Use MEGACLI-ADPPR-DSBL-A0 to stop the tour and start again.

6. Megacli-adppr-setdelay val-a0 Set the time interval between the end of this tour and the beginning of the next tour read, the default is 168 hours, when val=0, after the end of this tour, immediately start the next tour reading

7, megacli-adpsetprop-prcorrectuncfgdareas-val-a0 to correct media errors when the patrol reading

8, set the regular patrol read Megacli-adppr-setstarttime YYYYMMDD hh-a0,yyyymmdd hh, the specific meaning is as follows: 20120108 16 January 08, 2012 16 O'Clock

Second, CC check

1. Start cc checksum immediately, MEGACLI-LDCC-START-L0–A0 (L0 represents a raid group with a target ID of 0) if not fully initialized or background initialized. The virtual disk has not been initialized, Running a consistency check may, and inconsistent in the log. You can force cc checksums with MEGACLI-LDCC-START-FORCE–L0–A0.

2, MEGACLI-LDCC-PROGDSPLY-L0-A0 display the current CC checksum progress.

3, megacli-ldcc-abort-l0-a0 turn off the current CC checksum

4, Plan cc check

A If the mode is disable, (megacli-adpccsched-info-a0 to view), the next start time is 07/28/2135, 02:00:00, the status is Stopped, postponed to 168 hours.

b only when the mode is sequential and concurrent mode can set the recurrence time, so first set the mode, megacli-adpccsched-modeconc-a0 or Megacli-adpccsched-modeseq- A0, then set the start time, megacli-adpccsched setstarttime 20101122 18-a0, set the interval between the CC checksum and the start of the next cc checksum, Megacli-adpccsched-setdelay 2- A0.

I, if the pattern is sequential, all virtual disk groups are CC-validated sequentially

II, if the mode is concurrent, all virtual disk groups are simultaneously cc checksum

5, megacli-adpccsched-dsbl-a0 prohibition plan cc check

6, Megacli-adpsetprop-abortcconerror-1-a0 set error occurs when the CC checksum is discarded

7, check the CC checksum event log, Megacli-adpeventlog-getccincon–f filename–l0–a0

8, if the set delay time is 0, after the CC check is over, the next cc check will start immediately

Iii. Rapid initialization and full initialization

1, MEGACLI-LDINIT-START–L0-A0 Rapid initialization

2. MEGACLI-LDINIT-START-FULL–L0-A0 Full Initialization

3, MEGACLI-LDINIT-PROGDSPLY-L0-A0 show the progress of initialization

4. Megacli-ldinit-abort-l0-a0 End Full Initialization

5, the fast initialization value is to the raid group before 8M and after 8M write 0

Four, background initialization

1, prohibit the background initialization of MEGACLI-LDBI-DSBL-L0-A0

2. End the background initialization in progress MEGACLI-LDBI-ABORT-L0-A0

3. View background initialization settings megacli-ldbi-getsetting-l0-a0

4. Display background Initialization Progress MEGACLI-LDBI-PROGDSPLY-L0-A0

5, RAID5 need 5 data disk can be initialized in the background (5 disk does not contain hot spare)

6, background initialization is the creation of RAID 5 minutes after the start (as if sometimes not the case)

7, background initialization and CC checksum is different, background initialization can start automatically

8, change the background initialization rate, you need to stop the background initialization, otherwise no effect

Five, Copyback

1, turn on or disable Copyback, megacli-adpsetprop–copybackdsbl-0-a0 (Open)

2, display Copyback settings megacli–adpgetprop-copybackdsbl–a0

3, when setting Copyback to enable, pull out a bad disk, replaced by a unconf new disk, first with a hot spare to rebuild, and then copyback operation, if copyback for disable, do not copyback operation, You can set Copyback to enable and then start the copyback operation with Megacli-pdcpybk-start-physdrv[e0:s0,e1:s1]–a0, where [E0:S0] is a disk in the RAID group (the source disk), and [ E1:S1] is not a disk in a RAID group (destination disk)

4, Megacli-adpgetprop smartcpybkenbl-a0 when a disk appears the first smart error, you can do between this disk and hot spare copyback operation, hot spare as the destination disk, complete the copyback operation, The smart error disk is marked as a failed state.

5. If the RAID group is removed at Copyback, the destination disk is returned to the hot spare state or unconfigured good

Vi. Log

1, check all the information log, megacli-adpalilog-a0

2. View firmware debug log (firmware terminal log) megacli-fwtermlog-dsply-a0

3. View RAID card log megacli-adpeventlog-getevents-f filename-a0

4, clear Log megacli-adpeventlog-clear–a0

Vii. Capacity-expansion

1, Megacli-ldrecon-start-r5-add-physdrv[e0:s0]-l0-a0 (RAID5 expansion)

2, megacli-ldrecon-progdsply-l0–a0 View the progress of the expansion

Viii. levels of migration

1, Megacli-cfgldadd-r0[117:1,117:3,117:11]-a0, set up three disk RAID 0, add a disk [117:14], convert to RAID5, Megacli-ldrecon-start-r5-add- PHYSDRV[117:14]-l0-a0

2, in the migration process, the conversion of a raid before the disk, the conversion before the raid of all the disks are offline

3, supported type RAID 0 to raid 1,raid 0 to raid 5,raid 0 to raid 6,raid 1 to raid 0,raid 1 to raid 5,raid 1 to raid 6,raid 5 to RA ID 0,raid 5 to raid 6,raid 6 to raid 0,raid 6 to RAID 5

Ix. Upgrading

1, from the low version to the high version of the upgrade megacli-adpfwflash-f x.rom-a0

2, from the high version to the lower version of the downgrade Megacli-adpfwflash-f x.rom-noverchk-a0, plus noverchk ignore the version of the check, the upgrade will need to restart before it takes effect

Ten, the Connection way

1, RAID internally has two interfaces, namely Connector0 and Connector1. Get the status of the connector megacli-adpgetconnectormode-connector0-a0

2, if the connector mode is internal, JBOD disk all see, if the connector mode is external, the main cabinet of the disk can not see

Xi. External Configuration

1, MEGACLI-CFGFOREIGN-SCAN-A0 Scan the number of foreign configuration

2. Megacli-cfgforeign-preview-a0 View the location of the current disk at normal

3, megacli-cfgforeign-import-a0 to import configuration, restore Virtual disk group

4, megacli-cfgforeign-clear-a0 clear foreign configuration

5. Megacli-cfgforeign-dsply-a0 shows the process of foreign configuration (the order in which the disk is inserted)

12, the Physical disk processing

1, megacli-pdmakegood-physdrv[e0:s0]–a0 disk status from faulty into conf

2, the disk on-line MEGACLI-PDONLINE-PHYSDRV[E0:S0,E1:S1,...]–a0

3, the disk megacli-pdoffline-physdrv[e0:s0,e1:s1,...]–a0 (failed state of the disk can be offline), and then with MEGACLI-PDMARKMISSING-PHYSDRV[E0:S0]- A0 Let the disk kick, let the other unconf state of the disk to replace this disk MEGACLI-PDREPLACEMISSING-PHYSDRV[E0:S0]-arraya,-rowb-a0

4, megacli-pdprprmv-physdrv[e0:s0]–a0 at this time the disk is in spun down state, if you use this disk to establish raid, the status of the disk automatically becomes spun up

5, Megacli-pdclear-start-physdrv[e:s]-a0 clear a single disk

6, MEGACLI-ADPSETPROP–DSBLSPINDOWNHSP-VAL–A0 set the power saving strategy of hot spare disk

7, MEGACLI-ADPSETPROP–ENBLSPINDOWNUNCONFIGDRVS-VAL–A0 set the idle disk power saving strategy

8, megacli-pdlist–a0 get all the details of the disk

9, megacli-pdinfo-physdrv[e0:s0]–a0 get the details of a single disk

13, Adpsetprop, set properties

1, Rebuildrate, Patrolreadrate,bgirate,ccrate,reconrate, said to carry out reconstruction, patrol reading, background initialization, CC calibration, capacity, such as the utilization of the system resource rate, improve speed

2, Coercionmode (forced mode), divided into three forms, none,128m,1g, when 1G, each disk is less than the set when the 1G space.

3. Predfailpollinterval, polling the time interval of the forecast failure. Predictive failure count is a smart error

4, MAINTAINPDFAILHISTORYENBL Save the history of the bad disk. When the Enable, when a disk off the line and back online. You need to clear the configuration information and add it as a hot spare to rebuild when disable. When a disk falls off the line and comes back online, it automatically rebuilds

5, Megacli-adpsetprop ClusterEnable-0-a0 set cluster mode, not currently supported, can only be set to Disbale

6, megacli-adpsetprop-enablejbod-1-a0 set JBOD mode, for RAID0 effective, a single disk read and write, that is, first write the first disk, written full in writing the second disk. MEGACLI-PDMAKEJBOD-PHYSDRV[E0:S0,E1:S1]-A0 can set JBOD mode (not currently supported)

7, Megacli-adpsetprop ExposeEnclDevicesEnbl-1-a0, let equipment drive exposure enclosure devices

14, NCQ

8, display NCQ settings megacli-adpgetprop-ncqdsply-a0

9, set open NCQ megacli-adpsetprop-ncqenbl-a0

10. Close Ncq megacli-adpsetprop-ncqdsbl-a0

Native command Queuing (NCQ) optimizes the order in which read and write commands are made to the hard disk. The hard drive with NCQ technology will reorder the access addresses according to instructions after receiving the read and write instructions. For example, according to the instructions, the hard disk needs to access 330 sectors, 980 sectors, 340 sectors, because the data on the disk distribution location, the normal hard drive will be sequential access. After the NCQ hard drive to optimize the order, you can read 330 sectors, then read 340 sectors, and then read 980 sectors. The advantage of this is that it reduces the time that the head arm moves back and forth, making the data read more efficient while effectively prolonging the hard drive's life.

XV, add and remove hot spares

1, megacli-pdhsp-set-dedicated-array0-physdrv[e:s]-a0 add a local hot spare, where array0 represents the No. 0 raid

2, Megacli-pdhsp-set-physdrv[e:s]-a0 add global hot Spares

3, megacli-pdhsp-rmv-physdrv[e:s]-a0 removal of global and hot standby local hot standby

16. Reconstruction

1, megacli-pdrbld-progdsply-physdrv[e:s]-a0 View the progress of the rebuild

2, Megacli-adpsetprop rebuildrate-val-a0 speed of reconstruction

3, MEGACLI-ADPAUTORBLD-ENBL-A0 set automatic reconstruction, when a disk is broken, hot spare can automatically rebuild, instead of bad disk

4, Megacli-pdrbld-start-physdrv [E0:S0]-a0 manually start rebuilding, e0:s0 indicates a bad disk

17, Restore factory settings

1, megacli-adpfacdefset–a0 restore the factory default configuration

18, Alarm

1, megacli-adpsetprop-alarmsilence–a0 temporarily shut down, reboot turned into open

2, Megacli-adpsetprop-alarmdsbl–a0 permanent shutdown, after the restart or closed

3, megacli-adpsetprop-alarmenbl–a0 Open

4, megacli-adpgetprop-alarmdsply–a0 View the status of the alarm

19, configuration related

1. MEGACLI-CFGDSPLY-A0 can view multiple RAID configurations on a set of disks

2, Megacli-cfgsave-f filename-a0 Save the configuration file

3, megacli-cfgrestore-f filename-a0 import configuration file, RAID group configuration file at the end, placed in the last 512M of each disk, mainly contains the data from where to write configuration and migration swap file

4, megacli-adpsetprop-autoenhancedimportenbl-a0 start to restore foreign configuration

5, Megacli-adpsetverify-f filename-a0 Verify the contents of the configuration files and files

20. RAID Card related

1. MEGACLI-ADPALLINFO-A0 View RAID configuration information

2. Megacli-adpshutdown-a0 off RAID card

3, megacli-adpgettime-a0 to get raid time

4, Megacli-adpdiag val-a0 for RAID diagnostics

5, MEGACLI-ADPSETPROP–LOADBALANCEMODE-VAL–A0 set load balance, RAID card for terminal devices using Multipath access, half of the equipment through a path, the other half of the equipment through another path, a way to insert and remove the disk, Start load balancing to avoid device reuse

6, Megacli–adpcount to obtain the number of RAID cards

7, MEGACLI-ADPGETPCIINFO-A0 access to PCI information

8, Megacli-adpsetprop disableocr-val-a0 RAID card online reset, FW reset RAID card controller chip

9, megacli-showsummary-f filename-a0 display RAID card, system, and so some simple information

10, Megacli-phyerrorcounters-a0 shows the number of errors per PHY

21, The Enclosure information

1, megacli-encinfo-a0 view cabinet information

2, megacli-encstatus-a0 view cabinet status

22. BIOS related

1, megacli–adpbios–be–a0 at the start to press any key to start this situation to set this parameter. But first make sure the BIOS is enabled. Can be viewed through megacli-adpbios-dsply-a0. If not, first use MEGACLI-ADPBIOS-ENBL-A0 to set the

2, megacli–adpbootdrive-set-l0-a0 the current RAID group as the start

23, Back plate related

1, megacli-adpsetprop-autodetectbackplanedsbl-val–a0 if the back plate disable, will automatically detect back plate

24. Power on when starting

1, Megacli-adpsetprop spinupdrivecount-val-a0 set the number of disks on the power

2, Megacli-adpsetprop spinupdelay-val-a0 set up the delay time of the electricity

25. Refresh Cache

1. megacli-adpcacheflush–a0 Refresh RAID Card cache

2, Megacli-adpsetprop cacheflushinterval–val–a0 brush Cache time interval

26, let the hard drive LED lights flashing

1, Megacli-adpsetprop UseDiskActivityforLocate-1-a0

2, megacli-pdlocate-start–physdrv[e:s]-a0 let the hard drive LED lights flashing

3, megacli-pdlocate-stopt–physdrv[e:s]-a0 stop the hard drive LED lights

27. Battery Alarm

1, megacli-adpsetprop batwarndsbl-val-a0 battery Alarm

28, error-Correcting code related

1, Megacli-adpsetprop eccbucketsize-val-a0 set error-correcting code leakage bucket number of bytes

29, background initialization, complete initialization, CC checksum, patrol reading and so on the relationship between

1, background initialization and full initialization, CC checksum can not be read

2, the tour reading can be initialized and fully initialized in the background, the end of the tour read

3, in the background initialization and CC checksum, can not start full initialization

4, capacity expansion can not be built raid, can not add hot spare

5, rebuild priority is higher than copyback

30. RAID creation and deletion

1. Create Raid 0,1,5,6

MEGACLI-CFGLDADD-RX[E0:S0,E1:S1,...] [wt| WB] [nora| ra| ADRA] [direct| Cached] [cachedbadbbu| NOCACHEDBADBBU] [-szxxx [-szyyy ...]] [-strpszm] [-hsp[e0:s0,...]] [-AFTERLDX] [-force]| [fde| Ctrlbased]-a0 can set write mode (WT,WB), read mode (Ra,nora,adra), cache mode (direct,cached), size (SZ), bar size (STRPSZM), and so on. For example 1000G, use only a portion of the specified disk (sz1000g), set the size of the bar strpsz (set to 16k, then strpsz16)

Megacli-cfgldadd-r5[117:1,117:3,117:11]-wb-ra-cached-cachedbadbbu-force-a0

2. Create Raid 10,50,60

MEGACLI-CFGSPANADD-RX-ARRAY0[E0:S0,E1:S1]-ARRAY1[E0:S0,E1:S1] [-arrayx[e0:s0,e1:s1] ...] [wt| WB] [nora| ra| ADRA] [direct| Cached] [cachedbadbbu| NOCACHEDBADBBU] [-szxxx[-szyyy ...]] [-strpszm]

[-AFTERLDX] [-force] | [fde| Ctrlbased]-an

Megacli-cfgspanadd-r10-array0[245:0,245:1] Array1[245:2,245:3]-wb-ra-cached-cachedbadbbu-a0

3, Batch Create RAID0

MEGACLI-CFGEACHDSKRAID0-WB-RA-CACHED-CACHEDBADBBU-A0 creates each slot disk as a RAID0 with only one disk

4. Add all the free disks to raid

Megacli-cfgallfreedrv-r5-sataonly-wb-ra-cached-cachedbadbbu-a0

5. Delete RAID Group

MEGACLI-CFGCLR-A0 clears the configuration of all RAID groups

MEGACLI-CFGLDDEL-L0-A0 Delete the RAID group for the specified raid group (Target id:0)

31, set the properties of the raid group

1, Megacli-ldsetprop-name dg-l0-a0 set the name of the raid group

2, MEGACLI-LDSETPROP-RW-L0-A0 set access policy to read and write, MEGACLI-LDSETPROP-BLOCKED-L0-A0 set access policy is blocked, the raid group can not access the device, Fdisk-l can not find the device

3, MEGACLI-LDSETPROP-WT-L0-A0 set write strategy for WT (direct write), write directly to the hard disk, and then return. WB mode is written to the cache to return, set the WB mode write speed significantly improved to 12 times times

4, MEGACLI-LDSETPROP-RA-L0-A0 set read strategy for RA (read a certain amount of data in advance), there are Nora mode, RA mode read can be raised to about twice times

5, MEGACLI-LDSETPROP-CACHED-L0-A0 set cache policy for cached.

6, megacli-ldsetprop-endskcache-l0-a0 to open the disk cache, write speed has a certain increase (1.4 times times)

Test parameters: DD, bs=1m,99999m data test, bare disk test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.