Operating System - Linux
1821546 Members
2065 Online
109633 Solutions
New Discussion юеВ

Re: Finding out what the hard drive model and capacity.

 
SOLVED
Go to solution
Paul Ambrosio
New Member

Finding out what the hard drive model and capacity.

We are looking for some Linux command or file that would indicate us what model and size of hard drive is installed in our machines. Some commands like dmesg | grep hd don't seem to work on the HP DL-360's because of the way the driver is installed in those models.
9 REPLIES 9
Vernon Brown_4
Trusted Contributor
Solution

Re: Finding out what the hard drive model and capacity.

The Gnome GUI, System Tools > Hardware Browser seems to show the drvies make and size on my system.

Vern
Paul Ambrosio
New Member

Re: Finding out what the hard drive model and capacity.

Tried that, works on my desktop but I can't get it to work remotely, querying the servers. Any idea of a line command?

[sadmxxx@nycxxxxxxxx]:hwbrowser
Traceback (innermost last):
File "/usr/share/hwbrowser/DeviceList.py", line 158, in ?
setup_ui ()
File "/usr/share/hwbrowser/DeviceList.py", line 151, in setup_ui
DeviceDisk.initialize (xml, hardware)
File "/usr/share/hwbrowser/DeviceDisk.py", line 397, in initialize
for device in hardware [kudzu.CLASS_HD]:
File "/usr/lib/python1.5/UserDict.py", line 14, in __getitem__
def __getitem__(self, key): return self.data[key]
KeyError: 12
Darrin St. Amant
Frequent Advisor

Re: Finding out what the hard drive model and capacity.

http://h18000.www1.hp.com/products/quickspecs/11531_na/11531_na.HTML#Models

model can be found in /proc/scsi/scsi

You have one of these.

146.8-GB 10,000 rpm U320 Universal Hard Drive (1") 286716-B22
72.8-GB 10,000 rpm U320 Universal Hard Drive (1") 286714-B22
36.4-GB 10,000 rpm U320 Universal Hard Drive (1") 286713-B22
72.8-GB 15,000 rpm U320 Universal Hard Drive (1") 286778-B22
36.4-GB 15,000 rpm U320 Universal Hard Drive (1") 286776-B22
18.2-GB 15,000 rpm U320 Universal Hard Drive (1") 286775-B22
Francisco J. Soler
Honored Contributor

Re: Finding out what the hard drive model and capacity.

Hi Paul,

in /proc there ara a lot of information about everithing.

For example:

cat /proc/ide/ide0/hda/capacity
cat /proc/ide/ide0/hda/model

the capacity is en 512 byte blocks so you must divide it by 2. You can try:

echo "`cat /proc/ide/ide0/hda/capacity`/2" | bc

Frank.
Linux?. Yes, of course.
Stuart Browne
Honored Contributor

Re: Finding out what the hard drive model and capacity.

Frank, that unfortunately that won't work here, as the HDD's would be connected to a SCSI bus in the DL360 series.

If the drives are attached to a standard SCSI bus (i.e. not a RAID controller), then '/proc/scsi/scsi' might have the details you are after.

If not, then you'll need the ACU-XE installed in order to access that level of device information (from the RAID controller directly). You are using a SmartArray aren't you?
One long-haired git at your service...
Roberto Polli
Trusted Contributor

Re: Finding out what the hard drive model and capacity.

pls. searchi in this fourm. Already been asked/answered in _detail_
Peace, R>
Paul Ambrosio
New Member

Re: Finding out what the hard drive model and capacity.

Thanks folks,

Stuart's answer solved the puzzle. For some reason the /proc/scsi/scsi on the DL-360 doesn't have the information. As I mentioned before, someone from redhat told me those boxes have an odd drive configuration. Even a third party software like "lshw" fails to display the drive. ACU-XE seems to be the answer.
Uwe Zessin
Honored Contributor

Re: Finding out what the hard drive model and capacity.

Paul,
in that case the physical disk are 'shielded' by the SmartArray controller. What you see as 'SCSI disks' are really logical disks from the controller presented through a SCSI emulation layer.
.
Roberto Polli
Trusted Contributor

Re: Finding out what the hard drive model and capacity.

if you have cciss

#cat /proc/driver/cciss/cciss0

cciss0: Compaq Smart Array 5312 Controller
Board ID: 0x40830e11
Firmware Version: 2.36
Memory Address: 0xf883a000
IRQ: 15
Logical drives: 2
Highest Logical Volume ID: 1
Current Q depth: 0
Current # commands on controller 0
Max Q depth since init: 128
Max # commands on controller since init: 130
Max SG entries since init: 31
Sequential access devices: 0

cciss/c0d0: blksz=512 nr_blocks=35553120
cciss/c0d1: blksz=512 nr_blocks=355555680
nr_allocs = 57860991
nr_frees = 57860991


Peace, R>