View previous topic :: View next topic |
Author |
Message |
digitalmasters n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/1610640468451df23e88af5.png)
Joined: 04 Sep 2006 Posts: 30
|
Posted: Thu Sep 21, 2006 3:01 am Post subject: Replace RAID1 HDD [SOLVED] |
|
|
1) SATAII HDD installed in case at /dev/sda
2) SATAII HDD installed in case at /dev/sdb
They are both partitions exactly the same /boot swap /
I used the linux kernel to set them up in a RAID1 on the /boot and / partions.
The root partition is set up with LVM.
They are both up, fully functional, raid1 working.
I finally have the base gentoo system setup and I want to take the sdb drive out of the computer and store it as a backup.
Then install another SATAII HDD and set up the RAID1 again. so that I have drive failure protection.
How do I do it?
Do I need to break the raid, take the drive out, put another in, format/patition it, then re-establish the raid1?
How do I do that?
Last edited by digitalmasters on Sat Sep 30, 2006 4:15 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
quickshiftin Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/96434240945135ce429444.jpg)
Joined: 27 Jul 2004 Posts: 345 Location: Denver, CO
|
Posted: Thu Sep 21, 2006 3:32 am Post subject: |
|
|
how many sata drives can your computer run simulaneously?
if your box can run 3 drives, why not just replicate one of the existing drives onto your spare, and then just store that instead of replacing /dev/sdb.
as for the replication, you can copy the partition maps from an existing drive to the new drive using sfdisk
this from the gentoo-wiki
Code: | sfdisk -d /dev/sdb | sfdisk /dev/sdc |
then setup the filesystems to reflect your existing hds and copy the files on each partition from an existing drive to the backup drive using cp, skipping swap on copy of course
here are some resources that might help as well
mdadm man page
Recovery from a multiple disk failure
~quickshiftin` |
|
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
|
|