View disk and RAID information in Linux

Source: Internet
Author: User
The query results show that there are three hard disks, one is Seagate: ST3300657SS and the other is Hitachi: HUS156045VLS600. Use goog

The RAID information of the server can be viewed when the OS is started. you just want to use the command to view the RAID information. the content of the RAID information is as follows:

 

Software raid: can only be viewed in Linux

Cat/proc/mdstat

Hardware raid: The best solution is to use the installed raid vendor's management tools to check whether there is a broken line or a graphical interface. For example, the Adaptec hardware card can be viewed through the following command:
#/Usr/dpt/raidutil-L all

 

If the corresponding management tool is not installed, run the following command:

# Cat/proc/scsi

 

 

[Root @ qs-xe-dzora-st ~] # Cat/proc/scsi

Attached devices:

Host: scsi0 Channel: 00 Id: 00 Lun: 00

Vendor: SEAGATE Model: ST3300657SS Rev: ES64

Type: Direct-Access ansi scsi revision: 05

Host: scsi0 Channel: 00 Id: 01 Lun: 00

Vendor: HITACHI Model: HUS156045VLS600 Rev: E516

Type: Direct-Access ansi scsi revision: 06

Host: scsi0 Channel: 00 Id: 02 Lun: 00

Vendor: HITACHI Model: HUS156045VLS600 Rev: E516

Type: Direct-Access ansi scsi revision: 06

Host: scsi0 Channel: 01 Id: 01 Lun: 00

Vendor: Dell Model: VIRTUALDISK Rev: 1028

Type: Direct-Access ansi scsi revision: 05

Host: scsi3 Channel: 00 Id: 00 Lun: 00

Vendor: TEAC Model: DVD-ROMDV-28SW Rev: R.2A

Type: CD-ROM ansi scsi revision: 05

 

[Root @ qs-xe-dzora-st ~] # Df-lh

Filesystem Size Used Avail Use % Mounted on

/Dev/sda3 263 GB 3.8G 246G 2%/

/Dev/sda1 99 M 12 M 82 M 13%/boot

Tmpfs 3.9G 0 3.9G 0%/dev/shm

/Dev/sdb1 413G 170G 222G 44%/u01

 

/Proc/scsi displays the server hard disk information. you can google the hard disk information based on the hard disk model provided by this command. Each hard disk manufacturer has its own hard disk naming rules. If you are familiar with hardware, you can view the hard disk information.

The query results show that there are three hard disks, one is Seagate: ST3300657SS and the other is Hitachi: HUS156045VLS600. Google determines that Seagate's hard drive is 450 GB, while Hitachi's hard drive is GB.

Based on the results of the df command, we can infer that sda uses our Seagate 450 GB hard drive and sdb uses Hitachi, while our sdb only has 900 GB, and the two Hitachi products have a total of GB, so we can speculate that RAID1.

However, when I was using google, I saw a friend's/proc/scsi command on the Internet directly displaying RAID information. I just tested CentOS5.5 linux, but I don't know what systems they are using, note, spare.

 

Related Article

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.