How to do a Raid-0 Installation with one boot :-)
Hi, I read several How-To and everybody told you have to install at first linux and then you can create a raid-1.
But I want a raid-0 without installing linux first on a single disk. And YES I know a Raid-0 with 3 disks is not the best choice, but I have a good data backup system.
My system:
3 * Sata-150 Harddisks 80GB
Asus A8N-Sli Motherboard with nforce4 Chipset
Ok, here is my How-To:
Warning! You will lost ALL YOUR DATA on your Harddrive !!!
1. Deactivate nvidia Raid in Bios
2. Boot with Slackware 11 DVD
3. Start fdisk (not cfdisk)
Code:
-fdisk /dev/sda
-o (New Dos Partition Table)
-w
Do the same with /dev/sdb and /dev/sdc
4. Start cfdisk
Create on each Harddisk exact the same partitions
Code:
PartNr. Size Flag Type (later)Mount (later)
1 2000 Boot Ext2 /boot
2 2000 Swap
3 14000 Linuxraidautodetect reiserfs /
4 62026.84 Linuxraidautodetect reiserfs /home
5. Create a file called /etc/raidtab with the following entries:
Code:
raiddev /dev/md0
raid-level 0
nr-raid-disks 3
chunk-size 4
persistent-superblock 1
device /dev/sda3
raid-disk 0
device /dev/sdb3
raid-disk 1
device /dev/sdc3
raid-disk 2
raiddev /dev/md1
raid-level 0
nr-raid-disks 3
chunk-size 4
persistent-superblock 1
device /dev/sda4
raid-disk 0
device /dev/sdb4
raid-disk 1
device /dev/sdc4
raid-disk 2
6. Execute these 3 commands:
Code:
-mkraid /dev/md0
-mkraid /dev/md1
-raidstart --all
7. Finished! Start the Setup :-)
8. Maybe you should save the /etc/raidtab on floppy, so you don't have to enter it by hand again if something goes wrong. Because I'm not really a crack. I installed Linux 25 times until I got this way.
I'm a try and error guy....
9. Lilo installation:
Use the expert mode! Maybe you have to edit it by hand /mnt/etc/lilo.conf and install it with lilo -r /mnt
This Lilo configuration is not the original I'm using at setup, but it's nearly the same:
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/sda
append="hda=ide-scsi hdc=ide-scsi" #Need for vmware player
#compact # faster, but won't work on all systems.
prompt
timeout = 30
# VESA framebuffer console @ 1024x768x64k
vga = 791
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
initrd = /boot/initrd.gz #Added after kernel upgrade
root = /dev/md0
label = Linux
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
10. Here is the fstab, notice the pri=1 on the swap drives.
Code:
/dev/sda2 swap swap defaults,pri=1 0 0
/dev/sdb2 swap swap defaults,pri=1 0 0
/dev/sdc2 swap swap defaults,pri=1 0 0
/dev/md0 / reiserfs defaults 1 1
/dev/sda1 /boot ext2 defaults 1 2
/dev/md1 /home reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,user,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,user 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0