
|
View Full Version : Determining Hard Drive
Steve33 03-21-2001, 08:20 PM I just got a dedicated server set up which is supposed to have a 10k SCSI hard drive. What is the best way to determine if a SCSI hard drive is actually installed?
When I run cat /var/log/dmesg I get the following:
VP_IDE: IDE controller on PCI bus 00 dev 21
VP_IDE: placing both ports into native PCI mode
VP_IDE: Missing I/O address #0, please report to <mj@ucw.cz>
VP_IDE: device disabled (BIOS)
floppy0: no floppy controllers found
md driver 0.90.0 MAX_MD_DEVS=256, MAX_REAL=12
raid5: measuring checksumming speed
raid5: MMX detected, trying high-speed MMX checksum routines
pII_mmx : 1919.478 MB/sec
p5_mmx : 2002.536 MB/sec
8regs : 1471.803 MB/sec
32regs : 867.156 MB/sec
using fastest function: p5_mmx (2002.536 MB/sec)
scsi : 0 hosts.
scsi : detected total.
md.c: sizeof(mdp_super_t) = 4096
Partition check:
RAMDISK: Compressed image found at block 0
autodetecting RAID arrays
autorun ...
... autorun DONE.
VFS: Mounted root (ext2 filesystem).
scsi : 0 hosts.
Does this mean anything?
cbaker17 03-21-2001, 08:53 PM It looks like you dont have scsi see where it says host detected it should read more than 0
Chicken 03-21-2001, 09:21 PM Not sure if this is what you are looking for, but in telnet:
df -h
and Karl posted this:
If the drives start with 's', they are SCSI (example: /dev/sdb1)
If the drives start with 'h' then they are most likely IDE (example: /dev/hda1)
Steve33 03-21-2001, 09:25 PM Hmmm....I get the following when I run df -h
/dev/rd/c0d0p2
Chicken 03-21-2001, 09:52 PM hmmm, well you'vepicked the extent of my knowledge on the subject. Someone else will be around that actually knows something. :)
That is weird. df command works on myne
Try haveing a look
cat /etc/fstab
It should list what device is mounted where, so you will be able to spot sdX of hdX.
For example the first line of myne is
/dev/hda5 /boot ext2 defaults 1 2
So the boot partiton is on first (a) IDE hard disk.
There will be 1 line for each mount point in the fstab file.
If yous are SCSI it will just be /dev/sdX
I am sure there is a better way to check on the hardware in your server but I don't know what it is.
Steve33 03-21-2001, 09:58 PM No problem. Thanks anyway! :)
We all posted within 10 minutes LOL :)
cperciva 03-21-2001, 10:37 PM No, there is no easy way to find out.
Your drive is connected via a RAID controller -- that's why you see the RAID lines in dmesg, and why the device is /dev/rd/whatever.
If you want to identify the drive, you'd have to do it through the RAID controller, ie ask the driver to ask the controller to ask the drive what it is. I'm sure that is possible, but you'd have to look in the documentation for the controller.
Travis 03-22-2001, 12:48 AM The RAID references in the posted dmesg output are for md, the Linux software RAID driver. I've never used it, so I don't know what type of device names it uses for its logical drives.
The device names you listed, though, are definitely used by the driver for Mylex RAID cards. If there is a /proc/rd directory, it's a Mylex card, and you can find out what drives are installed. Just read the contents of /proc/rd/c0/current_status
Newbie 03-22-2001, 01:57 AM I don't know if this works for a raid system but I like it.
http://phpsysinfo.sourceforge.net/phpsysinfo/
IPC PRO 04-12-2001, 12:30 AM Yes, you definately have that drive connected to a RAID controller.
1) Is there any other SCSI drives attached to RAID controller?
2) If not, was the RAID controller previously used, or connected to several drives? (If so, go into the RAID utility during the boot-up. You will see a message at the bottom of the screen that says something similar to "To enter Mylex Utility, press cntrl-m", or something of that nature. Once in, go to array management and delete all RAID arrays. It appears that the controller could potentially have had an array on it previously, it thinks it is running in degraded mode with a single drive. Depending on the RAID level, you might not be able to use the drive at all (even though the system recognizes the fact that it is there.)
3) If no RAID array exists, or existed, then the RAID controller drivers are probably not installed correctly. Mylex does have Linux Read Me's, drivers, and How-To's posted.
Have Fun!
|