[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: raid 1 test



hi "suporte"

On Mon, 10 Nov 2003, Suporte Linux Solutions wrote:

> 
> 	Hi all,
> 	I have setup a raid 1 install with Debian Woody.
> 	I got two IDE RAID disks (hda and hdb) and put two root partitions (hda2 and hdb2). The first was for swap.

if you wan to do have raid1 mirroring work right,
use  /dev/hda  and /dev/hdc  ( avoid using the same ide cable for 2
drives )

make sure that /dev/hda2 and /dev/hdc2 is less than 1024 cylinders 
	fdisk -l /dev/hda  ( ending cylinder number )

> 	I boot with /dev/md0 with lilo

just change to boot=/dev/md0 and your system should work better

> 	I want to test my setup. How to proced?

power off the machine, pull out /dev/hda ( disconnect the disk),
	and try to power up

	- if it comes up ... write a 4GB file to /home/someplace/test.4GB.

power down, reconnect /dev/hda ... and watch it resync
	cat /proc/mdstat

-------

reverse it ... disconnect /dev/hdc  ... and try to power up
	- write another 4GB test file

if the system boots off either disk, and resyncs the data from
the other drive... you're in reasonable shape to start more real tests

c ya
alvin

> # /etc/lilo.conf - See: `lilo(8)' and `lilo.conf(5)',
> # ---------------       `install-mbr(8)', `/usr/share/doc/lilo/',
> #                       and `/usr/share/doc/mbr/'.
> 
...
> # Specifies the boot device.  This is where Lilo installs its boot
> # block.  It can be either a partition, or the raw device, in which
> # case it installs in the MBR, and will overwrite the current MBR.
> #
> boot=/dev/hda

change that to:
===============

  boot=/dev/md0
 
> # Specifies the device that should be mounted as root. (`/')
> #
> root=/dev/md0
> 
...



Reply to: