How to properly back up and restore Cumulus Linux config (Mellanox switch RMA)

Hi all,

I have a Mellanox switch running Cumulus Linux that is going for RMA. I want to extract the configuration from the old switch and load it into the replacement unit.

I tried using WinSCP to copy out /etc/nvue.d/startup.yaml, but I ran into permission issues — I couldn’t copy the file.
Is there a recommended or proper method to:

  • Back up the full configuration (not necessarily the whole OS, just the settings)

  • Restore/import it into a replacement switch?

Any simple way to do this without root file copying or unsafe methods?

Hi,

Which version of Cumulus Linux are you referring to?
Depending on the version and method how the device is configured, if it is after 5.9.0 and all the configuration is done via NVUE, the single config file can be used to backup the config.
Or it has to follow up the instruction as you mentioned.

Hi, I am using version 5.12. I tried using WinSCP to copy out the YAML file, but it doesn’t seem to work due to a permission issue. Is there a recommended way to export the configuration file and import it to the new switch? I’m going to RMA my Mellanox switch soon.

Hello,

Following URL explains what files you need to backup and using NVUE as well.

But I don’t think you can copy the file out of the switch because you have permission issue. Because 2nd step is just “Copy the /etc/nvue.d/startup.yaml file off the switch to a different location” which is not possible.

Even if cl-support file is created which usually contains all necessary information/configuration, you cannot download out of the switch. Without proper authority/permission level with your account, backup procedure will be very difficult.

If you can open files, then manual copy and paste might be the only way in this case.