LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-08-2007, 03:05 PM   #1
Jrowat
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Rep: Reputation: 0
Converting a non-RAID system to use RAID.


Hi,

I have a working Ubuntu 6.06 Server machine. /dev/hdd is full of warm, juicy data, and contains all the important partitions of the system.

/dev/hda is a brand new completely empty drive that is identical in every way to /dev/hdd except for the lack of warm, juicy data.

I want to create a RAID1 setup, so that the two will mirror each other and I will have my redundant copy of all the data.

The problem: While I can create a new RAID using mdadm, that appears to require that I destroy all the data on the partitions. I've found a bunch of "convert your live machine" tutorials, and I have perfectly good backups of everything, but I'm hitting a couple of roadblocks: I don't have and can't find tools like mkraid and the rest of the raidtools and raidtools2 packages, and I don't see how to make mdadm do the job for me.

I *could* copy all the files onto a *third* drive (an external USB drive), boot onto that and use it for the server while I wipe the two internal drives and re-create them as RAID devices, but I'm hoping not to do that. That's my last-resort plan.

So, anyone done this before with Ubuntu? Anyone have some suggestions for how to make it work, or where to get the raidtools package so I can follow along the existing "converting your system to use RAID" tutorials?

Last edited by Jrowat; 06-08-2007 at 03:06 PM.
 
Old 06-08-2007, 03:32 PM   #2
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

For that to work, you need to start the raid in a degraded mode. That means as if it had two disks, but one crashed so you only have one.

It's explained here:
http://tldp.org/HOWTO/Software-RAID-HOWTO.html

Forget about raidtools and other commands - it's old. It's all done with the mdadm command.

Last edited by Guttorm; 06-08-2007 at 03:36 PM.
 
Old 06-08-2007, 03:48 PM   #3
Jrowat
LQ Newbie
 
Registered: Jun 2007
Posts: 2

Original Poster
Rep: Reputation: 0
That tutorial is one of the ones I've already looked at, and it uses mkraid and the other raidtools commands.

It tells me a whole lot about how to do what I want in theory, but in practice it doesn't tell me *how to use mdadm to actually create the degraded RAID*, and I'm having serious trouble finding how to make that work through the manual.
 
Old 06-08-2007, 03:57 PM   #4
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
I did it some time ago, but I don't think I can recall all the steps. But I'll try:

- with fdisk I changed the partition type to "fd" - linux raid autodectect.
- then mdadm to create a broken mirror
- finally add the second disk with mdadm

All I used was that guide. It was a problem it had all that outdated information, but after a while I learned how to skip it.

It seems to be a lot harder if you want to boot from that disk. Then you do have to read a lot
 
  


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
Convert RAID 1 system into RAID 1+0 jostmart Linux - Server 8 11-06-2011 11:42 PM
Converting form non-RAID to RAID 0 apepost Linux - Software 2 01-11-2006 06:03 PM
Converting an ordinary partition to RAID 1 or RAID 5? krishvij Linux - Newbie 1 03-20-2005 09:39 PM
Problem when converting to RAID!!! STUCK! denniz Linux - General 19 10-04-2004 03:51 PM
moving system from ide software raid to new box with scsi raid ftumsh Linux - General 0 10-28-2003 09:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:15 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