Having only remote access (no physical access), to a server (that is SSH), how do I (or may be is it possible):
- find out whether it is RAID configured or not? If it is RAID configured, whether it is software or hardware RAID? What level of RAID it is?
- find the RPM speed of the hard disk?
NOTE: In this case, I've access to both RHEL4/5 and CentOS4/5 based Linux servers.
EDIT
Here is an output of mount
command from a RHEL4 server:
/dev/mapper/VolGroup00-LogVol00 on / type ext3 (rw)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda1 on /boot type ext3 (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
Software raid would probably show up in a
df -h
listing. Try to find references to /dev/md*. But you've mentioned vendor hardware, so I'll assume you're trying to get info on hardware RAID controllers.Depending on the server hardware, I will try a few techniques to get system information. I start with dmidecode, usually piped into less to obtain the server make/model information (and potentially, the serial number). For HP systems, this helps narrow down to a particular model or part number. In that case, I can infer the raid controller info. For Dell,
dmidecode | grep -i serial
should output the service tag. You can cross reference the initial build info from Dell's support site.HP setups are fairly easy. You can
cat /proc/driver/cciss/cciss*
and receive an output like:Obtaining the disk rotation speed info would require installing the HP Proliant Support Pack or at least the hpacucli utility to get the drive specifics.
For Dell and most other hardware raid controllers,
cat /proc/scsi/scsi
should reveal the SCSI controller and/or RAID controller config.Armed with the drive model numbers, you can google to obtain the specifications. The last entry in the output clearly shows a virtual disk comprised of the two physical disks listed above. You can get the exact controller spec from
lspci -v
.You have an LVM logical volume mounted here :
See the output from lvdisplay, vgdisplay and pvdisplay to have details about the LVM setup. LVM volumes are generally simple aggregates (RAID-0), but they can be mirrored too (RAID-1).
I see that you have a Perc 6/i. These are based upon LSI Megaraid IIRC. You can use the MegaCli tool (dowloaded from lsi.com) to get the RAID hardware configuration :
you can look like this :
$mount
if the output is something like /dev/md then it should be software raid.
for hard drive speed use hdparam.
if is hardware raid will be more difficult to see - run dmidecode and look at the output - this will tell many info about the node