Serial Numbers for SAS drives in RedHat ES 4.0 & 5.1
Dear All,
I've got a bit of a problem - I have to inventory a number of IBM HS21 RedHat Linux ES 4.0 and 5.1 servers and I have to get the Physical Hard Disk serial numbers. Before anyone jumps down my throat and shouts "Hey, Stupid, you haven't been searching properly, use /sbin/hdparm -i /dev/hda1", there are a couple of curve balls - The drives are SAS drives. The drives have been hardware mirrored and then then split into two partitions - sda1 and sda2. Hdparm just outputs that the device path and that is it. Does anyone know how to get the Physical Serial number for both drives? Any help would be gratefully received. Regards, QuietLeni |
Is there a utility available from the manufacturer of your RAID controller ?
The RAID management utility should be able to query that info for you. You didn't post the Controller info though.. If that's a LSI controller check out the Megaraid Storage Manager for Linux for example.. and besides I would have suggested lshw as a single command to get all the serial numbers :) but you are right that would not work with your configuration.. |
LSI 1063e RAID Controller
Good News: It *IS* an LSI Controller - the 1063E, to be exact, but...
Bad News: We are not installing any special controller driver (so I can't query the controller using a Controller Utility). :-( Any other ideas? |
it's not a driver, you already have the driver installed. it's a management utility to view information about the array. it can provide information about the array health, drive health, status, etc..
You are using a Hardware RAID controller, and if you can't install the utility, provided by the manufacturer of the controller to manage it, then I guess you are hosed.. |
smartctl -a
|
smartctl is an interesting idea if it supports his controller... hrm..
Quote:
The number after the device is the specific drive in the array.. Quote:
|
Works... almost!
Thanks guys, I am almost there (sort of)...
smartctl *DOES* work properly on RedHat ES 5.1 (version 5.36), but the version on RedHat ES 4.0 is version 5.15. I seem not to get any information for my drives at all on 4.0. Can I copy the smartctl from 5.1 into my temporary directory and then run it instead of the native version on 4.0 or is this specific to 5.1? Lastly, I need to be able to ascertain which item I find in the mount output to plug into smartctl to get the details of my Physical Disk. I am currently looking for the device that is "on /boot" and then piping this into the smartctl command. This is not very generic, as I want to find all of the Physical Disks. Is there a way of finding the physical disks as well? |
well the first thing you need to know is the driver for your controller. smartctl gave me the options of ata, scsi, marvell, 3ware,N, cciss,N and my controller uses the cciss driver, so that is the one I had to specify in the command. I don't know if these ar the only drivers that are supported, or if cciss was there because it is loaded and running on my system. Tthose options may change depending on the loaded drivers in your system.....
if you have a LSI controller your driver would be one of the following most likely.. mptsas megasas megasr You should be able to see one of these when you look at the output of lsmod fdisk -l should show you the logical drives so you can use that in your smartctl statement i.e: /dev/sda or some such.. mount should show you what device /boot is on At this point without knowing more info all I can do is guess, and my psychic powers are poor if not entirely non-existent smartctl --all -d mptsas,0 /dev/sda1 smartctl --all -d mptsas,1 /dev/sda1 smartctl --all -d mptsas,2 /dev/sda1 smartctl --all -d mptsas,3 /dev/sda1 smartctl --all -d mptsas,4 /dev/sda1 smartctl --all -d mptsas,5 /dev/sda1 that would be for 6 drives, using the mptsas driver and a device ID of /dev/sda... I don't think the version of smartctl matters too much, so I wouldn't worry about that right now. |
Quote:
|
All times are GMT -5. The time now is 10:43 AM. |