Slackware64 14.0 Raid1+0 with LVM issues
I am experiencing issues booting my newly installed Slackware64 14.0 distribution on a raid1+0 with LVM. I've read the documentation from the slackware CD regarding LVM and raid setup. I feel like everywhere I look I'm finding contradictory information.
My setup: I am using an AMD 64 processor with 4GB of RAM and (6) 1TB SATA drives.
I am relatively new to slackware after a 15 year hiatus from linux, and as such am new to LVM and raid setups and that is where my questions really lie so please feel free to tell me if I'm doing something stupid or making a mistake. My desire is to have a bootable 3TB Raid1+0 using LVM to use as a network share to the rest of my computers in my home network, specifically the ability to have my /home directory structure and contents the same no matter which PC I am using.
Here is where I start,
Setting up drive partitions:
- create primary partition (sda1) using all but 200MB of available space
** at this point I'm a little confused on what type to set for the partition, my intention is to have a raid1+0 with LVM, so do I use type 8E or DA?
Match partitions from /dev/sda to /dev/sd[bcdef]
sfdisk -d /dev/sda | sfdisk /dev/sdb
- repeat sfdisk to set partitions for additional drives
mdadm --create /dev/md0 --level=raid1 --raid-devices=2 -e 1.0 /dev/sda1 /dev/sdb1
mdadm --create /dev/md1 --level=raid1 --raid-devices=2 -e 1.0 /dev/sdc1 /dev/sdd1
mdadm --create /dev/md2 --level=raid1 --raid-devices=2 -e 1.0 /dev/sde1 /dev/sdf1
mdadm --create /dev/md3 --level=raid0 --raid-devices=3 -e 1.0 /dev/md0 /dev/md1 /dev/md2
** At this point, the output of /proc/mdstat looks great and the mirrored drives are syncing but not fully syncronized, which could be my problem?
vgcreate /dev/md3 VG1
lvcreate -L 30G -n root VG1
lvcreate -L 2000G -n home VG1
lvcreate -L 7G -n var VG1
lvcreate -L 30G -n var VG1
lvcreate -L 8G -n swap VG1
** The output of pvscan, vgscan and lvscan matches what I expect/want, but I am inexperienced with LVM so I might not know any better.
Install Slackware using setup
- setup runs normally until I get to the lilo config which has been kicking my butt. I am unsure what/if additional kernel parameters I need to load. Should I install on the MBR or root? If I install to MBR, where do I go to set the boot flag?
At this point, since I'm at work, I really just want to know if anything listed above appears to be wrong as I won't be able to provide any specific configuration details regarding lilo.conf until I get home from work.
Just install to the mbr, because there is more work to be done after this.
Just continue the install as it should have been a normal 1 disk install.
When the installer is done, and you exit the setup menu, you need to chroot /mnt and do the rest of the setup.
Ok, so after realizing that I can't boot LVM, I decided to make a /boot partition that is neither raid nor LVM. My setup is the same as listed above with the following exceptions:
200M /boot partition that is set as bootable
set /dev/sd[abcdef]2 as type DA
Here is my lilo.conf
|All times are GMT -5. The time now is 02:19 PM.|