Prev Previous Post   Next Post Next
  #1  
Old 5th December 2007, 18:56
WaveQam WaveQam is offline
Junior Member
 
Join Date: Oct 2006
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Question Grub and Software RAID1

Good day all,

Need a bit of help here. I have an active virtual mail server setup using software raid1 (ubuntu 6.06). I want to replace one of the hard drives so I can use it to build a duplicate system but I am worried about GRUB not working. When I initially set up the system I did not set up a separate /boot partition.

my mdstat is here:
root@vmail:~# cat /proc/mdstat
Personalities : [raid1]
md3 : active raid1 sdb4[1] sda4[0]
30611776 blocks [2/2] [UU]

md2 : active raid1 sdb3[1] sda3[0]
29294400 blocks [2/2] [UU]

md1 : active raid1 sdb2[1] sda2[0]
2931776 blocks [2/2] [UU]

md0 : active raid1 sdb1[1] sda1[0]
9767424 blocks [2/2] [UU]

unused devices: <none>

my Partitions are as follows:

root@vmail:~# sfdisk --no-reread /dev/sda

Disk /dev/sda: 9039 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sda1 * 0+ 1215 1216- 9767488+ fd Linux raid autodetect
/dev/sda2 1216 1580 365 2931862+ fd Linux raid autodetect
/dev/sda3 1581 5227 3647 29294527+ fd Linux raid autodetect
/dev/sda4 5228 9038 3811 30611857+ fd Linux raid autodetect


root@vmail:~# sfdisk --no-reread /dev/sdb

Disk /dev/sdb: 9039 cylinders, 255 heads, 63 sectors/track
Old situation:
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/sdb1 * 0+ 1215 1216- 9767488+ fd Linux raid autodetect
/dev/sdb2 1216 1580 365 2931862+ fd Linux raid autodetect
/dev/sdb3 1581 5227 3647 29294527+ fd Linux raid autodetect
/dev/sdb4 5228 9038 3811 30611857+ fd Linux raid autodetect


md0 = sda1+sdb1 and is 10 GB mounted at /
md1 = sda2+sdb2 and is 3GB set up as swap
When I first set this up I did not know I did not need to mirror swap -and not sure how to remove md1
md2 = sda3+sdb3 and is 30GB mounted at /home
md3 = sda4+sdb4 and is 31.15 GB mounted at /var

The hardrive I will put in to replace sdb is 160 GB instead of 80 GB.

Thanx for any advice

WaveQam
Reply With Quote
Sponsored Links
 

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raid1 advice needed. ubutux Installation/Configuration 6 17th November 2007 03:54
Software RAID 1, if one drive fails I can't boot just from the other! oskare100 Server Operation 1 23rd September 2007 09:30
Problem with install Debian Etch on a Software Raid 1 lano Installation/Configuration 2 25th July 2007 10:07
SATA Software RAID 1 on Linux mphayesuk Installation/Configuration 2 21st February 2006 12:31


All times are GMT +2. The time now is 11:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.