>Mark Lo wrote:
>
> > Hi,
> >
> >          I have software raid 1 running on my system, how can i find out
> > whether the raid is working properly without shutting down my server.
> > As I know, If there is a raid error, the system will prompt at the
> > startup time.  So , how to find out whether the raid is working fine
> > without reboot the server.

The software RAID subsystem will start logging to syslog and possibly the 
console in the event of problems.  You can also get some information from 
the /proc filesystem:

# cat /proc/mdstat
Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 sdb1[1] sda10[0] 1024896 blocks [2/2] [UU]
unused devices: <none>

In this case, I have a raid1 filesystem, /dev/md0.  It's active using 
partitions sdb1 & sda10.  The 2/2 indicates 2 out of 2 mirrors active and 
I'm not sure what 'UU' means  I *think* if one of the disks was bad or 
being updated, one of the U's would be replaced with '_' but don't quote me 
on that.

-Eric


Eric Sisler
Library Computer Technician
Westminster Public Library
Westminster, CO, USA
[EMAIL PROTECTED]

Linux - don't fear the Penguin.
Want to know what we use Linux for?
Visit http://gromit.westminster.lib.co.us/linux


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to