-
Remove external/OSA and HiperSockets (HS) devices from the ignore list
$ cio_ignore -r 0.0.8000-0.0.8002 $ cio_ignore -r 0.0.b000-0.0.b002
-
Enable Layer2 for HS device and activate both devices
$ chzdev -e 0.0.8000 layer2=1 $ chzdev -e 0.0.b000 vnicc/flooding=1 vnicc/mcast_flooding=1
-
Configure the network
-
via YaST.
-
For the hsi0 interface:
-
yast
>YaST Control Center
>System
>Network Settings
-
Tab
Overview
> SelectHipersocket (0.0.8000)
>Edit
-
Tab
Address
> Select(x) No Link and IP Setup (Bond Port)
-
Press
Next
-
-
For the eth1 interface:
-
yast
>YaST Control Center
>System
>Network Settings
-
Tab
Overview
> SelectOSA Express Network card (0.0.b000)
>Edit
-
Tab
Address
> Select(x) No Link and IP Setup (Bond Port)
-
Press
Next
-
Press
OK
-
Press
Quit
-
-
For the upcoming/future hsci8000 interface:
-
yast
>YaST Control Center
>System
>Network Settings
-
Tab
Overview
>Add
> SelectEthernet
> Next -
Tab
Address
> SelectStatically Assigned IP Address
> Insert <ip-address> >10.30.83.24
> Insert <subnet-mask> >/16
Switch Tab from here, YaST complains about an empty hostname that can be left empty. -
Tab
General
> InsertConfiguration name
>hsci8000
-
Press
Next
-
Press
OK
-
-
Check the new network config in
/etc/sysconfig/network
.$ ls -1 /etc/sysconfig/network/ifcfg* /etc/sysconfig/network/ifcfg-encbd00 /etc/sysconfig/network/ifcfg-eth1 /etc/sysconfig/network/ifcfg-hsci8000 /etc/sysconfig/network/ifcfg-hsi0 /etc/sysconfig/network/ifcfg-lo /etc/sysconfig/network/ifcfg.template
-
-
via
ifcfg-*
files in/etc/sysconfig/network
.Note
ifcfg
-files are more convenient and faster than via YaST./etc/sysconfig/network/ifcfg-eth1:
BOOTPROTO='none' STARTMODE='auto' # Example POST_UP_SCRIPT: # POST_UP_SCRIPT="wicked:post-up/100-hsci8000-mm-setup_sles15.4+.sh"
/etc/sysconfig/network/ifcfg-hsi0:
BOOTPROTO='none' STARTMODE='auto' # Example POST_UP_SCRIPT: # POST_UP_SCRIPT="wicked:post-up/100-hsci8000-mm-setup_sles15.4+.sh"
/etc/sysconfig/network/ifcfg-hsci8000:
IPADDR='10.30.83.24/16' BOOTPROTO='static' STARTMODE='auto'
-
Bring up all interfaces (except
hsci8000
).$ wicked ifup all
-
Check the new network config in
/etc/sysconfig/network
.$ ls -1 /etc/sysconfig/network/ifcfg* /etc/sysconfig/network/ifcfg-encbd00 /etc/sysconfig/network/ifcfg-eth1 /etc/sysconfig/network/ifcfg-hsci8000 /etc/sysconfig/network/ifcfg-hsi0 /etc/sysconfig/network/ifcfg-lo /etc/sysconfig/network/ifcfg.template
-
-
-
Create the HSCI interface
Add HSCI for
hsi0
(HS dev) andeth1
(OSA dev)$ which hsci /sbin/hsci $ hsci -v hsci utility: version 2.19.0-150400.1.7 Copyright IBM Corp. 2020 $ hsci add hsi0 eth1 Verifying net dev eth1 and HiperSockets dev hsi0 Adding hsci8000 with a HiperSockets dev hsi0 and an external dev eth1 Successfully added HSCI interface hsci8000 $ hsci show HSCI PNET_ID HiperSockets External ------------------------------------------------------------ hsci8000 NET1 hsi0 eth1
-
Enable the
hsci8000
,hsi0
andeth1
interfacesNote
The IP configuration is not assigned tohsci8000
untilwicked
is called against it.$ wicked ifup eth1 $ wicked ifup hsi0 $ wicked ifup hsci8000
-
Prepare a persistent HSCI
Notes
- Wicked supports running shell scripts after the network interfaces are
set up, which helps you to create a persistent HSCI after reboot.
You can run the
hsci add
command to enhance the newly createdifcfg-eth1
andifcfg-hsi0
with a shell script that checks if both interfaces are in stateUP
and then creates thehsci8000
. - Also see
man ifcfg (5)
-
Enhance the existing
ifcfg-*
files to run a script after starting the appropriate interface.echo 'POST_UP_SCRIPT="wicked:post-up/100-hsci8000-mm-setup_sles15.4+.sh"' >> ifcfg-eth1 echo 'POST_UP_SCRIPT="wicked:post-up/100-hsci8000-mm-setup_sles15.4+.sh"' >> ifcfg-hsi0
-
Create a directory to store the
post-up
script100-hsci8000-mm-setup_sles15.4+.sh
.mkdir -p /etc/wicked/scripts/post-up
-
Create the
100-hsci8000-mm-setup_sles15.4+.sh
-script in/etc/wicked/scripts/post-up
.Note
#!/usr/bin/env bash IFACE=$2 HS_DEV=hsi0 EXT_DEV=eth1 HSCI_DEV=hsci8000 ################################################################################ # Check, if HSCI already exists if [[ $(hsci show | grep $HSCI_DEV | wc -l) -eq 1 ]]; then logger "hsci-post-up $0: $HSCI_DEV is already in STATE: UP and running. \
Exit script here!"
exit 0 fi ################################################################################ # Check, # if this script runs as POST-UP of HS_DEV ($IFACE == $HS_DEV) # if the OSA bridgport is UP # Then run "hsci add ..." if [[ $IFACE == $HS_DEV ]] && \ [[ $(ip link show $EXT_DEV | grep UP | wc -l) -eq 1 ]]; then logger "hsci-post-up $0: $IFACE matched $HS_DEV, and $EXT_DEV is UP. \
Running /sbin/hsci add $HS_DEV $EXT_DEV" /sbin/hsci add $HS_DEV $EXT_DEV fi ################################################################################ # Check, # if this script runs as POST-UP of EXT_DEV ($IFACE == $EXT_DEV) # if the HS bridgport is UP # Then run "hsci add ..." if [[ $IFACE == $EXT_DEV ]] && \ [[ $(ip link show $HS_DEV | grep UP | wc -l) -eq 1 ]]; then logger "hsci-post-up $0: $IFACE matched $EXT_DEV, and $HS_DEV is UP. \
Running /sbin/hsci add $HS_DEV $EXT_DEV" /sbin/hsci add $HS_DEV $EXT_DEV fi
- Wicked supports running shell scripts after the network interfaces are
set up, which helps you to create a persistent HSCI after reboot.
You can run the
How to define a persistent HSCI interface in SLES15 SP4
These instructions apply to SLES15 SP4 or later!
Subscribe to:
Posts (Atom)
Popular Posts
-
Thanks to a joined effort of IBM, RedHat, Microsoft, and Sine Nomine Associates, as well as the .NET and Mono open source communities, .NET ...
-
This blog posting details how to take advantage of the hardware compression feature in z15 with zlib in Linux distributions. The following...
-
Secure Boot is a feature of a system bootloader that is intended to restrict a system to only boot trustworthy operating systems. In the cas...
No comments:
Post a Comment