Re: FAI build using a small disk image with LACP support

2020-03-02 Diskussionsfäden Andrew Ruthven
On Fri, 2020-02-28 at 09:24 +0100, Thomas Lange wrote:
> > > > > > On Fri, 28 Feb 2020 16:21:38 +1300, Andrew Ruthven <
> > > > > > and...@etc.gen.nz> said:
> 
> > All the servers support Redfish, so I can script uploading a
> disk image
> > to be booted from.
> 
> > What I'm thinking is prepare a FAI boot image based on an
> nfsroot, with
> > minimal configuration to bring up a degraded LACP bond.
> 
> > Has anyone already done this?
> No. But
> using fai-cd you can create different flavours of a boot CD.
> A boot CD with just the kernel and the initrd, or a CD including
> additionally the nfsroot.
> 
> In your case a boot only CD (kernel+initrd) should be fine. Have a
> look at the man page dracut.cmdline(7) (which we are using to build
> the initrd). This includes already options for bonding:
[snip]

Ah ha!

That sounds like it would be ideal, I'll give it a shot and report
back.

Cheers,
Andrew

-- 
Andrew Ruthven, Wellington, New Zealand
and...@etc.gen.nz| linux.conf.au 2020, Gold Coast, AU
https://catalystcloud.nz |https://lca2020.linux.org.au



Re: FAI build using a small disk image with LACP support

2020-02-28 Diskussionsfäden Thomas Lange
> On Fri, 28 Feb 2020 16:21:38 +1300, Andrew Ruthven  
> said:

> All the servers support Redfish, so I can script uploading a disk image
> to be booted from.

> What I'm thinking is prepare a FAI boot image based on an nfsroot, with
> minimal configuration to bring up a degraded LACP bond.

> Has anyone already done this?
No. But
using fai-cd you can create different flavours of a boot CD.
A boot CD with just the kernel and the initrd, or a CD including
additionally the nfsroot.

In your case a boot only CD (kernel+initrd) should be fine. Have a
look at the man page dracut.cmdline(7) (which we are using to build
the initrd). This includes already options for bonding:

 bond=[::[:[:]]]
   Setup bonding device  on top of .  
is a comma-separated list of physical (ethernet) interfaces.  is a
   comma-separated list on bonding options (modinfo bonding for 
details) in format compatible with initscripts. If  includes 
multi-valued
   arp_ip_target option, then its values should be separated by 
semicolon. if the mtu is specified, it will be set on the bond master. Bond 
without
   parameters assumes bond=bond0:eth0,eth1:mode=balance-rr

Also read man fai-cd(8).
-- 
regards Thomas