Questions tagged [longhorn]

Distributed block storage for Kubernetes

24 questions
2
votes
0 answers

Eliminate Longhorn-system stuck in Terminating State

I am trying to delete an instance of longhorn, as well as the namespace, that is stuck in the terminating state. I tried all three methods on the longhorn documentation, of which all fail. I cannot uninstall longhorn using a helm chart as I never…
Johnney
  • 161
  • 1
  • 9
2
votes
0 answers

longhorn-v1.3.1 RWX volume is significantly slower than RWO volume

I am seeing a significant performance difference between RWX (ReadWriteMany) and RWO (ReadWriteOnce) types of volumes. Here is the yaml that creates these two volumes apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pvc-rwx spec: …
2
votes
1 answer

Kubernetes way or Operator to clone PV between namespaces

Please tell me the best way to clone PV between namespaces. I read that cloning is only possible in a single namespace. So far the best way I see is to explicitly copy the files from one folder to another after creating the PVC. But I would like to…
JDev
  • 2,157
  • 3
  • 31
  • 57
2
votes
0 answers

Lonhorn fails to install on Rancher 2.6 (Edge Doployment)

I want to use Rancher as edge orchestration tool. My Rancher server setup: Rancher version: 2.6 - fresh installation Installation option (Docker install/Helm Chart): Docker install on an Edge (single node) system When installing Longhorn from…
WeSee
  • 3,158
  • 2
  • 30
  • 58
2
votes
1 answer

Microk8s fails to AUTOMATICALLY mount pod on Longhorn

I have a single node kubernetes setup on Ubuntu 20.04. Am using microk8s and longhorn storage for my single node cluster. I install packages using Helm via Lens IDE. I have configured everything as per the respective guides but anytime I install a…
wwmwabini
  • 75
  • 6
1
vote
1 answer

Longhorn RWX PVC Stuck Terminating

My team is experiencing an issue with longhorn where sometimes our RWX PVCs are indefinitely terminating after running kubectl delete. A symptom of this is that the finalizers never get removed. It was explained to me that the longhorn-csi-plugin…
Josh
  • 74
  • 4
1
vote
0 answers

Longhorn how to enable node over UI or kubectl?

How can I enable a node in longhorn? Right now one of my node under NodeDeploymentMap is marked as false.
deroccha
  • 1,181
  • 4
  • 22
  • 41
1
vote
1 answer

Prometheus + Longhorn = wrong volume size

I am not really sure, if this is a prometheus issue, or just Longhorn, or maybe a combination of the two. Setup: Kubernetes K3s v1.21.9+k3s1 Rancher Longhorn Storage Provider 1.2.2 Prometheus Helm Chart 32.2.1 and image:…
sdobedev
  • 31
  • 2
1
vote
2 answers

Longhorn using more than 50% of storage as reserved space

I'm running Longhorn v1.2.3 on RKE1 cluster (provisioned by rancher), this cluster has 5 nodes with dedicated 20GiB disks mounted on /var/lib/longhorn, with ext4 filesystem and 0% reserved blocks for root user/group. In the dashboard, i see the…
Andrew
  • 3,912
  • 17
  • 28
1
vote
0 answers

How to configure disk for volumes for Longhorn

How to configure disk for volumes for Longhorn during installation? Not in GUI please! I have a couple of Kubernetes nodes with large disks. Disk is mounted at /var/lib/data/ How to configure Longhorn at installation to use this /var/lib/data/…
Michael Chudinov
  • 2,620
  • 28
  • 43
1
vote
1 answer

Kubernetes Move from Persistent Volume

I have run some standard Azure IaaS kubernetes clusters for 3 years in production (~ 40 nodes). Because of recent corporate security changes and kubernetes design improvements, in particular the management of CSINodes, I decided to move back from…
Jack Admin
  • 307
  • 1
  • 13
1
vote
1 answer

Longhorn backup/snapshot hooks

How do I configure Longhorn backup so it executes some bash scripts in the pod before and after snapshot/backup is taken? Something similar to Velero's backup hooks. annotations: backup.velero.io/backup-volumes: data …
Anton
  • 3,587
  • 2
  • 12
  • 27
1
vote
0 answers

longhorn and ebs and autoscaling group

We use longhornand EBS-aws on our kubernetes clusters. but I would to active cluster-autoscaler for our instances ec2. If an ec2 instance is down auto scaling create a new instance with an empty ebs and longhorn recreate a volume with replicas. Is…
1
vote
1 answer

How can I retain a PersistenceVolume in Longhorn

I have setup a self managed kubernetes cluster together with longhorn as a distributed storage. The installation was quite simple. I have created a storage class like this one: kind: StorageClass apiVersion: storage.k8s.io/v1 metadata: name:…
Ralph
  • 4,500
  • 9
  • 48
  • 87
0
votes
0 answers

Pod with RWX pvc stuck on terminating state 1/1 using docker engine

Rancher version: v2.5.7 K3S version: 1.20.4 Docker version: 24.0.5 Containerd version: 1.6.22 Runc version: v1.1.8 Longhorn version: v1.1.0 I’m using helm to deploy my application, one of my pods has pvc with ReadWriteMany access mode, everytime I…
Adiel
  • 1
  • 1
1
2