LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to rebuild/repair array(Raid 1) with only "mdadm" command Slack12.2 (http://www.linuxquestions.org/questions/linux-software-2/how-to-rebuild-repair-array-raid-1-with-only-mdadm-command-slack12-2-a-796214/)

michas100 03-18-2010 02:12 AM

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

crts 03-18-2010 02:35 AM

http://www.linuxquestions.org/questi...ailure-796139/

michas100 03-18-2010 02:54 AM

Quote:

Originally Posted by crts (Post 3902843)

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?

chrism01 03-18-2010 08:26 PM

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.

michas100 03-19-2010 04:53 AM

Quote:

Originally Posted by chrism01 (Post 3903899)
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 ???


All times are GMT -5. The time now is 05:11 PM.