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:
2025-12-27 02:37:46 +09:00
parent 628d168e96
commit 97e77078e9
5 changed files with 67 additions and 1 deletions

View File

@@ -16,7 +16,7 @@ persistence:
defaultSettings:
# Storage
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
backupTarget: "" # S3/NFS backup target (configure later if needed)

View File

@@ -5,3 +5,6 @@ namespace: longhorn-system
resources:
- ingress/longhorn-ingress.yaml
- nodes/mayne-vcn.yaml
- nodes/mayne-worker-1.yaml
- nodes/mayne-worker-2.yaml

View 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: []

View 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: []

View 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: []