Sync File support¶
xCAT supports synchronize of configuration files for cumulus switches.
Use instructions in doc: The synclist file to set up syncfile.
Add syncfile to cumulus osimage.
# chdef -t osimage cumulus3.5.2-armel synclists=/tmp/synclists 1 object definitions have been created or modified.
updatenodeto sync the files to cumulus switches.
# updatenode mid08tor03 -F File synchronization has completed for nodes: "mid08tor03"
Switch Port and VLAN Configuration¶
xCAT places the front-panel port configuration in
configinterface postscript can be used to pull switch interface configuration from the xCAT Management Node (MN) to the switch. Place the switch specific confguration files in the following directory on the MN:
xCAT will look for files in the above directory in the following order:
- file name that matches the switch hostname
- file name that matches the switch group name
- file name that has the word ‘default’
If the postscript cannot find a configuration file on the MN, it will set all ports on the switch to be part of VLAN 1.
Execute the script using the following command:
updatenode <switch> -P configinterface
There may be occasions where a re-install of the Cumulus Linux OS is required. The following commands can be used to invoke the install:
This assumes that the Cumulus Linux files are on the xCAT MN in the correct place.
xdshcan invoke the reinstall of the OS:
# to clear out all the previous configuration, use the -k option (optional) xdsh <switch> "/usr/cumulus/bin/onie-select -k # to invoke the reinstall of the OS xdsh <switch> "/usr/cumulus/bin/onie-select -i -f;reboot"
Manually, log into the switch and run the following commands:
sudo onie-select -i sudo reboot