Update default data path to /var/lib/longhorn

Longhorn #1102

Signed-off-by: Shuo Wu <shuo@rancher.com>
This commit is contained in:
Shuo Wu 2020-03-16 10:59:48 +08:00 committed by Sheng Yang
parent 008ba3d7f7
commit bf03c921a0
4 changed files with 7 additions and 7 deletions

View File

@ -80,10 +80,10 @@ questions:
default: "false" default: "false"
- variable: defaultSettings.defaultDataPath - variable: defaultSettings.defaultDataPath
label: Default Data Path 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" group: "Longhorn Default Settings"
type: string type: string
default: "/var/lib/rancher/longhorn/" default: "/var/lib/longhorn/"
- variable: defaultSettings.replicaSoftAntiAffinity - variable: defaultSettings.replicaSoftAntiAffinity
label: Replica Soft Anti-Affinity label: Replica Soft Anti-Affinity
description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default true.' description: 'Allow scheduling on nodes with existing healthy replicas of the same volume. By default true.'

View File

@ -31,7 +31,7 @@ data:
backup-target: s3://backupbucket@us-east-1/backupstore backup-target: s3://backupbucket@us-east-1/backupstore
backup-target-credential-secret: minio-secret backup-target-credential-secret: minio-secret
create-default-disk-labeled-nodes: true 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 replica-soft-anti-affinity: false
storage-over-provisioning-percentage: 600 storage-over-provisioning-percentage: 600
storage-minimal-available-percentage: 15 storage-minimal-available-percentage: 15
@ -65,7 +65,7 @@ defaultSettings:
backupTarget: s3://backupbucket@us-east-1/backupstore backupTarget: s3://backupbucket@us-east-1/backupstore
backupTargetCredentialSecret: minio-secret backupTargetCredentialSecret: minio-secret
createDefaultDiskLabeledNodes: true createDefaultDiskLabeledNodes: true
defaultDataPath: /var/lib/rancher/longhorn-example/ defaultDataPath: /var/lib/longhorn-example/
replicaSoftAntiAffinity: false replicaSoftAntiAffinity: false
storageOverProvisioningPercentage: 600 storageOverProvisioningPercentage: 600
storageMinimalAvailablePercentage: 15 storageMinimalAvailablePercentage: 15

View File

@ -1,7 +1,7 @@
# Multiple disks support # Multiple disks support
Longhorn supports to use more than one disk on the nodes to store the volume data. 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 ## 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. 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 ### Use an alternative path for disk on the node

View File

@ -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. * 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 #### Default Data Path
* Example: `/var/lib/rancher/longhorn` * Example: `/var/lib/longhorn`
* Description: Default path to use for storing data on a host * 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. * 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.