RAID & LVM Problem
Dubravko Rutalj
dubravkorutalj at gmail.com
Mon Jul 23 12:23:59 CEST 2007
Hi!
I have two hard disks and I want to make 3 software RAID arrays: 1st -
mirror, 2nd - stripe, 3rd mirror.
I want 1st array to be a root partition (/), 2nd array with LVM
contains /tmp and /var/tmp and 3rd array with LVM contains /home,
/var, /usr, /usr/local, /usr/share, /local.
I follow instructions on page
http://faiwiki.informatik.uni-koeln.de/index.php/User:Gervai/Raid_and_LVM_hook
and configuration file in disk_config directory looks like this:
disk_config hda
primary / 1024 rw,errors=remount-ro ; -c -j ext3
primary swap 1024 rw ; swap
logical - 20000
logical - 1-
disk_config hdc
primary - 1024
primary swap 1024 rw ; swap
logical - 20000
logical - 1-
and .var file in class directory looks like this:
MODULESLIST="raidX dm-mod"
SW_RAID_CONFIG="
md1[mirror]=/dev/hda1,/dev/hdc1:/:ext3:rw,errors=remount-ro:boot
md2[stripe]=/dev/hda5,/dev/hdc5:/tmp:ext3:rw:
md3[mirror]=/dev/hda6,/dev/hdc6:/home:ext3:rw:
"
LVM_VG_CONFIG="
vol0[]=/dev/md2
vol1[]=/dev/md3
"
LVM_LV_CONFIG="
vol0/tmp[-n tmp ]=10G:/tmp:ext2:rw,noatime
vol0/var-tmp[-n var-tmp]=10G:/var/tmp:ext3:rw
vol1/home[-n home ]=6G:/home:ext3:rw
vol1/var[-n var ]=2G:/var:ext3:rw
vol1/usr[-n usr ]=6G:/usr:ext3:rw
vol1/usr-local[-n usr-local]=6G:/usr/local:ext3:rw
vol1/share[-n share ]=6G:/usr/share:ext3:rw
vol1/local[-n local ]=6G:/local:ext3:rw
"
When FAI finished the first problem is that my custom kernel deb
package is not installed. Here is installation script:
#! /bin/bash
error=0 ; trap "error=$((error|1))" ERR
fcopy -t $target/tmp packages/kernel-image.deb
dpkg -i --root=$target $target/tmp/packages/kernel-image.deb
exit $error
The second and larger problem is the output of df command after reboot is:
/dev/hda1 1035660 323212 659840 33% /
tmpfs 518120 0 518120 0% /lib/init/rw
udev 10240 76 10164 1% /dev
tmpfs 518120 4 518116 1% /dev/shm
Here is error.log:
dmesg.log:BIOS failed to enable PCI standards compliance, fixing this error.
fai.log:WARNING: The following packages cannot be authenticated!
fai.log:Authentication warning overridden.
fai.log:sed: can't read /etc/udev/rules.d/z25_persistent-net.rules: No
such file or directory
fai.log:GRUB/10-setup FAILED with exit code 1.
shell.log:grep:
/boot/config*: No such file or directory
shell.log: ### Warning, grub-install is used to change your MBR. ###
shell.log:GRUB/10-setup FAILED with exit code 1.
software.log:sed: can't read /etc/udev/rules.d/z25_persistent-
net.rules: No such file or directory
status.log:GRUB/10-setup FAILED with exit code 1.
More information about the linux-fai
mailing list