Skip to content

Commit fc2b514

Browse files
Create harvester.md
1 parent aa2dce9 commit fc2b514

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

harvester.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# HARVESTER
2+
3+
<details>
4+
<summary>ReplicaSchedulingFailure Single-Node Harvester Cluster</summary>
5+
6+
You have a single-node Harvester cluster (sthings)
7+
Longhorn is configured for 3 replicas per volume
8+
Only 1 replica can run because Longhorn's anti-affinity prevents multiple replicas on the same node
9+
Status: ReplicaSchedulingFailure: precheck new replica failed
10+
11+
Why this happens:
12+
Longhorn's default configuration assumes multi-node clusters for data redundancy. With one node, it can't satisfy the "3 replicas on different nodes" requirement.
13+
Solutions:
14+
15+
```bash
16+
For existing volumes
17+
kubectl --kubeconfig ~/.kube/harvester patch volume pvc-2ae20462-92b3-4ce2-93f5-8d90812b03bb \
18+
-n longhorn-system --type=merge -p '{"spec":{"numberOfReplicas":1}}'
19+
20+
kubectl --kubeconfig ~/.kube/harvester patch volume pvc-5626539c-5b15-4b9c-8bf9-cda3625887a4 \
21+
-n longhorn-system --type=merge -p '{"spec":{"numberOfReplicas":1}}'
22+
23+
# Set global default for future volumes
24+
kubectl --kubeconfig ~/.kube/harvester patch settings.longhorn.io default-replica-count \
25+
-n longhorn-system --type=merge -p '{"value":"1"}'
26+
```
27+
</details>
28+
29+
30+

0 commit comments

Comments
 (0)