<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 10pt; color: #000099'><span></span>Hi all,<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div id="DWT152" style="font-family: Verdana; font-size: 10pt; color: rgb(0, 0, 153);"><blockquote id="DWT151" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;">PS.: Arguably setup-storage isn't perfect, but at least it knows about all those<br>issues. You may want to look at its code or simply *use* it!?<br></blockquote><blockquote id="DWT157" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"></blockquote>I followed Michaels advice and reverted back to setup-storage...</div></blockquote>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.<br>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).<br><br>setup now fails on something new: <br>after "mdadm --examine etc" the setup fails on<br>use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 650.<br>use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 650.<br>use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 654.<br>use of uninitialized value in multiplication (*) at /usr/share/fai/setup-storage//Sizes.pm line 654.<br>use of uninitialized value in concatenation (.) at /usr/share/fai/setup-storage//Sizes.pm line 455.<br>INTERNAL ERROR in setup-storage:<br>convert_unit B<br>Please report....<br>Traceback: task_error task_partition task task_install task task_action task main<br><br>What is wrong in my disk_config file?:<br><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"># raid controller heeft volgende indeling:</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"># logical drive 1 R1 68G (os)</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"># logical drive 2 R1 558G (backup)</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"># logical drive 3 R6 546G (mysql)</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"># logical drive 4 R1 68G (log)</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">disk_config cciss/c0d0 disklabel:msdos fstabkey:uuid</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">primary - 0- - -</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">disk_config cciss/c0d1 disklabel:msdos fstabkey:uuid</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">primary - 0- - -</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">disk_config cciss/c0d2 disklabel:msdos fstabkey:uuid</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">primary - 0- - -</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">disk_config cciss/c0d3 disklabel:msdos fstabkey:uuid</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">primary - 0- - -</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">disk_config lvm</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg vg_system cciss/c0d0p1</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg vg_my_backup cciss/c0d1p1</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg vg_my_data cciss/c0d2p1</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg vg_my_log cciss/c0d3p1</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_system-lv_boot /boot 100 ext3 rw,noatime</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_system-lv_swap swap 2G swap rw </span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_system-lv_root / 2G ext3 rw,noatime,errors=remount-ro createopts="-m10"</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_system-lv_tmp /tmp 5G ext3 rw,noatime,errors=remount-ro createopts="-m10"</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_system-lv_usr /usr 5G ext3 rw,noatime,errors=remount-ro createopts="-m10"</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_system-lv_var /var 7G ext3 rw,noatime,errors=remount-ro createopts="-m10"</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_system-lv_srv /srv 10G xfs rw,noatime,largeio,nobarrier</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><br><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"># DB part</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"></span><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_my_backup-lv_my_backup /var/tmp/mylvmbackup/backup 0- xfs rw,noatime,largeio,nobarrier </span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"></span><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_my_data-lv_my_data /srv/mysql 90% xfs rw,noatime,largeio,nobarrier</span><br style="font-family: courier new,courier,monaco,monospace,sans-serif;"><span style="font-family: courier new,courier,monaco,monospace,sans-serif;"></span><span style="font-family: courier new,courier,monaco,monospace,sans-serif;">vg_my_log-lv_my_log /srv/mysqllog 0- xfs rw,noatime,largeio,nobarrier </span><br><br>Thanks for helping me!<br><br>kind regards,<br>Alex<br></div></body></html>