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

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



Hey Alvin,

My responses follow yours in the body.

At Friday, 10 December 2004, Alvin Oga <aoga@ns.Linux-Consulting.
com> wrote:

>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 

hc -- i have another machine w/ raid1 and i can mount /dev/hdc partitions 
.. even can see data i put only on /dev/hda is mirrored.
>
>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
>

hc -- after i first noticed this problem earlier in the week, i repartitioned 
/dev/hdc with cfdisk and reformatted the partitions. I relyed on 
cfdisk managing the cylinder boundaries correctly and i think it 
did. after reformatting, and before rebuilding the array, fdisk -
l /dev/hdc showed the proper partitions ... this happened when the 
mirror was rebuilt. also, the file system type i selected when i 
created the partitions was hex FD -- raid filesystem.

>> 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

hc -- :O

>---------------------------------------
>
>> # 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]

hc -- what does the [UU] mean? 

hc -- obviously, my partition is faulty but how can i fix it? do 
i have to repartition (again) and reformat (again)? this didn't seem 
to help the first time.

thanks!

harland
>
>c ya
>alvin
>
>-- 
>To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
>with a subject of "unsubscribe". Trouble? Contact listmaster@lists.
debian.org
>



http://www.zerocrossings.com/












Reply to: