On Saturday 09 October 2004 12:56 pm, Chris Roubekas wrote:
----- Original Message ----- From: Chris Roubekas
cat /proc/mdstat which reported:
server:/ # cat /proc/mdstat Personalities : [raid1] read_ahead 1024 sectors md1 : active raid1 hdc1[1] hdb1[0] 199125568 blocks [2/2] [UU]
unused devices: <none>
Which made me very happy as I saw that after the hard-drive lights stopped glowing things appeared just great! But then, I issued a mdadm --detail /dev/md0 and see what I get:
server:/ # mdadm --detail /dev/md1 /dev/md1: Version : 00.90.00 Creation Time : Sat Oct 9 15:44:51 2004 Raid Level : raid1 Array Size : 199125568 (189.90 GiB 203.95 GB) Device Size : 199125568 (189.90 GiB 203.95 GB) Raid Devices : 2 Total Devices : 3 Preferred Minor : 1 Persistence : Superblock is persistent
Update Time : Sun Oct 10 02:09:02 2004 State : dirty, no-errors Active Devices : 2 Working Devices : 2 Failed Devices : 1 Spare Devices : 0
See the above? One drive has been previously marked as failed somewhere along the way. You can go in and remove that and your count will go down to 2 total. Its reporting it correctly.
Number Major Minor RaidDevice State 0 3 65 0 active sync /dev/hdb1 1 22 1 1 active sync /dev/hdc1 UUID : 22a79613:35bf4980:215dbc1e:910acdea
I am totally confused by what I see here for the following reasons:
a) How is it possible to say Total Devices 3 when there are only 2?? b) Why am I seeing the State: Dirty, no-errors still???
Don't worry about the dirty bit. It means that files on that drive are potentially not all flushed to disk yet, or are currently open. -- _____________________________________ John Andersen