LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Display Raid disks informations (https://www.linuxquestions.org/questions/programming-9/display-raid-disks-informations-413448/)

C-RAF. 02-09-2006 09:22 AM

Display Raid disks informations
 
Hello,

There is two disks in raid on a webserver. 2*250Go and I actually see 250Go when I 'df'. I'm not the one who did the installation but it' s working pretty well!

When I do cat /proc/mdstat, I got:
md0: active raid1 sdb2[1] sda2[0]
<979840> blocks [2/2] [UU]


But I was wondering how to display informations concerning all my physicals disks on an admin page. I did it for my main disk, but how to display informations (quotas) about the second disks to prevent failure and make sure that they're well synchronised?

I don't know if there's linux command for that or specific raid tools... :confused:
If somebody knows about Raid.. could be helpful.

stress_junkie 02-10-2006 07:41 AM

You can query the man page software to find if there is any information available. First you can look for the word 'raid'. Then, since your system is using the multiple device driver (md) to create the RAID system, you can query the man software for any information related to 'md'. The information that is displayed depends on what is installed on your system. This is what I see with these commands.
Code:

$ man -k raid | sort
braid (6x)          - draws random color-cycling braids around a circle
ckraid (8)          - obsolete
dmraid (8)          - discover software RAID devices and activate RAID sets
lsraid (8)          - List and query Linux md devices.
md (4)              - Multiple Device driver aka Linux Software Raid
mdadm (8)            - manage MD devices aka Linux Software Raid.
mdadm.conf (5)      - configuration for management of Software Raid with mdadm
mkraid (8)          - initializes/upgrades RAID device arrays
raid0run (8)        - starts up old (superblock-less) RAID0/LINEAR arrays
raidadd (8)          - obsolete RAID command
raidreconf (8)      - reconfigure RAID arrays
raidrun (8)          - obsolete RAID command
raidstart (8)        - command set to manage md devices.
raidstop (8)        - command set to manage md devices.
raidtab (5)          - configuration file for md (RAID) devices
sgraidmon (8)        - SCSI Generic RAID Monitor
$

Here you can see that there are two likely candidates; lsraid and mdadm. Now you can query the man software for all of the information available for each of these commands.
Code:

$ man lsraid
$ man mdadm

Since I can see information about both raid and md then there is no need for me to query man -k md. You may want to do that just to see the differences between that and man -k raid.

So there you are. :)


All times are GMT -5. The time now is 10:12 PM.