Troubleshooting: Longhorn default settings do not persist

Chin-Ya Huang | April 29, 2021

Applicable versions

All Longhorn versions.

Symptoms

  • When upgrading Longhorn system via helm or Rancher App, the modified Longhorn default settings doesn’t persist.

  • When modifying the default settings via kubectl -n longhorn-system edit configmap longhorn-default-setting, the modification won’t be applied to the Longhorn system.

Background

This default setting is only for a Longhorn system that hasn’t been deployed. It has no impact on an existing Longhorn system.

Solution

We recommend using the Longhorn UI to change Longhorn setting on the existing cluster.

You can also use the kubectl, but please be aware this will bypass Longhorn backend validation.

kubectl edit settings <SETTING-NAME> -n longhorn-system
Back to Knowledge Base

© 2019-2021 Longhorn Authors | Documentation Distributed under CC-BY-4.0


© 2021 The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our Trademark Usage page.