[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to tell if raid1 array is REALLY working?



hi ya harland

On Fri, 10 Dec 2004, Harland Christofferson wrote:

> # mount /dev/hdc6 /mnt/hdc6
> 
> the response I receive was:
> 
> mount: wrong fs type, bad option, bad superblock on /dev/hdc6,
>        or too many mounted file systems

i forgot if you can mount a disk that is part of a raid1 array
separately 

you can remove the first disk in the raid1 array and see if it boots
and works properly ( and write a file and see that its sync'd when
the first disk is restored )
	- and repeat with the 2nd disk removed

> hmm ... so, I tried
> 
> # fdisk -l /dev/hdc
> 
> Disk /dev/hdc: 16 heads, 63 sectors, 79656 cylinders
> Units = cylinders of 1008 * 512 bytes
> 
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hdc1   *         1        64     32098+  83  Linux

notice it ends in "64"

> Partition 1 does not end on cylinder boundary:
>      phys=(3, 254, 63) should be (3, 15, 63)
> /dev/hdc2            64     79401  39985785    5  Extended

notice it starts with "64"

you cannot have overlapper start/end cylinder numbers

	- starting cyl number should be "prevEnd+1" not "64" as
	the start of the extended partition  ( should be 65 )

	- its okay for the first extended partition (swap in your case)
	to start at the same cyl start (64) as the extended partition
	itself


> Partition 2 does not end on cylinder boundary:
>      phys=(1023, 254, 63) should be (1023, 15, 63)

> /dev/hdc5            64      1052    497983+  82  Linux swap
> /dev/hdc6          1052     39812  19535008+  83  Linux
> /dev/hdc7         39812     59192   9767488+  83  Linux
> /dev/hdc8         59192     79401  10185178+  83  Linux

all of your "start" cylinder numbers is wrong

your system will crash big time one day
---------------------------------------

> # cat /proc/mdstat
> 
> Personalities : [raid1] 
> read_ahead 1024 sectors
> md0 : active raid1 ide/host0/bus1/target0/lun0/disc[1] ide/host0/bus0/target0/lun0/disc[0]
>       40021568 blocks [2/2] [UU]

good ... --> look for the [UU]
       
c ya
alvin



Reply to: