Operating System - Linux
1829180 Members
2410 Online
109986 Solutions
New Discussion

Re: How to detect slot for a disk

 

How to detect slot for a disk

Hello,

I've several D380 with Hardwareraid and Redhat 2.1. There are 6 internal disk, each with a mirror so in the OS I see my 3 disks.

My question: How can I detect in which slot a disk is?
I.E. I want to remove /dev/cciss/c0d1 (after umount etc), how do I know which 2 disks to pull out off the server? I need a command which says "/dev/cciss/c0d1 are in Slot X and Y". Any ideas?

Best Regards

Andreas



df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/cciss/c0d0p7 61700020 2358200 56207568 5% /
/dev/cciss/c0d0p1 51342 20015 28676 42% /boot
none 4194304 145668 4048636 4% /dev/shm
/dev/cciss/c0d1p1 70009904 51750452 14703124 78% /disk1
/dev/cciss/c0d2p1 70009904 11416172 55037404 18% /disk2
2 REPLIES 2
Ivan Ferreira
Honored Contributor

Re: How to detect slot for a disk

You could use dd to generate read activity for the disks, so, use dd and check the led activity, like this:

dd if=/dev/cciss/c0d0 of=/dev/null
dd if=/dev/cciss/c0d1 of=/dev/null
dd if=/dev/cciss/c0d2 of=/dev/null
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?

Re: How to detect slot for a disk

Hi,

I knew this trick but I did not trust the results. Just did not want to believe the OS is on a RAID5, but it is true. =8-O

However, you got the points for the correct answer ;)
I also found another way: With Insightmanager you can get this information. So there must be a way to get this online.

Have a nice day

Andreas