Re: hardware raid array under debian

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: George Toft
Date:  
To: plug-discuss
Subject: Re: hardware raid array under debian
Rob Wultsch wrote:
> Under woody it is not simplistic (not to say it is difficult). Anyone
> want to comment about sarge?
>
> On Tue, 31 Aug 2004 22:57:53 -0700, Eric "Shubes" <> wrote:
>
>>
>> wrote:
>>
>>
>>>I want to create a 500 gig raid array using ide drives under Debian,
>>>does adaptec make the best/affordable or would 3 ware be the way to go?
>>>
>>>
>>>
>>>Jim
>>>
>>>---------------------------------------------------
>>>PLUG-discuss mailing list -
>>>To subscribe, unsubscribe, or to change you mail settings:
>>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>>
>>
>>Jim,
>>Have you considered using linux software raid? It's more affordable
>>hardware wise. A bit of a learning curve, but not too bad. I set up an
>>ide raid 1 (mirror) usin RH9, and it was a breeze (entirely gui if you
>>do it on installation). I've yet to have a problem (knock wood), unlike
>>many stories I've heard of with hw raid. Don't know about doing it with
>>debian though. I imagine that from the cli it's the same.
>>
>>--
>>-Eric 'shubes'
>>"There is no such thing as the People;
>>  it is a collectivist myth.
>>  There are only individual citizens
>>  with individual wills
>>  and individual purposes."
>>-William E. Simon (1927-2000),
>>     Secretary of the Treasury (1974-1977)
>>  "A Time For Truth" (1978), pg. 237

>>
>>****************************************************
>>This message has been scanned using Contraxx
>>Technology Group mail server v2.3 and is virus free.
>>****************************************************
>>
>>
>>---------------------------------------------------
>>PLUG-discuss mailing list -
>>To subscribe, unsubscribe, or to change you mail settings:
>>http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>
>


I thought is was easy under woody (on SPARC no less). Spend an hour in
the man page and in the Something for the PLUG Site Unix post I sent a
week ago and you'll master it in no time.


=======================================================================================
Linux: RAID Add Disk
mdadm /dev/mdx -a /dev/hdxn

=======================================================================================
Linux: RAID Build Set - 1 disk
mdadm -C /dev/mdx -l -n 2 /dev/hdxn missing

-l = RAID Level
-n = Number of devices


=======================================================================================
Linux: RAID Build Set - 2 disks
mdadm -C /dev/mdx -l -n 2 /dev/hdxn /dev/hdyn

-l = RAID Level
-n = Number of devices


=======================================================================================
Linux: RAID Remove Disk
mdadm /dev/mdx -r /dev/hdxn

=======================================================================================
Linux: RAID Status

# cat /proc/mdstat

The output of /proc/mdstat is as follows :

Personalities : [raid1]
read_ahead 1024 sectors
md0 : active raid1 sdb1[1] sda1[0] [2/2] [UU]


* The [UU] part above specifies that both the partitions on the Raid
Devices are up.
* If you get [_U] in place of [UU] then the First HDD is down and raid is
booting linux through the second HDD. Fix your first HDD problem and the
recreate RAID.
* [U_] indicate the Second HDD is down.

Ref: http://puggy.symonds.net/~rajesh/raid.html


--
George Toft, CISSP, MSIS
AGD,LLC
www.agdllc.com
623-203-1760
---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss