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

Re: raid



Huston a écrit :


so set them all to "fd" (raid auto detect)
type "mdadm -Cv /dev/md0 -n3 -l5 /dev/sda1 /dev/sdb1 /dev/sdc1"
then type "type "mdadm -Cv /dev/md0 -n3 -l5 /dev/md1 /dev/md2 /dev/md3

that should sync my hard drives and start the process?

would the "/boot" partition be the same as the "whole disk" partition?

I am still very new to debian and Linux in general and I am hoping to learn a great deal.

Do the following

Remove your ugly raidtab

Create a small partition at the beginning of each disk.(/boot). Let's say 30~40MB (sda1, sdb1, sdc1) Create a big partition (/) it will be your root file system (on each disk) (sda2, sdb2, sdc2)
and then a swap partition(on each disk) (sda3, sdb3, sdc3)

set the partitions the fd type (auto detect)

type:
mdadm -Cv /dev/md0 -n3 -l5 /dev/sda1 /dev/sdb1 /dev/sdc1
mdadm -Cv /dev/md1 -n3 -l5 /dev/sda2 /dev/sdb2 /dev/sdc2
mdadm -Cv /dev/md2 -n3 -l5 /dev/sda3 /dev/sdb3 /dev/sdc3

mkfs.ext3 /dev/md0
mkfs.reiserfs /dev/md1
mkswap /dev/md2

mkdir /newdisk
mount /dev/md1 /newdisk
mkdir /newdisk/boot
mount /dev/md0 /newdisk/boot

cp -avux / /newdisk (dont forget the space between / and /newdisk)
cp -avux /boot /newdisk/boot (same space)

edit your /newdisk/etc/fstab (replace sdX with mdX)
edit your /newdisk/etc/lilo.conf (boot=/dev/md0 root=/dev/md1 raid-extra-boot=mbr)

lilo -r /newdisk

pull the old disks and you should be done

--
Toute théorie scientifique contient un coeur que l'on ne peut
remettre en question sans renoncer à la théorie elle-même.
	-+- Thomas Kuhn -+-



Reply to: