LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-09-2006, 09:22 AM   #1
C-RAF.
Member
 
Registered: Oct 2005
Distribution: Debian@work / Ubuntu@home
Posts: 42

Rep: Reputation: 15
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...
If somebody knows about Raid.. could be helpful.
 
Old 02-10-2006, 07:41 AM   #2
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
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.

Last edited by stress_junkie; 02-10-2006 at 07:44 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid Problem Fedora Core 3, RAID LOST DISKS ALWAYS icatalan Linux - Hardware 1 09-17-2005 03:14 AM
Hardware RAID on IDE disks czezz Linux - Hardware 3 08-05-2005 09:22 AM
Setting up RAID 0 with 3 SCSI disks forrest44 Slackware 1 03-03-2005 03:43 PM
Display disks. tech1222 Linux - Hardware 1 09-16-2004 10:36 PM
Hard Disks & RAID-1 DeathsFriend Fedora 2 03-25-2004 07:26 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration