My configuration:
I have done this before, but only once. Given this, I wanted to be sure of my setup before I started formatting system hard disks.
I have four SATA hard drives: 2(120) + 2(500) GB.
I want to use my two large SATA drives in a RAID 0 array for 1 TB of straight, concatenated storage space for non-mission-critical data, on a mount point /data
I want to use my two 120 GB drives in a RAID 1 array, onto which will be installed my operating system (Slackware 12), MySQL databases, and web site data (most of it, anyway). Very low traffic but need good availability, on /.
Unless there's a very good reason to partition my RAID 1 array disks into /srv, /local, /etc,
etc, I don't want to bother (but please mention it if there is a good reason).
My protocol:
1. Separate my SATA drives onto the two channels available on my system board (so that both RAID arrays are represented on each channel, saving overhead on the RAID 1 array writes).
2. Reboot to the Slackware install CD.
3. Format my drives accordingly (meaning, one large partition on each disk of type Linux Raid Autodetect, with the addition of a 4 GB Linux Swap partition on both 120 GB drives). The bootable flag will also be set on /dev/sda1 (but not /dev/sdc1, also, right?)
4. Create /etc/raidtab with (bold means I don't know what this is for, or if it should be changed from my
guide):
Code:
raiddev /dev/md0
# System RAID array of 120 GB disks
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
persistent-superblock 1
device /dev/sda1
raid-disk 0
device /dev/sdc1
failed-disk 1
chunk-size 32
#/data array of 500 GB disks
raiddev /dev/md1
raid-level 1
nr-raid-disks 2
nr-spare-disks 0
persistent-superblock 1
device /dev/sdb1
raid-disk 0
device /dev/sdd1
failed-disk 1
chunk-size 32
(N.B. the drives' /dev assignments are staggered because the drives are not on the same channel)
5. Then make the RAID arrays
Code:
mkraid /dev/md0
mkraid /dev/md1
6. Make ReiserFS filesystems
Quote:
mkreiserfs /dev/md0
mkreiserfs /dev/md1
|
7. Install Slackware onto device /dev/md0
8. Choose to mount /dev/md1 as /data at boot time (I think it's an option in Setup).
9. Configure Lilo to mount /dev/md0 and install (in the MBR, superblock, where?)
Anything particularly wrong with this setup? I'm most worried about choosing where to install the lilo configuration (#9).
Thanks!