https://rancher.com/ logo
Title
g

great-photographer-94826

10/10/2022, 1:48 PM
Hi! If I mount a volume using RWX in Longhorn, share-manager builds the NFS share to the following path:
/dev/longhorn
Is there a way to change this path? I didn't find any arg in Helm chart vaules file (https://github.com/longhorn/charts/blob/master/charts/longhorn/values.yaml).
l

late-needle-80860

10/10/2022, 2:03 PM
How did you bootstrap ( AKA the disk configuration ) of the nodes in your
Kubernetes
cluster that you wish to use for
persistent
storage needing workloads?
Because by e.g. setting the
create-default-disk=config
label on these nodes you can annotate those same nodes with
default-disks-config
and that
JSON
data can be used to configure the exact path on the nodes whereon the data should be stored … Making the path same no matter the type.
Of course you need to somehow bootstrap the path you specify in the
default-disks-config
JSON
data …
g

great-photographer-94826

10/10/2022, 2:33 PM
One tag related to the Longhorn component has been set on the storage nodes:
<http://node.longhorn.io/create-default-disk|node.longhorn.io/create-default-disk>: "true"
I installed the Longhorn component with the default settings. I didn't set any annotations e.g.
<http://node.longhorn.io/default-disks-config|node.longhorn.io/default-disks-config>
. Am I wrong in thinking that the
default-disks-config
parameter would be the same as the
defaultSettings.defaultDataPath
parameter? For example
labels:
    <http://node.longhorn.io/create-default-disk|node.longhorn.io/create-default-disk>: "config"
},
annotations:
    <http://node.longhorn.io/default-disks-config|node.longhorn.io/default-disks-config>:    '[{"path":"/var/lib/longhorn","allowScheduling":false}]'
l

late-needle-80860

10/14/2022, 7:54 PM
Hmm yes I think you are. The longhorn docs explains this pretty well.