On 6/13/05, Siju George <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I would like to implement Disk mirroring ( Raid1 ) in Debian Sarge.
I don't know if it is possible during installation in sarge. In redhat
(Fedora to be specific), I have implemented software raid during
installation which is very easy.
> Is it possible to configure it while installation if I have both hard
> disks attached??
By the word attached ; are you meaning mounted? (You have to unmount
it I guess) or do you mean that hard disks are attached physically but
not mounted (can be done).
> Could someone please tell me what is the easiest way ( steps ) to get
> this done???
You can implement mirroring after installation if you have raidtools
installed on your machine. Open up fdisk and see if the partition type
is set to raid auto - 0xfd to be exact.
Now create a /etc/raidtab file and include the following lines:
raiddev /dev/md0
raid-level 1
nr-raid-disks 2
chunk-size 32
persistent-superblock 1
parity-algorithm left-symmetric
device /dev/hda1
raid-disk 0
device /dev/hdb1
raid-disk 1
Usually you get a copy of the above file along with the documentation
of raidtools. So just open it in an editor and modify it to your
liking and then save it in /etc directory.
Now initialize your raid array:
# mkraid /dev/md0
Optionally you can also start raid by the following command:
# raidstart /dev/md0
Next format the raid disk
# mke2fs -j -b 4096 /dev/md0
Lastly mount the newly formated disk :
# mount /dev/md0 /my_raid_disk
That is all there is to it.
Hope this helps
Regards
Ravi
-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r
_______________________________________________
linux-india-help mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-india-help