Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Replace RAID1 HDD [SOLVED]
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
digitalmasters
n00b
n00b


Joined: 04 Sep 2006
Posts: 30

PostPosted: Thu Sep 21, 2006 3:01 am    Post subject: Replace RAID1 HDD [SOLVED] Reply with quote

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
View user's profile Send private message
quickshiftin
Guru
Guru


Joined: 27 Jul 2004
Posts: 345
Location: Denver, CO

PostPosted: Thu Sep 21, 2006 3:32 am    Post subject: Reply with quote

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
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