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

Re: raid0 initialization



On Tuesday 15 June 2004 07:53, Harland Christofferson wrote:
> this is my fist time installing raid0 on a machine that is not a
> new install. /dev/hda has gobs of good data i don't want to lose.
> /dev/hdc is newly partitioned and formatted before installing the
> raid tools.
>
> kernel version is 2.4.18-k7
>
> i installed raidtools2 and mdadm.
>
You don't need both.  I don't think it will do any harm to have both 
installed, though.

> i created a new file /etc/raidtab
>
> raiddev /dev/md0
>         raid-level      1
>         nr-raid-disks   2
>         nr-spare-disks  0
>         persistent-superblock 1
>         device          /dev/hda1
>         raid-disk       0
>         device          /dev/hdc1
>         raid-disk       1
>
Above, you said you wanted to install raid0, but your config file indicates 
raid1.  Double check that your config file really says what you want.
>
> then, i tried
> $# mkraid md0
>
> which responded
> $# device md0 is not described in the config file
>
The error message is quite specific.  You did not describe device md0 in any 
config file.  You did describe /dev/md0, however.

> i am reluctant to try
> $# mkraid -f /dev/md0
>
> the force flag just seems scary to me.
>
> any suggestions?

What is the partition type on /dev/hda1 and /dev/hdc1?  If they are not both 
FD (Linux raid autodetect), your raid array won't work.

Note that, if you have data on /dev/hda1 that you want to keep, you should 
mark that disk as a failed disk.  Then, when you make your raid array, data 
won't get erased from /dev/hda1.  You can then mount the disk and the raid 
and copy the data from one to the other.  Once your data is on the raid, 
mark the /dev/hda1 disk as a live disk, and the raid will re-sync, and your 
data will be intact.

If the partition type is not causing your problem, let us know and we'll try 
something else.

Justin Guerin



Reply to: