Disk information when RAID is enabled.
I am working on :
SUSE Linux Enterprise Server 10 (ia64) VERSION = 10 PATCHLEVEL = 2 Example 1:If Raid is enabled on disk then the information in cat /proc/partitions is shown as : 104 0 35532720 cciss/c0d0 104 1 2104483 cciss/c0d0p1 104 2 33423232 cciss/c0d0p2 104 16 35532720 cciss/c0d1 104 32 35532720 cciss/c0d2 Example2:If normal disk is taken the output is as follows: 8 0 35566480 sda 8 1 102383 sda1 8 2 409600 sda2 8 3 210925 sda3 8 4 2104515 sda4 8 5 32739023 sda5 According to my application I need to find out the information of the disk . Please can you tell me how can I get disk information when my system is RAID enabled(cat /proc/partitions shows the entry of the controllers in example 1). Can we get Partitions information of the Disk when Disk are connected to system by controller ? Any Pionters towards answers are welcomed. Thanks Roli |
Look at this post, for info on how to query the drives in the array.
http://www.linuxquestions.org/questi...06#post3295106 Code:
mail:~# cat /proc/partitions The difference between the raid and non-raid is in the naming convention. the list below shows how the partitions and disk naming conventions would compare. /dev/sda1 = /dev/cciss/c0d0p1 /dev/sda2 = /dev/cciss/c0d0p2 /dev/sda3 = /dev/cciss/c0d0p3 /dev/sdb1 = /dev/cciss/c0d1p1 /dev/sdb2 = /dev/cciss/c0d1p2 /dev/sdb3 = /dev/cciss/c0d1p3 c0d0p1 c0 = Controller Number d0 = Logical Disk Number px = Partition number Does that help or did I miss the mark entirely for what you were trying to figure out ? |
Thanks For the Information.
As far as my understanding is concerned we can see the names of controllers present on our system in /dev/cciss. But the problem that I am facing is that I see a list of only 1 controller in /dev/cciss. My concern is now to find out how many disks are connected to my system/controller is there a way we can do it in Linux. |
Guess maybe I should have provided a link to info about Linux management tools for the HP smartarray... For some reason I didn't even think about that when i did my last post..
http://hwraid.le-vert.net/wiki/SmartArray - hpacucli described on this page looks like it will do exactly what you want. http://cciss.sourceforge.net/ - Scroll down to the utilities section for more tool options hpacucli This tool is a proprietary one created by HP. It can do both reporting and management. List physical drives on controller in slot 0: Code:
server:~# hpacucli ctrl slot=0 pd all show status |
All times are GMT -5. The time now is 11:31 AM. |