LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-18-2010, 02:12 AM   #1
michas100
LQ Newbie
 
Registered: Jan 2010
Location: Poland
Distribution: Slackware 12.2
Posts: 3

Rep: Reputation: 1
Question How to rebuild/repair array(Raid 1) with only "mdadm" command Slack12.2


Hello Everybody, I wonder how to attach new sata hard disk to software array where are two disk and one is crashed (this is a mirroring mode=Raid 1).
Situation like this:
I unpluged crashed disk and I buy the similar one and plug in What Next should I do?
PS--> Thanks for reply :-)

Last edited by michas100; 03-18-2010 at 02:56 AM.
 
Old 03-18-2010, 02:35 AM   #2
crts
Senior Member
 
Registered: Jan 2010
Posts: 1,604

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
http://www.linuxquestions.org/questi...ailure-796139/
 
Old 03-18-2010, 02:54 AM   #3
michas100
LQ Newbie
 
Registered: Jan 2010
Location: Poland
Distribution: Slackware 12.2
Posts: 3

Original Poster
Rep: Reputation: 1
Thank you :-) I think parametr -a is a assemble command . Sorry for my English.

One minute when I plug in new disk, do I have to create partitions?(on new disk?) or system do it for me?

Last edited by michas100; 03-18-2010 at 02:58 AM.
 
Old 03-18-2010, 08:26 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
If its a brand new disk, yes. Create the partition (eg: sdb1, type fd) and create a filesystem eg mkfs.ext3 /sdb1; then add to array.
 
Old 03-19-2010, 04:53 AM   #5
michas100
LQ Newbie
 
Registered: Jan 2010
Location: Poland
Distribution: Slackware 12.2
Posts: 3

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by chrism01 View Post
If its a brand new disk, yes. Create the partition (eg: sdb1, type fd) and create a filesystem eg mkfs.ext3 /sdb1; then add to array.
Thank You for reply I wonder is in Slackware a command that can transfer partitions layout from hard drive which is in array(raid 1) to brand new hard drive(the same capacity or bigger)and I want system file raiserfs not ext3 :-) please :-)

I found how here:
Code:
    $ sfdisk -d /dev/sda > partitions.txt
    $ sfdisk /dev/sdb < partitions.txt
For now ONLYthis question raiserfs command ... please :-) how make it on new dysk, is it correct? mkfs.reiserfs /sdb1 ???

Last edited by michas100; 03-22-2010 at 09:37 AM. Reason: add some new informations
 
1 members found this post helpful.
  


Reply

Tags
mirroring, raid, software


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
MDADM Help - "not enough to start the array while not clean - consider --force." DavidDiggs Linux - Server 2 03-27-2010 08:55 PM
mdadm: how to avoid complete rebuild of RAID 6 array (6/8 active devices) pbwtortilla Linux - Server 4 12-25-2009 08:06 PM
IMSM "volumes" in mdadm RAID setup Openumerix Linux - Kernel 8 12-18-2009 12:32 PM
mdadm: fails to assemble array. All 8 devices report being "slot 0" mesosphere Linux - General 1 06-11-2008 10:42 AM
RAID 5 with mdadm "spare" and "active sync" confusion ufmale Linux - Server 1 12-08-2007 10:31 AM


All times are GMT -5. The time now is 05:01 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration