Operating System - Linux
1821537 Members
2333 Online
109633 Solutions
New Discussion юеВ

How To Check Hardware Configuration On Linux RH

 
John CLARK_5
Frequent Advisor

How To Check Hardware Configuration On Linux RH

Dear friends,

Please,what are the commands that i can run to check the hardware configuration
(Hard disk with Raid 5,memory,processor,) ?

Ps : I have Linux Redhat 4 ES.

Best Regards.
9 REPLIES 9
renarios
Trusted Contributor

Re: How To Check Hardware Configuration On Linux RH

Hi John,

check your /var/log/boot.log or execute dmesg

Cheerio,

Renarios
Nothing is more successfull as failure
Stuart Browne
Honored Contributor

Re: How To Check Hardware Configuration On Linux RH

There's the usual deals..

/bin/cat /proc/cpuinfo
/bin/cat /proc/meminfo

Then there's the bus':

/sbin/lspci
/bin/cat /proc/scsi/scsi

As it's redhat, you also have the Kudzu database to give you an idea of what's available:

cat /etc/sysconfig/hwconf

As for RAID state, it depends on what controller is in there. As you're in the HP forums, I'll assume you have either at NetRAID or Smart ARray controller.

For the NetRAID, you need to track down the 'megamgr' software from AMI (or lsilogic now I guess). Strangely enough, it's probably easier to get the Dell version (it works just as well).

For the SmartARray's, you'll need the ACU-XE, available in the Proliant Support Package (on the HP website under drivers for the appropraite model).

If it's not either of these controllers, then you'll need to tell us what model so we can help you track down management software for it.

Generally though, a driver will tell you if a RAID container isn't healthy by kernel logs (either 'dmesg' or via syslog in '/var/log/messages').

Hope this helps.
One long-haired git at your service...
Eric van Dijken
Trusted Contributor

Re: How To Check Hardware Configuration On Linux RH

John,

If you are using Proliant servers, the following link gives you access to all you need.

http://h18004.www1.hp.com/products/servers/management/psp/index.html

Watch, Think and Tinker.
Huc_1
Honored Contributor

Re: How To Check Hardware Configuration On Linux RH

One way is

#fdisk -L > tempo_hw_info.txt
#cat /proc/meminfp >> tempo_hw_info.txt
#cat /proc/cpuinfo >> tempo_hw_info.txt
#cat tempo_hw_info.txt | more

Jean-Pierre Huc
Smile I will feel the difference
Huc_1
Honored Contributor

Re: How To Check Hardware Configuration On Linux RH

Sorry for typo make that

# fdisk -l

not

# fdisk -L

PLease 0 points for this reply, thanks

Jean-Pierre Huc
Smile I will feel the difference
John CLARK_5
Frequent Advisor

Re: How To Check Hardware Configuration On Linux RH

Hi all,

Thank you for your replay.
Now,please,i have another question :
I have 3 HArd disks,i had make a RAID 5 with ServerRAID(ibm).And when i try to install LINUX RH 4 ES,i observe that i have just one disk(During installation,when i have hard disks to check : i have just one disk),it's normal ?

Regards.
Stuart Browne
Honored Contributor

Re: How To Check Hardware Configuration On Linux RH

You've got 3 physical disks probably in a RAID 5 container (or one Logical disk).

This presents it's self to the OS as one disk.

Yes, this is normal, and the way it's supposed to be.
One long-haired git at your service...
Ross Minkov
Esteemed Contributor

Re: How To Check Hardware Configuration On Linux RH


Some more tools to get hardware config info:

lshw -- get it from http://ezix.sourceforge.net/software/lshw.html

try these:

lshw -short ==> this will look and feel like the HPUX ioscan.

lshw -C system


hwbrowser provides a GUI that shows most of the detected hardware.

cfg2html

dmidecode

sysreport

The kudzu utility maintains a DB of detected and configured hardware, found at /etc/sysconfig/hwconf. As part of the boot process, kudzu compares the currently detected hardware to the stored DB. This comparison can be forced by calling the kudzu command directly. If new hardware is detected, or previousely existing hardware is removed, kudzu will attempt to automatically reconfigure the system, or steer the administrator to the appropriate interactive configuration utility. Try "cat /etc/sysconfig/hwconf".


HTH,
Ross
Ross Minkov
Esteemed Contributor

Re: How To Check Hardware Configuration On Linux RH


John,

For the other question:

> I have 3 HArd disks,i had make a RAID 5 with ServerRAID(ibm).

OK, so you have one logical drive configured.

> And when i try to install LINUX RH 4 ES,i observe that i have just one disk

Yes, the OS will see one disk (you do have only one logical drive)

> (During installation,when i have hard disks to check : i have just one disk),it's normal ?

Looks normal to me... ;-)

Regards,
Ross