not booting from disk

Alexander Swen alex at swen.nu
Thu Apr 14 18:03:53 CEST 2011


Hi all, 

> > PS.: Arguably setup-storage isn't perfect, but at least it knows
> > about all those
> 
> > issues. You may want to look at its code or simply *use* it!?
> 

> I followed Michaels advice and reverted back to setup-storage...
I let class/10-base-classes do the "find out how what server we have" trick by checking how many disk boxes are connected to the raid controller and based on that result echo AP or DB server as a class. 
that way hooks/partition.DB-server is called which simply creates arrays on the raid controller and then disk_config/DB-server is used as config for setup-storage. (I'll paste that file below). 

setup now fails on something new: 
after "mdadm --examine etc" the setup fails on 
use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 650. 
use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 650. 
use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 654. 
use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 654. 
use of uninitialized value in concatenation (.) at /usr/share/fai/setup-storage//Sizes.pm line 455. 
INTERNAL ERROR in setup-storage: 
convert_unit B 
Please report.... 
Traceback: task_error task_partition task task_install task task_action task main 

What is wrong in my disk_config file?: 
# raid controller heeft volgende indeling: 
# logical drive 1 R1 68G (os) 
# logical drive 2 R1 558G (backup) 
# logical drive 3 R6 546G (mysql) 
# logical drive 4 R1 68G (log) 

disk_config cciss/c0d0 disklabel:msdos fstabkey:uuid 
primary - 0- - - 
disk_config cciss/c0d1 disklabel:msdos fstabkey:uuid 
primary - 0- - - 
disk_config cciss/c0d2 disklabel:msdos fstabkey:uuid 
primary - 0- - - 
disk_config cciss/c0d3 disklabel:msdos fstabkey:uuid 
primary - 0- - - 

disk_config lvm 
vg vg_system cciss/c0d0p1 
vg vg_my_backup cciss/c0d1p1 
vg vg_my_data cciss/c0d2p1 
vg vg_my_log cciss/c0d3p1 

vg_system-lv_boot /boot 100 ext3 rw,noatime 
vg_system-lv_swap swap 2G swap rw 
vg_system-lv_root / 2G ext3 rw,noatime,errors=remount-ro createopts="-m10" 
vg_system-lv_tmp /tmp 5G ext3 rw,noatime,errors=remount-ro createopts="-m10" 
vg_system-lv_usr /usr 5G ext3 rw,noatime,errors=remount-ro createopts="-m10" 
vg_system-lv_var /var 7G ext3 rw,noatime,errors=remount-ro createopts="-m10" 
vg_system-lv_srv /srv 10G xfs rw,noatime,largeio,nobarrier 

# DB part 
vg_my_backup-lv_my_backup /var/tmp/mylvmbackup/backup 0- xfs rw,noatime,largeio,nobarrier 
vg_my_data-lv_my_data /srv/mysql 90% xfs rw,noatime,largeio,nobarrier 
vg_my_log-lv_my_log /srv/mysqllog 0- xfs rw,noatime,largeio,nobarrier 

Thanks for helping me! 

kind regards, 
Alex 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20110414/0320471c/attachment.html>


More information about the linux-fai mailing list