9
–
gPXE
Netbooting Over IB
IB0054606-02 A
9-13
The following is an example of a
uniboot.php
file:
<?
header ( 'Content-type: text/plain' );
function strleft ( $s1, $s2 ) {
return substr ( $s1, 0, strpos ( $s1, $s2 ) );
}
function baseURL() {
$s = empty ( $_SERVER["HTTPS"] ) ? '' :
( $_SERVER["HTTPS"] == "on" ) ? "s" : "";
$protocol = strleft ( strtolower (
$_SERVER["SERVER_PROTOCOL"] ), "/" ).$s;
$port = ( $_SERVER["SERVER_PORT"] == "80" ) ? "" :
( ":".$_SERVER["SERVER_PORT"] );
return $protocol."://".$_SERVER['SERVER_NAME'].$port;
}
$baseurl = baseURL();
$selfurl = $baseurl.$_SERVER['REQUEST_URI'];
$dirurl = $baseurl.( dirname ( $_SERVER['SCRIPT_NAME'] ) );
$kver = "2.6.18-164.11.1.el5";
echo <<< EOF
#!gpxe
initrd /images/initrd.img
kernel /kernels/vmlinuz-${kver} bootfile=${selfurl}
ip=\${net0/ip}::\${net0/gateway}:\${net0/netmask}:\${net0/hos
tname}:ib0:off vga=788 console=tty0 console=ttyS0,115200
debug root=/dev/hdb1
boot
EOF;
?>
The generated gPXE script tells gPXE to load
/boot/vmlinuz-2.6.18-128.el5
and
/vault/images/initrd.img
files
from the httpd server node and run them.
1.
Copy
vmlinuz-2.6.18-128.el5
to
/boot
on the boot server.
Содержание OFED+ Host
Страница 1: ...IB0054606 02 A OFED Host Software Release 1 5 4 User Guide...
Страница 14: ...xiv IB0054606 02 A OFED Host Software Release 1 5 4 User Guide...
Страница 22: ...1 Introduction Interoperability 1 4 IB0054606 02 A...
Страница 72: ...3 InfiniBand Cluster Setup and Administration Checking Cluster and Software Status 3 48 IB0054606 02 A...
Страница 96: ...4 Running MPI on QLogic Adapters Debugging MPI Programs 4 24 IB0054606 02 A...
Страница 140: ...6 SHMEM Description and Configuration SHMEM Benchmark Programs 6 32 IB0054606 02 A...
Страница 148: ...8 Dispersive Routing 8 4 IB0054606 02 A...
Страница 164: ...9 gPXE HTTP Boot Setup 9 16 IB0054606 02 A...
Страница 176: ...A Benchmark Programs Benchmark 3 Messaging Rate Microbenchmarks A 12 IB0054606 02 A...
Страница 202: ...B SRP Configuration OFED SRP Configuration B 26 IB0054606 02 A Notes...
Страница 206: ...C Integration with a Batch Queuing System Clean up PSM Shared Memory Files C 4 IB0054606 02 A...
Страница 238: ...E ULP Troubleshooting Troubleshooting SRP Issues E 20 IB0054606 02 A...
Страница 242: ...F Write Combining Verify Write Combining is Working F 4 IB0054606 02 A Notes...
Страница 280: ...G Commands and Files Summary of Configuration Files G 38 IB0054606 02 A...
Страница 283: ......