View raid information under Linux systems

Source: Internet
Author: User

View Linux raid under System Information



Software raid



For details see: http://molinux.blog.51cto.com/2536040/516008

To view the array status:

[Email protected] ~]# Cat/proc/mdstat

Personalities: [RAID6] [RAID5] [raid4]md0:active RAID5 sdd1[2] sdc1[1] sdb1[0]9783296 blocks level 5, 64k chunk, Algori tHM 2 [3/3] [uuu]unused devices: <none>

View the status of all running RAID arrays with cat/proc/mdstat information, first in the first line, the MD device name md0,active and inactive options indicate whether the array reads/writes, followed by the raid level RAID5 of the array, The following is the block device belonging to the array, the number in brackets [] indicates the sequence number of the device in the array, (S) indicates that it is a hot spare, and (F) indicates that the disk is a faulty state. The next line is the size of the array, represented by the number of blocks, followed by the size of the chunk-size, then the layout type, different RAID levels of the layout type, [3/3] [UUU] indicates that the array has 3 disks and 3 disks are functioning, while [2/3] and [ _uu] indicates that 2 of the 3 disks in the array are functioning correctly, and that the underscore corresponds to the location of the disk that is faulty state.

To view the details of the array:

[Email protected] ~]# Mdadm--detail/dev/md0

/dev/md0:version : 0.90creation time : tue mar 15 08:17:52  2011raid level : raid5array size : 9783296  (9.33 GiB 10.02  GB) used dev size : 4891648  (4.67&NBSP;GIB&NBSP;5.01&NBSP;GB) Raid Devices :  3total devices : 3preferred minor : 0persistence : superblock  is persistentupdate time : tue mar 15 08:20:25 2011state :  cleanActive Devices : 3Working Devices : 3Failed Devices :  0spare devices : 0layout : left-symmetric  Check Rule chunk size :  64kuuid : e0d929d1:69d7aacd:5ffcdf9b:c1aaf02devents : 0.2number major minor  raiddevice state0 8 17 0 active sync /dev/sdb11 8 33 1  active sync /dev/Sdc12 8 49 2 active sync /dev/sdd1 

Hardware RAID



There is no management tool installed, only rely on the Linux itself in general I know two ways:

[[email protected] ~]# DMESG |grep-i raid

Dracut:rd_NO_DM:removing DM raid activationdracut:rd_NO_MD:removing MD raid Activationadaptec aacraid driver 1.2-0[303  00]-msaacraid 0000:01:00.0:pci INT A-GSI (level, low)-IRQ 16aacraid 0000:01:00.0:setting Latency Timer to 64IRQ 16/aacraid:irqf_disabled isn't guaranteed on shared Irqsscsi0:aacraidscsi 0:0:0:0: direct-access Adaptec RAID10 -A V1.0 pq:0 ansi:2

[Email protected] ~]# CAT/PROC/SCSI/SCSI

attached devices:host: scsi0 channel: 00 id: 00 lun: 00vendor:  adaptec model: raid10-a rev: v1.0type: direct-access ansi scsi  Revision: 02host: scsi0 channel: 01 id: 00 lun: 00vendor: model:  TXB2C10960GG7SLT Rev: ZN1HType: Direct-Access ANSI SCSI revision:  05host: scsi0 channel: 01 id: 01 lun: 00vendor: model:  Txb2c10960gg7slt rev: zn1htype: direct-access ansi scsi revision: 05host:  scsi0 channel: 01 id: 02 lun: 00vendor: model: txb2c10960gg7slt  Rev: ZN1HType: Direct-Access ANSI SCSI revision: 05Host: scsi0  channel: 01 id: 03 lun: 00vendor: model: txb2c10960gg7slt rev:  zn1htype: direct-access ansi&nbsp scsi revision: 05

The information displayed is similar to the raid manufacturer, model, level, but cannot view each block of hard disk information.

In addition to the actual test, the Dell server can be displayed by command, and the HP, IBM and other servers through the above command is not displayed. Can only be viewed through the installation of the hardware vendor's management tools.

The best approach is to see through the installation of RAID management tools, with cmdline and graphical interfaces.

Confirm Raid Card Model



To see what the specific RAID card is, view the RAID card information using the following command:

[[email protected] ~]$ Lspci-v-S $ (LSPCI | grep-i raid |awk ' {print $} ')

01:00.0 RAID bus Controller:adaptec aac-raid (rev.) Subsystem:adaptec 5405gflags:bus Master, Fast Devsel, latency 0, I  RQ 16Memory at df200000 (64-bit, non-prefetchable) [Size=2m]expansion ROM at df400000 [disabled] [size=512k]capabilities: <access Denied>kernel driver in Use:aacraidkernel modules:aacraid

Get the raid card from the return information above model: Subsystem:adaptec 5405G

Download and install Storage management software



