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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
06-13-2012, 11:19 PM
|
#1
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Rep:
|
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
|
|
|
06-14-2012, 12:57 AM
|
#2
|
Member
Registered: May 2012
Posts: 426
Rep: 
|
Take a look at the dmraid command. You may have to install it from the distro repo's.
|
|
|
06-14-2012, 01:30 AM
|
#3
|
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
|
During boot time you can check in BIOS also.
|
|
|
06-14-2012, 02:54 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Original Poster
Rep:
|
thx reply,
can advise , if I just would like to know how many HD in my redhat / debian server , what can i do ? thx
|
|
|
06-14-2012, 03:49 AM
|
#5
|
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
|
Code:
# lshw -short -C disk
above command will list all the installed disks including CD/DVD drives.
|
|
|
06-14-2012, 03:59 AM
|
#6
|
Member
Registered: Jul 2009
Distribution: Ubuntu, RedHat, VMWare, CentOS, Windows, Android, Mac
Posts: 55
Rep:
|
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.
|
|
|
06-14-2012, 04:12 AM
|
#7
|
Senior Member
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130
Original Poster
Rep:
|
/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
|
|
|
06-14-2012, 04:16 AM
|
#8
|
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
|
Yeah, more simple would be fdisk command but did you try lshw command?
|
|
|
06-14-2012, 04:31 AM
|
#9
|
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420
|
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
|
|
|
|
06-14-2012, 08:01 AM
|
#10
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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.
|
|
|
06-14-2012, 07:16 PM
|
#11
|
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.x
Posts: 18,442
|
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 10:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|