REFACTOR(longhorn): migrate longhorn
- to dedicated 50gb disks - Update defaultDataPath to /mnt/longhorn-storage - Add Node CRs for all nodes with new disk configuration - Evict data from old /var/lib/longhorn disks to new disks - Nodes: mayne-vcn, mayne-worker-1, mayne-worker-2
This commit is contained in:
@@ -16,7 +16,7 @@ persistence:
|
|||||||
defaultSettings:
|
defaultSettings:
|
||||||
# Storage
|
# Storage
|
||||||
defaultReplicaCount: 3 # Default number of replicas for volumes
|
defaultReplicaCount: 3 # Default number of replicas for volumes
|
||||||
defaultDataPath: /var/lib/longhorn # Data storage path on nodes
|
defaultDataPath: /mnt/longhorn-storage # Data storage path on nodes (NEW: dedicated 50GB disks)
|
||||||
|
|
||||||
# Backup settings
|
# Backup settings
|
||||||
backupTarget: "" # S3/NFS backup target (configure later if needed)
|
backupTarget: "" # S3/NFS backup target (configure later if needed)
|
||||||
|
|||||||
@@ -5,3 +5,6 @@ namespace: longhorn-system
|
|||||||
|
|
||||||
resources:
|
resources:
|
||||||
- ingress/longhorn-ingress.yaml
|
- ingress/longhorn-ingress.yaml
|
||||||
|
- nodes/mayne-vcn.yaml
|
||||||
|
- nodes/mayne-worker-1.yaml
|
||||||
|
- nodes/mayne-worker-2.yaml
|
||||||
|
|||||||
21
longhorn/nodes/mayne-vcn.yaml
Normal file
21
longhorn/nodes/mayne-vcn.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: longhorn.io/v1beta2
|
||||||
|
kind: Node
|
||||||
|
metadata:
|
||||||
|
name: mayne-vcn
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
disks:
|
||||||
|
default-disk:
|
||||||
|
allowScheduling: false
|
||||||
|
diskType: filesystem
|
||||||
|
evictionRequested: true
|
||||||
|
path: /var/lib/longhorn
|
||||||
|
storageReserved: 10737418240
|
||||||
|
tags: []
|
||||||
|
new-disk:
|
||||||
|
allowScheduling: true
|
||||||
|
diskType: filesystem
|
||||||
|
evictionRequested: false
|
||||||
|
path: /mnt/longhorn-storage
|
||||||
|
storageReserved: 5368709120
|
||||||
|
tags: []
|
||||||
21
longhorn/nodes/mayne-worker-1.yaml
Normal file
21
longhorn/nodes/mayne-worker-1.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: longhorn.io/v1beta2
|
||||||
|
kind: Node
|
||||||
|
metadata:
|
||||||
|
name: mayne-worker-1
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
disks:
|
||||||
|
default-disk:
|
||||||
|
allowScheduling: false
|
||||||
|
diskType: filesystem
|
||||||
|
evictionRequested: true
|
||||||
|
path: /var/lib/longhorn
|
||||||
|
storageReserved: 10737418240
|
||||||
|
tags: []
|
||||||
|
new-disk:
|
||||||
|
allowScheduling: true
|
||||||
|
diskType: filesystem
|
||||||
|
evictionRequested: false
|
||||||
|
path: /mnt/longhorn-storage
|
||||||
|
storageReserved: 5368709120
|
||||||
|
tags: []
|
||||||
21
longhorn/nodes/mayne-worker-2.yaml
Normal file
21
longhorn/nodes/mayne-worker-2.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
apiVersion: longhorn.io/v1beta2
|
||||||
|
kind: Node
|
||||||
|
metadata:
|
||||||
|
name: mayne-worker-2
|
||||||
|
namespace: longhorn-system
|
||||||
|
spec:
|
||||||
|
disks:
|
||||||
|
default-disk:
|
||||||
|
allowScheduling: false
|
||||||
|
diskType: filesystem
|
||||||
|
evictionRequested: true
|
||||||
|
path: /var/lib/longhorn
|
||||||
|
storageReserved: 10737418240
|
||||||
|
tags: []
|
||||||
|
new-disk:
|
||||||
|
allowScheduling: true
|
||||||
|
diskType: filesystem
|
||||||
|
evictionRequested: false
|
||||||
|
path: /mnt/longhorn-storage
|
||||||
|
storageReserved: 5368709120
|
||||||
|
tags: []
|
||||||
Reference in New Issue
Block a user