LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-13-2012, 11:19 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
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
 
Old 06-14-2012, 12:57 AM   #2
nixblog
Member
 
Registered: May 2012
Posts: 426

Rep: Reputation: 53
Take a look at the dmraid command. You may have to install it from the distro repo's.
 
Old 06-14-2012, 01:30 AM   #3
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
During boot time you can check in BIOS also.
 
Old 06-14-2012, 02:54 AM   #4
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thx reply,

can advise , if I just would like to know how many HD in my redhat / debian server , what can i do ? thx
 
Old 06-14-2012, 03:49 AM   #5
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Code:
# lshw -short -C disk
above command will list all the installed disks including CD/DVD drives.
 
Old 06-14-2012, 03:59 AM   #6
abi0909
Member
 
Registered: Jul 2009
Distribution: Ubuntu, RedHat, VMWare, CentOS, Windows, Android, Mac
Posts: 55

Rep: Reputation: 18
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.
 
Old 06-14-2012, 04:12 AM   #7
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
/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
 
Old 06-14-2012, 04:16 AM   #8
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Yeah, more simple would be fdisk command but did you try lshw command?
 
Old 06-14-2012, 04:31 AM   #9
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
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
 
Old 06-14-2012, 08:01 AM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
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.
 
Old 06-14-2012, 07:16 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,352

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up RAID or mirror drives on the Hardware level Pricy Linux - Newbie 1 09-16-2010 07:06 PM
How to Check Hard Disk Space In Level 3 k_oudom Linux - Server 4 09-25-2009 04:24 AM
Dell/Intel ICH7 soft-RAID and mdadm raid-level mistake PhilipTheMouse Linux - General 0 03-14-2009 05:59 PM
how to check cpu level? naijaguy Linux - Newbie 7 02-05-2005 02:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration