disks_geom_cmd("vinum", "start", $object, true); break; case "rebuild": disks_geom_cmd("vinum", "rebuildparity", $object, true); break; case "list": disks_geom_cmd("vinum", "list", $object, true); break; case "remove": disks_geom_cmd("vinum", "rm", "-r {$object}", true); break; case "forceup": disks_geom_cmd("vinum", "setstate", "-f up {$object}", true); break; case "saveconfig": disks_geom_cmd("vinum", "saveconfig", "", true); break; } echo '</pre>'; } ?> <div id="remarks"> <?php html_remark("warning", gettext("Warning"), gettext("1. Use these specials actions for debugging only!<br />2. There is no need of using this menu for starting a RAID volume (start automaticaly).")); ?> </div> <?php include "formend.inc"; ?> </form> </td>
disks_geom_cmd("raid5", "clear -v", $disk, true); break; case "list": disks_geom_cmd("raid5", "list", $raid, true); break; case "status": disks_geom_cmd("raid5", "status", $raid, true); break; case "stop": disks_geom_cmd("raid5", "stop -v", $raid, true); break; case "destroy": disks_geom_cmd("raid5", "destroy -v", $raid, true); break; case "configure": disks_geom_cmd("raid5", "configure -v", $raid, true); break; } echo '</pre>'; } ?> <div id="remarks"> <?php html_remark("warning", gettext("Warning"), gettext("1. Use these specials actions for debugging only!<br />2. There is no need of using this menu for starting a RAID volume (start automaticaly).")); ?> </div> <?php include "formend.inc"; ?> </form> </td>
//ob_end_flush(); switch ($action) { case "list": disks_geom_cmd("stripe", "list", $raid, true); break; case "status": disks_geom_cmd("stripe", "status", $raid, true); break; case "clear": disks_geom_cmd("stripe", "clear -v", $disk, true); break; case "stop": disks_geom_cmd("stripe", "stop -v", $raid, true); break; case "dump": disks_geom_cmd("stripe", "dump", $disk, true); break; } echo '</pre>'; } ?> <div id="remarks"> <?php html_remark("warning", gettext("Warning"), gettext("1. Use these specials actions for debugging only!<br />2. There is no need of using this menu for starting a RAID volume (start automaticaly).")); ?> </div> <?php include "formend.inc"; ?> </form> </td>
disks_geom_cmd("mirror", "activate -v", "{$raid} {$disk}", true); break; case "deactivate": disks_geom_cmd("mirror", "deactivate -v", "{$raid} {$disk}", true); break; case "forget": disks_geom_cmd("mirror", "forget -v", $raid, true); break; case "insert": disks_geom_cmd("mirror", "insert -v", "{$raid} {$disk}", true); break; case "clear": disks_geom_cmd("mirror", "clear -v", $disk, true); break; case "stop": disks_geom_cmd("mirror", "stop -v", $raid, true); break; } echo '</pre>'; } ?> <div id="remarks"> <?php html_remark("warning", gettext("Warning"), gettext("1. Use these specials actions for debugging only!<br />2. There is no need of using this menu for starting a RAID volume (start automaticaly).")); ?> </div> <?php include "formend.inc"; ?> </form> </td>
ob_end_flush(); switch ($action) { case "list": disks_geom_cmd("concat", "list", $raid, true); break; case "status": disks_geom_cmd("concat", "status", $raid, true); break; case "clear": disks_geom_cmd("concat", "clear -v", $disk, true); break; case "stop": disks_geom_cmd("concat", "stop -v", $raid, true); break; case "dump": disks_geom_cmd("concat", "dump", $disk, true); break; } echo '</pre>'; } ?> <div id="remarks"> <?php html_remark("warning", gettext("Warning"), gettext("1. Use these specials actions for debugging only!<br />2. There is no need of using this menu for starting a RAID volume (start automaticaly).")); ?> </div> <?php include "formend.inc"; ?> </form> </td>
<td class="tabcont"> <table width="100%" border="0"> <?php foreach (explode(" ", "concat mirror raid5 stripe vinum") as $class) { ?> <?php html_titleline("GEOM {$class}"); ?> <tr> <td> <pre><?php if (0 >= count(get_conf_disks_filtered_ex("class", "g{$class}"))) { echo gettext("n/a"); } else { unset($rawdata); disks_geom_cmd($class, "list", "", true, false, $rawdata); echo htmlspecialchars(implode("\n", $rawdata)); } ?> </pre> </td> </tr> <?php } ?> </table> </td> </tr> </table> <?php include "fend.inc";