Update default data path to /var/lib/longhorn
Longhorn #1102 Signed-off-by: Shuo Wu <shuo@rancher.com>
This commit is contained in:
parent
008ba3d7f7
commit
bf03c921a0
@ -80,10 +80,10 @@ questions:
|
||||
default: "false"
|
||||
- variable: defaultSettings.defaultDataPath
|
||||
label: Default Data Path
|
||||
description: 'Default path to use for storing data on a host. By default "/var/lib/rancher/longhorn/"'
|
||||
description: 'Default path to use for storing data on a host. By default "/var/lib/longhorn/"'
|
||||
group: "Longhorn Default Settings"
|
||||
type: string
|
||||
default: "/var/lib/rancher/longhorn/"
|
||||
default: "/var/lib/longhorn/"
|
||||
- variable: defaultSettings.replicaSoftAntiAffinity
|
||||
label: Replica Soft Anti-Affinity
|
||||
description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default true.'
|
||||
|
@ -31,7 +31,7 @@ data:
|
||||
backup-target: s3://backupbucket@us-east-1/backupstore
|
||||
backup-target-credential-secret: minio-secret
|
||||
create-default-disk-labeled-nodes: true
|
||||
default-data-path: /var/lib/rancher/longhorn-example/
|
||||
default-data-path: /var/lib/longhorn-example/
|
||||
replica-soft-anti-affinity: false
|
||||
storage-over-provisioning-percentage: 600
|
||||
storage-minimal-available-percentage: 15
|
||||
@ -65,7 +65,7 @@ defaultSettings:
|
||||
backupTarget: s3://backupbucket@us-east-1/backupstore
|
||||
backupTargetCredentialSecret: minio-secret
|
||||
createDefaultDiskLabeledNodes: true
|
||||
defaultDataPath: /var/lib/rancher/longhorn-example/
|
||||
defaultDataPath: /var/lib/longhorn-example/
|
||||
replicaSoftAntiAffinity: false
|
||||
storageOverProvisioningPercentage: 600
|
||||
storageMinimalAvailablePercentage: 15
|
||||
|
@ -1,7 +1,7 @@
|
||||
# Multiple disks support
|
||||
Longhorn supports to use more than one disk on the nodes to store the volume data.
|
||||
|
||||
By default, `/var/lib/rancher/longhorn` on the host will be used for storing the volume data. You can avoid using the default directory by adding a new disk, then disable scheduling for `/var/lib/rancher/longhorn`.
|
||||
By default, `/var/lib/longhorn` on the host will be used for storing the volume data. You can avoid using the default directory by adding a new disk, then disable scheduling for `/var/lib/longhorn`.
|
||||
|
||||
## Add a disk
|
||||
|
||||
@ -15,7 +15,7 @@ Longhorn will detect the storage information (e.g. maximum space, available spac
|
||||
|
||||
User can reserve a certain amount of space of the disk to stop Longhorn from using it. It can be set in the `Space Reserved` field for the disk. It's useful for the non-dedicated storage disk on the node.
|
||||
|
||||
The kubelet needs to preserve node stability when available compute resources are low. This is especially important when dealing with incompressible compute resources, such as memory or disk space. If such resources are exhausted, nodes become unstable. To avoid kubelet `Disk pressure` issue after scheduling several volumes, by default, longhorn reserved 30% of root disk space (`/var/lib/rancher/longhorn`) to ensure node stability.
|
||||
The kubelet needs to preserve node stability when available compute resources are low. This is especially important when dealing with incompressible compute resources, such as memory or disk space. If such resources are exhausted, nodes become unstable. To avoid kubelet `Disk pressure` issue after scheduling several volumes, by default, longhorn reserved 30% of root disk space (`/var/lib/longhorn`) to ensure node stability.
|
||||
|
||||
### Use an alternative path for disk on the node
|
||||
|
||||
|
@ -23,7 +23,7 @@ To setup setting before installing Longhorn, see [Customized Default Setting](./
|
||||
* Note: It's useful if the user want to scale the cluster but doesn't want to use the storage on the new nodes.
|
||||
|
||||
#### Default Data Path
|
||||
* Example: `/var/lib/rancher/longhorn`
|
||||
* Example: `/var/lib/longhorn`
|
||||
* Description: Default path to use for storing data on a host
|
||||
* Note: Can be used with `Create Default Disk on Labeled Nodes` option, to make Longhorn only use the nodes with specific storage mounted at e.g. `/opt/longhorn` directory when scaling the cluster.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user