Commit 215beea9 authored by Thomas Goirand's avatar Thomas Goirand

Do not XFS format drives in the RAID.

parent 34aeb819
......@@ -899,8 +899,23 @@ function slave_install_server_os_command($con, $conf, $machine_id){
$cmd .= " --add-serial-getty ".$machine["serial_console_dev"];
}
$cmd .= " --reboot-after-install";
if($role == "swiftstore" || $role == "volume"){
$q = "SELECT * FROM blockdevices WHERE machine_id='$machine_id' AND name NOT LIKE '%a' ORDER BY name";
if($role == "swiftstore"){
if($machine["install_on_raid"] == "no"){
$q = "SELECT * FROM blockdevices WHERE machine_id='$machine_id' AND name NOT LIKE '%da' ORDER BY name";
}else{
switch($machine["raid_type"]){
case "0":
case "1":
$q = "SELECT * FROM blockdevices WHERE machine_id='$machine_id' AND name NOT LIKE '".$machine["raid_dev0"]."' AND name NOT LIKE '".$machine["raid_dev1"]."' ORDER BY name";
break;
case "10":
$q = "SELECT * FROM blockdevices WHERE machine_id='$machine_id' AND name NOT LIKE '".$machine["raid_dev0"]."' AND name NOT LIKE '".$machine["raid_dev1"]."' AND name NOT LIKE '".$machine["raid_dev2"]."' AND name NOT LIKE '".$machine["raid_dev3"]."' ORDER BY name";
default:
echo "Not implemented yet...";
die();
break;
}
}
$r = mysqli_query($con, $q);
$n = mysqli_num_rows($r);
if($n < 1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment