Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Migrating to RAID 0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Bono
n00b
n00b


Joined: 18 Feb 2005
Posts: 24

PostPosted: Sat Dec 16, 2006 2:18 pm    Post subject: Migrating to RAID 0 Reply with quote

Hello,

I have currently two disks, one of them is unused and I'd like to use it for RAID with the first one, on which I have a running Gentoo (four partitions : windows (unused ;)), / , /home and swap)

What I'd like is to mirror my home (for more security), so with RAID-0 and maybe in a second time put my / on RAID 1 for more speed.

My question is, about the first part : can I set up a RAID 0 without destroying my /home ? :-)

Thanks in advance for all your answers !
Back to top
View user's profile Send private message
truc
Advocate
Advocate


Joined: 25 Jul 2005
Posts: 3199

PostPosted: Sat Dec 16, 2006 5:54 pm    Post subject: Re: Migrating to RAID 0 Reply with quote

Bono wrote:
Hello,

I have currently two disks, one of them is unused and I'd like to use it for RAID with the first one, on which I have a running Gentoo (four partitions : windows (unused ;)), / , /home and swap)

What I'd like is to mirror my home (for more security), so with RAID-0 and maybe in a second time put my / on RAID 1 for more speed.

My question is, about the first part : can I set up a RAID 0 without destroying my /home ? :-)

Thanks in advance for all your answers !


RAID0 is for speed, and RAID1 is for security.

The only way I can think of, to put your /home/ on a RAID0, is to copy it somewhere else, make your raid device, and copy the content on this device
_________________
The End of the Internet!
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Dec 16, 2006 7:53 pm    Post subject: Reply with quote

I presume you're talking about a software raid, with either mdadm or raidtools.

I did something similar a little while back, what you can do is set up a raid-1 array with two devices,
but only specify one (the partition on the unused disk), setting the other one as "missing".

Then you can create the filesystem on the raid device (/dev/md0 most likely) and copy everything
from your /home to the new filesystem (or alternatively you could just use dd to copy the existing filesystem).

After that, change your fstab to use the raid device as /home, reboot, and if everything is working okay
you can add the old /home partition to the array to complete it.

If you know what you're doing, it's as simple as it sounds, but I think you really need to read up on this a lot more first.

Also, this method wont work with a raid-0 (stripped) array, if you are going to changed your / at a later date.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
Bono
n00b
n00b


Joined: 18 Feb 2005
Posts: 24

PostPosted: Sun Dec 17, 2006 8:07 pm    Post subject: Reply with quote

Thanks, I'll read and then try :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum