LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   check hardware raid level (https://www.linuxquestions.org/questions/linux-newbie-8/check-hardware-raid-level-4175411340/)

ust 06-13-2012 11:19 PM

check hardware raid level
 
I use Redhat , debian linux , can advise if I want to know what hardware raid ( eg. raid 0 , 1 , 5 ... ) is the server , what can i do ? thx

nixblog 06-14-2012 12:57 AM

Take a look at the dmraid command. You may have to install it from the distro repo's.

Satyaveer Arya 06-14-2012 01:30 AM

During boot time you can check in BIOS also.

ust 06-14-2012 02:54 AM

thx reply,

can advise , if I just would like to know how many HD in my redhat / debian server , what can i do ? thx

Satyaveer Arya 06-14-2012 03:49 AM

Code:

# lshw -short -C disk
above command will list all the installed disks including CD/DVD drives.

abi0909 06-14-2012 03:59 AM

More simpler, run the below command (as ROOT):

fdisk -l | grep Disk

This will show all the disks as seen by the OS. No packages need to be installed to run fdisk.

To know about the RAID, do you use a hardware RAID contoller i your machine. If yes, during reboot, the raid controller will prompt you a key combination to login to the controller and check the disks and raid setup. If not a hardware controller, then let us know how you created the RAID in the OS.

ust 06-14-2012 04:12 AM

/sbin/fdisk -l

Disk /dev/sda: 146.5 GB, 146548981760 bytes
255 heads, 63 sectors/track, 17816 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes


I use fdisk -l to check and found sda is 146.5GB , but actually I have 3 74GB HD ( raid 5) , can advise how can I know the autual no. of HD ?

thx

Satyaveer Arya 06-14-2012 04:16 AM

Yeah, more simple would be fdisk command but did you try lshw command?

Satyaveer Arya 06-14-2012 04:31 AM

Here is the output on my test machine, shows only 1 hard disk of 80GB.
Quote:

[root@testmachine rpm]# lshw -short -C disk
H/W path Device Class Description
=========================================================
/0/100/1f.1/0/0 /dev/hda disk HL-DT-ST RW/DVD GCC-H21N
/0/100/1f.2/0.0.0 /dev/sda disk 80GB WDC WD800JD-60LS

suicidaleggroll 06-14-2012 08:01 AM

Guys, he said hardware raid. That means nothing is going to show up in fdisk, etc. The hardware controller isolates the OS from the raw disks.

The only way is through the raid card utilities. Usually there's a boot option to check the config, and usually there's an OS-level program that can check/print/monitor/control things. Without knowing the brand of the card we can't provide any more info though.

chrism01 06-14-2012 07:16 PM

I agree with what suicidaleggroll said; this is HW RAID, not SW.
We need to know the HW make of the PC and possibly the controller card (it may be from the same manufacturer).
Normally they provide extra pkgs to monitor from the OS level as well.


All times are GMT -5. The time now is 11:52 AM.