According to this model, go to Adaptec's official website http://download.adaptec.com find the corresponding storage management software for this model:

Title:adaptec Storage Manager v7.31.18856 for 64-bit LinuxName:asm_linux_x64_v7_31_18856.tgz

Download and install the software:

[Email protected] ~]# wget http://download.adaptec.com/raid/storage_manager/asm_linux_x64_v7_31_18856.tgz[[email Protected] ~]# tar zxvf asm_linux_x64_v7_31_18856.tgz[[email protected] ~]# CD Manager[[email protected] manager]# RPM-UV F storman-7.31.x86_64.rpm

View hardware RAID Information



Adaptec Company's hardware card can be viewed by the following command:

[Email protected] storman]#/usr/storman/arcconf getconfig 1

Controllers found: 1----------------------------------------------------------------------Controller  information----------------------------------------------------------------------Controller status  : optimalchannel description : sas/satacontroller model : adaptec  5405ZController Serial Number : 0B461184016Physical Slot :  16temperature : 53 c/ 127 f  (Normal) installed memory : 512  mbcopyback : disabledbackground consistency check : disabledautomatic  failover : enabledglobal task priority : highperformance mode :  default/dynamicstayawake period : disabledspinup limit internal drives :  0spinup limit external drives : 0defunct disk drive count :  0logical devices/failed/Degraded : 1/0/0ssds assigned to maxcache pool : 0maximum ssds  allowed in maxcache pool : 8maxcache read cache pool size  : 0.000 gbmaxcache flush and fetch rate : 0maxcache read,  write balance factor : 3,1ncq status : enabledstatistics data  collection mode :  Enabled--------------------------------------------------------controller version  Information--------------------------------------------------------bios : 5.2-0  (18950) Firmware  : 5.2-0  (18950) driver : 1.2-0  (30300) boot flash : 5.2-0  ( 18950)--------------------------------------------------------controller zmm  Information--------------------------------------------------------status : zmm  Optimal----------------------------------------------------------------------logical device  Information----------------------------------------------------------------------logical device  Number 0logical device name : raid0-araid level : 0status of  logical device : optimalsize : 1830902 mbstripe-unit size :  256 KBRead-cache mode : EnabledMaxCache preferred read cache  setting : enabledmaxcache read cache setting : disabledwrite-cache  mode : enabled  (Write-back) write-cache setting : enabled  (write-back)   when protected by battery/zmmpartitioned : yesprotected by hot-spare :  NoBootable : YesFailed stripes : NoPower settings :  Disabled--------------------------------------------------------logical device Segment information--------------------------------------------------------segment 0 :  present  (controller:1,connector:0,device:0)  1000474ASegment 1 : Present  ( CONTROLLER:1,CONNECTOR:0,DEVICE:1)   10004b09----------------------------------------------------------------------physical device  Information----------------------------------------------------------------------device  #0Device  is  a Hard driveState : OnlineSupported : YesTransfer Speed :  Sata 3.0 gb/sreported channel,device (t:l)  : 0,0 (0:0) reported location :  Connector 0, Device 0Vendor :Model : SDLFOCAR-960G-1HFirmware :  zz2crc92serial number : 1000474asize : 915715 mbwrite cache :  enabled  (Write-back) Fru : nones.m.a.r.t. : nos.m.a.r.t. warnings :&nbsP;0POWER&NBSP;STATE&NBSP;:&NBSP;FULL&NBSP;RPMSUPPORTED&NBSP;POWER&NBSP;STATES&NBSP;:&NBSP;FULL&NBSP;RPM, powered offssd : yesmaxcache capable : nomaxcache assigned :  noncq status : enableddevice  #1Device  is a hard drivestate :  OnlineSupported : YesTransfer Speed : SATA 3.0 Gb/sReported  Channel,device (t:l)  : 0,1 (1:0) reported location : connector 0, device  1vendor :model : sdlfocar-960g-1hfirmware : zz2crc92serial number :  10004b09size : 915715 mbwrite cache : enabled  (Write-back) FRU :  nones.m.a.r.t. : nos.m.a.r.t. warnings : 0power state : full  Rpmsupported power states : full rpm,powered offssd : yesmaxcache  capable : nomaxcache  Assigned : noncq status : enabled command completed successfully.

If it's LSI, install the MEGACLI kit, which I remember on the LSI website.

[Email protected] ~]#/usr/dpt/raidutil-l all

You can see very detailed information.

SoftLayer's servers also provide management tools for related control cards to download:

http://downloads.service.softlayer.com/adaptectools/linux/

http://downloads.service.softlayer.com/lsitools/

Be sure to download the correct installation package based on the version of the control card.


This article is from the SQL Server deep dives blog, so be sure to keep this source http://ultrasql.blog.51cto.com/9591438/1627755

View raid information under Linux systems

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.