View previous topic :: View next topic |
Author |
Message |
Bono n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Feb 2005 Posts: 24
|
Posted: Sat Dec 16, 2006 2:18 pm Post subject: Migrating to RAID 0 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
truc Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/128604942846f4cd99d01cb.jpg)
Joined: 25 Jul 2005 Posts: 3199
|
Posted: Sat Dec 16, 2006 5:54 pm Post subject: Re: Migrating to RAID 0 |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Sadako Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/2074682074aea79062b33b.jpg)
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Sat Dec 16, 2006 7:53 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Bono n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 18 Feb 2005 Posts: 24
|
Posted: Sun Dec 17, 2006 8:07 pm Post subject: |
|
|
Thanks, I'll read and then try ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|