🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.suse
Article #188

Re: mkraid /dev/md0 aborting!?

#188
From: Tommi Mäkitalo
Date: Wed, 14 Nov 2001 09:03
81 lines
3734 bytes
Hi,

You can not just mirror a partition that way. It is more 
complicated.

You have to create your raid-system first, then create a filesystem on it 
and put your data in. You must create your filesystem on the raid-device 
/dev/md? and not on /dev/hda?. For a existing partition you have to copy 
your data somewhere and after creating your raid-system copy your data 
back. You can't do that with your root-partition. You need to boot another 
Linux-System (e.g. from floppy) and recreate the root-partition. Then 
modify your /etc/fstab and /etc/lilo.conf before booting the new system.

This explanation is not so exact. You should read some howtos. There is 
some root-raid-howto, which should help you.

Tommi

alex wrote:

> hi
> 
> sorry for this reposting - but now i hope everything is right :-) (the md*
> descriptions)
> 
> i've tried to create a raid 1 on my suse 7.2. there are 2 identical
> harddisks inside. IDE 40GB IBM Drive. i've installed on the first (hda*)
> the os and than create the partitions with yast on hdb*. all hdb
> partitions have the same size and the same filessystem set.
> 
> hda1 = hdb1 = Linux Native
> hda2 = hdb2 = Linux Swap
> hda3 = hdb3 = Linux Native
> 
> now i created a /etc/raidtab
> 
> # Disk1 - raid-1 configuration
> raiddev /dev/md0
>         raid-level      1
>         nr-raid-disks   2
>         nr-spare-disks  0
>         chunk-size      4
>         device          /dev/hda1
>         raid-disk       0
>         device          /dev/hdb1
>         raid-disk       1
> 
> # Disk2 - raid-1 configuration
> raiddev /dev/md1
>         raid-level      1
>         nr-raid-disks   2
>         nr-spare-disks  0
>         chunk-size      4
>         device          /dev/hda2
>         raid-disk       0
>         device          /dev/hdb2
>         raid-disk       1
> 
> # Disk3 - raid-1 configuration
> raiddev /dev/md2
>         raid-level      1
>         nr-raid-disks   2
>         nr-spare-disks  0
>         chunk-size      4
>         device          /dev/hda3
>         raid-disk       0
>         device          /dev/hdb3
>         raid-disk       1
> 
> 
> 1. now i will run mkraid /dev/md0 and it will crash
> handling MD device /dev/md0
> analyzing super-block
> disk 0: /dev/hda1, 24066kB, raid superblock at 24000kB
> mkraid: aborted, see the syslog and /proc/mdstat for potential clues.
> 
> 2. now i will run mkraid /dev/md1 - created sucessfull
> 3. with /dev/md2 the same problem as /dev/md0
> 
> 
> Alex
Technical Details
Message-ID: <91cts9.b7h.ln@192.168.31.31>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!btnet-peer0!btnet-peer1!btnet!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!unlisys!news.snafu.de!news.dtag.de!192.168.31.31!nobody
References: <9ss6or$ik6$06$2@news.t-online.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f4b73,5faf048bb876a275
X-Google-Attributes: gidf4b73,public
X-Google-Thread: 1041dd,5faf048bb876a275
X-Google-Attributes: gid1041dd,public
X-Google-ArrivalTime: 2001-11-14 21:26:48 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!btnet-peer0!btnet-peer1!btnet!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!unlisys!news.snafu.de!news.dtag.de!192.168.31.31!nobody
From: Tommi Mäkitalo <t.maekitalo@epgmbh.de>
Newsgroups: alt.os.linux.suse,ch.comp.os.linux
Subject: Re: mkraid /dev/md0 aborting!?
Followup-To: alt.os.linux.suse
Date: Wed, 14 Nov 2001 10:03:37 +0100
Organization: Dr. Eckhardt + Partner GmbH
Lines: 82
Message-ID: <91cts9.b7h.ln@192.168.31.31>
References: <9ss6or$ik6$06$2@news.t-online.com>
NNTP-Posting-Host: mail.eckpart.de
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
X-Trace: news.dtag.de 1005801950 22338 217.6.160.186 (15 Nov 2001 05:25:50 GMT)
X-Complaints-To: usenet@news.dtag.de
NNTP-Posting-Date: 15 Nov 2001 05:25:50 GMT
User-Agent: KNode/0.6.1