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

Re: howto know if raid is really working?



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

>hi ya harland
>
>On Wed, 15 Dec 2004, Harland Christofferson wrote:
>
>> development:/etc# cat raidtab 
>> raiddev /dev/md0
>>         raid-level      1
>>         nr-raid-disks   2
>>         nr-spare-disks  0
>>         chunk-size      4
>>         persistent-superblock 1
>>         device          /dev/hda
>>         raid-disk       0
>>         device          /dev/hdc
>>         raid-disk       1
>
>you need to use /dev/hda1   and /dev/hdc1
>
>or whatever your corresponding partition is for your setup
>
>/dev/hda1	/
>/dev/hda2	/tmp
>/dev/hda3	/var
>/dev/hda5	/usr
>/dev/hda6	swap
>/dev/hda7	/home
>
>..... gets extremely tiresome for creating /dev/md devices
>     for sw raid
>
>use google to find other raidtab examples for 
>config with multiple partitions
>
>c ya
>alvin
>

okay ... it looks like using the whole disk was not the way to go 
as it looks like the only time the disks are synced is when i 
mdadm --stop /dev/md0; mdadm -C /dev/md0 -l1 -n2 /dev/hda /dev/hdc 

some of the reading i have googled leads me to believe that i have 
to start from scratch. the following commands aren't working out 
for me:

mdadm -C /dev/md0 -l1 -n2 /dev/hda1 /dev/hdc1
mdadm -C /dev/md1 -l1 -n2 /dev/hda3 /dev/hdc3
mdadm -C /dev/md2 -l1 -n2 /dev/hda6 /dev/hdc6
mdadm -C /dev/md3 -l1 -n2 /dev/hda7 /dev/hdc7
mdadm -C /dev/md4 -l1 -n2 /dev/hda8 /dev/hdc8
mdadm -C /dev/md5 -l1 -n2 /dev/hda5 /dev/hdc5


----------------------------------------------------------------------
Zero Crossings, Inc. -- Embedded and Digital Signal Processing Systems

http://www.zerocrossings.com/












Reply to: