Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: dexterrsg on September 26, 2008, 11:45:46 PM

Title: Building new raid
Post by: dexterrsg on September 26, 2008, 11:45:46 PM
I had a raid 1 configured with 2 500GB HDs mirrored.  One of the hds died, and raid did its job and the server never went down.

Now to mirror the remaining working drive with a new HD is it as simple as going into the server console and set up a raid

Under the using cat /prog/mdstat command, I see:

md2 ... [2/1] [_U]

md1 ... [2/1] [_U]

so it seems like the raid is still active and realizes a drive is missing, so what steps do i need to do to re-mirror to a brand new drive?

Thanks.
Title: Re: Building new raid
Post by: byte on September 26, 2008, 11:52:57 PM
so it seems like the raid is still active and realizes a drive is missing, so what steps do i need to do to re-mirror to a brand new drive?

Go to the console screen and option number 5 manage disk redundancy, the screen information will ask you to follow the steps. You may be best to have a look at the manual as it will be in more detail.
Title: Re: Building new raid
Post by: electroman00 on September 27, 2008, 05:51:14 PM
A general word of caution.

The added raid drive will need to be blank, it is suggested to remove all drives except for the drive to be blanked
and boot to a CD i.e. Knoppix.

That will ensure you don't accidentally blank a drive with data on it.

WARNING! This will destroy ALL data on the hard drive, all boot sector info and all data on all partitions.
If the drive has.....

Windoz on it.

Code: [Select]
dd if=/dev/zero of=/dev/hdx bs=512 count=1
Zero's out the boot sector.

Linux or Windoz on it

Code: [Select]
dd if=/dev/zero of=/dev/hdx bs=1M
Zero's out the entire drive.

Code: [Select]
df -h   # Will show the current installed drives.
Substitute the above (dd) commands with the absolute drive to be cleaned i.e. hdb (IDE) or sdb (SCSI).

Once the format is complete, ensure the Data Drive (SME installed) is in the primary master IDE position hda or the first SCSI drive drive #0.

With the Data Drive and Blank Drive installed, boot and recheck your bios to ensure the bios boot drive
is your SME Data Drive.

Boot to SME.... go to the admin console screen and select option # 5 manage disk redundancy.

It may take a minute or so for the admin screen to return after you select "Yes" under option # 5.

You can monitor progress of the raid sync via the console or remote shell...

Code: [Select]
watch -n .1 cat /proc/mdstatCtrl-c will exit the watch.

You can statically peak at the raid status from the command line at any time with....

Code: [Select]
cat /proc/mdstat
It may take several hours to sync depending on the performance of the system.
1-12 hours is not unusual on a slow IDE system, while a fast scsi may take as little as 20min
depending on the size of the drives.

SME will use Raid1 which requires....

Both drives should be of the same size.

2 drives (minimum) or 2 drives + 1 spare drive

hth