LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-21-2008, 03:13 AM   #1
go3mon
LQ Newbie
 
Registered: Aug 2005
Posts: 15

Rep: Reputation: 0
RedHat - List hardware


Hi,
how I can list all installed hardware in redhat?
Example:

I have a disk storage linked to my rh server. I want to "pvcreate" new disks for creating a vg.

What command do I user for scan my disk storage ?

thanks
 
Old 07-21-2008, 01:43 PM   #2
kundor
Member
 
Registered: Aug 2003
Distribution: GoboLinux
Posts: 167

Rep: Reputation: 30
Try these programs. If they aren't available, you can install them with your package manager. The package for lspci may be called "pciutils."

dmidecode
lspci
lshw

You seem to care mostly about hard disks and partitions. If you are using udev (you probably are,)
ls /dev/[hs]d*
will show you the attached drives and their partitions.
 
Old 07-21-2008, 01:47 PM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
fdisk is more suitable to list your current drive and storage allocations for your system.

man fdisk for more options. -l will list drives and partitions.

Don't use ls /dev/[hs]d* as this will print off devices that might not exist.

And if you have LVM setup since you speak of pvcreate, vgdisplay will display available drive space if unallocated to your existing LVM or volgroups, etc.
 
Old 07-22-2008, 10:18 AM   #4
kundor
Member
 
Registered: Aug 2003
Distribution: GoboLinux
Posts: 167

Rep: Reputation: 30
Quote:
Originally Posted by trickykid View Post
fdisk is more suitable to list your current drive and storage allocations for your system.

man fdisk for more options. -l will list drives and partitions.
That is indeed pretty handy.

Quote:
Don't use ls /dev/[hs]d* as this will print off devices that might not exist.
Not if you are using udev, which every major distro does.
 
Old 07-22-2008, 10:46 AM   #5
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 245Reputation: 245Reputation: 245
Quote:
Originally Posted by kundor View Post
Not if you are using udev, which every major distro does.
Well, what if they were using an older version not using udev?

I only say to not use that in a general sense. fdisk -l will be more accurate.
 
  


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
Hardware List tharg Linux - Newbie 5 08-11-2006 02:54 PM
Hardware list lrts Linux - Newbie 3 10-05-2005 10:41 AM
List Hardware Specification arch4n93l Linux - Hardware 1 01-04-2005 07:06 AM
Where Can I get Hardware List? DavidTempler Fedora 3 01-08-2004 06:46 AM
Hardware Device List mackie_lin Linux - Hardware 6 11-26-2002 04:25 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration