LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-01-2008, 03:32 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 31
recreate md-raid


I just reinstalled my system. how can I recreate my md raid sets without losing data? I have a copy of my old mdadm.conf.

/home is on one of these sets.

one problem is that my p-ata disks now use scsi drivers like my sata disks, so names have changed

searching have revealed that --assume-clean is part of the solution, but I am unsure of what more I need to do.

I have 3 arrays, all are good.

Last edited by edgjerp; 05-01-2008 at 04:14 AM. Reason: more info
 
Old 05-01-2008, 05:43 AM   #2
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
I think I found a recipe that will work. the only thing I need now is to match the uuid values in the old mdadm.conf to the partitions that constitute the arrays, so I get the order correct. (I have figured out which partitions go to each array as they are of different size (4 partitions of exactly same size in each array))

can I just assume that the new names were given in the same order as before? (hda->sda, hdb->sdb, ... sda->sdd, etc.) or is the partition that qtparted reads an ext3 filesystem the first one? the old partitions were included alphabetically in the arrays

do I risk irreversibly harming my arrays if I get this wrong?

Last edited by edgjerp; 05-01-2008 at 06:06 AM.
 
Old 05-01-2008, 04:26 PM   #3
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 31
I took a guess, it worked perfectly.
 
Old 05-01-2008, 04:45 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Congrats on doing that all by yourself.
 
  


Reply



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
Recreate xorg.conf xaphalanx Fedora 2 04-18-2006 02:53 PM
How to recreate Gnome panel tulip4heaven Linux - Newbie 6 03-28-2006 12:37 AM
Software Raid - recreate failed disk. FragInHell Red Hat 5 11-25-2004 04:32 PM
recreate swap samhob Linux - General 11 02-07-2004 10:04 AM
how to recreate mysql database java8964 Linux - Software 1 07-25-2002 09:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:03 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration