Diskless InstallationΒΆ
Prepare dependency packages in the pkglist
In order for the Mellanox installation script to execute successfully, certain dependency packages are required to be installed on the compute node. xCAT provides sample package list files to help resolve these dependencies. The samples are located at
/opt/xcat/share/xcat/ib/netboot/<os>/.To use the
/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist, edit your existingpkglistfile for the target osimage and add the following at the bottom:#INCLUDE:/opt/xcat/share/xcat/ib/netboot/rh/ib.rhels7.ppc64le.pkglist#Configure the
mlnxofed_ib_installscript to install the MNLX_OFED driversEdit the
postinstallscript on the osimage to invoke themlnxofed_ib_installinstall script.For example, take
rhels7.2-ppc64le-netboot-compute:Find the path to the
postinstallscript:# lsdef -t osimage -o rhels7.2-ppc64le-netboot-compute -i postinstall Object name: rhels7.2-ppc64le-netboot-compute postinstall=/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.postinstallEdit the
/opt/xcat/share/xcat/netboot/rh/compute.rhels7.ppc64le.postinstalland add the following:/install/postscripts/mlnxofed_ib_install \ -p /install/<path-to>/<MLNX_OFED_LINUX.iso> -i $1 -n genimage
Note: The $1 is a argument that is passed to the the postinstall script at runtime.
[kernel mismatch issue] The Mellanox OFED ISO is built againt a series of specific kernel version. If the version of the linux kernel does not match any of the Mellanox offered pre-built kernel modules, you can pass the
--add-kernel-supportargument to the Mellanox installation script to build the kernel modules based on the version you are using./install/postscripts/mlnxofed_ib_install \ -p /install/<path-to>/<MLNX_OFED_LINUX.iso> -m --add-kernel-support -end- \ -i $1 -n genimage
Generate the diskless image
Use the
genimagecommand to generate the diskless image from the osimage definitiongenimage <osimage>
Use the
packimagecommand to pack the diskless image for deploymentpackimage <osimage>
Provision the node
rinstall <node> osimage=rhels7.2-ppc64le-netboot-compute
Verification
Check the status of
openibdservicesysVinit:
service openibd status
systemd:
systemctl status openibd.service
Verify that the Mellanox IB drivers are located at:
/lib/modules/<kernel_version>/extra/Use the
ibv_devinfocomamnd to obtain information about the InfiniBand adapter.