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

Re: Software RAID using Sarge Installer



John Fleming wrote:
> Would someone help me, preferably off-list if the question's too simple,
> know exactly what choices to make using the new Sarge installer and RAID 1
> for mirroring?  During the partitioning, there is a chance to set up RAID 1,
> but I don't fully understand exactly what partitions are required.  I just
> want a simple scheme with a root partition and a swap partition, plus
> whatever else is necessary for RAID 1.
> 
> I have 2 identical HDDs.  I know you need at least one (2?) partitions setup
> specificlaly for RAID.  I could use some newbie help with this, and comments
> like RTFM or RTFA won't help.  I'm begging for some hand-holding here!  It
> seems that you need to setup / and swap, and -then- RAID partition(s)...?  I
> can't seem to get it right.

The last time i tried, the installer didn't support installing to RAID /
or /boot, and this was a topic of some discussion on this list, since
some people think that the new installer is perfect and to think that
other people want it to support more features is just shocking! :-)

I used the HOWTO at http://alioth.debian.org/projects/rootraiddoc/ to
convert my system to RAID 1 after the install, and it worked well.  I
chose the 2nd path, which was GRUB & initrd (lilo didn't work for me for
some reason).

Short summary:
	hde (200 Gb)
		hde1	1 Gb
		hde5	4 Gb
		hde6	rest of disk (195 Gb)
	hdg exactly as hde
	All partitions are type 0xFD (Linux RAID autodetect)
	md0 = hde1 + hdg1 (/boot, ext3)
	md1 = hde5 + hdg5 (swap)
	md2 = hde6 + hdg6 (/, reiserfs)

My configuration looks as follows - if you can't work out the following
outputs, let me know and i'll explain further.


enoch:/root # df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/md2             190468740  54604380 135864360  29% /
tmpfs                   258716         0    258716   0% /dev/shm
/dev/hda1             76920416  68312432   4700576  94% /spare
/dev/md0                964408     31776    883640   4% /boot


enoch:/root # swapon -s
Filename                                Type            Size    Used
Priority
/dev/md1                                partition       3903672 1008    -1


enoch:/root # cat /proc/mdstat
Personalities : [raid1]
md0 : active raid1 hde1[0] hdg1[1]
      979840 blocks [2/2] [UU]

md1 : active raid1 hde5[0] hdg5[1]
      3903680 blocks [2/2] [UU]

md2 : active raid1 hde6[0] hdg6[1]
      190474560 blocks [2/2] [UU]

unused devices: <none>


enoch:/root # fdisk -l /dev/hde

Disk /dev/hde: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hde1   *           1         122      979933+  fd  Linux raid
autodetect
/dev/hde2             123       24321   194378467+   5  Extended
/dev/hde5             123         608     3903763+  fd  Linux raid
autodetect
/dev/hde6             609       24321   190474641   fd  Linux raid
autodetect


enoch:/root # fdisk -l /dev/hdg

Disk /dev/hdg: 200.0 GB, 200049647616 bytes
255 heads, 63 sectors/track, 24321 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdg1   *           1         122      979933+  fd  Linux raid
autodetect
/dev/hdg2             123       24321   194378467+   5  Extended
/dev/hdg5             123         608     3903763+  fd  Linux raid
autodetect
/dev/hdg6             609       24321   190474641   fd  Linux raid
autodetect


-- 
Paul
<http://paulgear.webhop.net>
--
Did you know?  If you receive a virus warning from a friend and not
through a virus software vendor, it's likely to be a hoax.  See
<http://paulgear.webhop.net/virus_hoaxes.html> for more info.



Reply to: