"R" == Rolandas rolnas@gmail.com writes:
R> So we need to use /etc/qlustar/common/rc.boot and R> /etc/qlustar/common/image-files to configure nodes ? But I have R> already problem with rc.boot scripts, they run too late (for R> e.g. ZFS pool import for lustre I have to run hostid > R> /etc/hostid) or copy-files is run in parallel to lustre startup.
You can apply the patch below to the generated image (use 'qlustar-image-edit -s <image name>' and type 'exit' when done). This will make spl use a hostid that doesn't change if the hardware of the machine doesn't change. The patch will be part of future releases.
----------------------------------------------------------------------------- diff --git a/sbin/init.qlustar b/sbin/init.qlustar --- a/core/image/common/sbin/init.qlustar +++ b/core/image/common/sbin/init.qlustar @@ -91,8 +91,13 @@ echo FIXME
echo -e "### Starting Qlustar pre-systemd boot script /sbin/init.qlustar ###"
-# generate the systemd machine id here +# generate the systemd machine id here ... systemd-machine-id-setup +# ... and also the hostid ... +hostid > /etc/hostid +# ... and generate a unique spl_host_id from it +echo "options spl spl_hostid=$(( 16#$(cat /etc/hostid) ))" >> \ + /etc/modprobe.d/spl.conf -----------------------------------------------------------------------------
R> But qlustar defines only one MAC address per host, but in the R> case if first link is down, PXE booting will run on second link R> with different MAC address.
Adapter redundancy upon boot is unfortunately not supported.