Hello there,
I am trying to configure a backup for my cluster. I use
- Rancher 2.5.5
- Longhorn 1.1.0
- Devices - Raspberry Pi 4
- QNap NAS
I have configurated NFS4 on NAS, added all devices of the cluster and 10.42.0.0/16 for pods in allowed devices
I tryed to mount the NFS shared folder from each node of the cluster and it works fine
In Longhorn settings, I added
nfs://192.168.1.110:/backup_cluster
Now when I want to create a backup, the following error rise
fail to backup snapshot: failed to execute: /var/lib/longhorn/engine-binaries/longhornio-longhorn-engine-v1.1.0/longhorn [--url 10.42.0.88:10000 backup create --dest nfs://192.168.1.110:/backup_cluster --label KubernetesStatus={"pvName":"pvc-229542b4-43ff-4b31-ba16-12e36592c273","pvStatus":"Bound","namespace":"remote-access","pvcName":"rdesktop-config","lastPVCRefAt":"","workloadsStatus":[{"podName":"rdesktop-599b9cbf69-79s9x","podStatus":"Running","workloadName":"rdesktop-599b9cbf69","workloadType":"ReplicaSet"}],"lastPodRefAt":""} dbf84ee4-2649-4fc5-aa97-b9891d1a0db4], output , stderr, time="2021-01-31T21:26:03Z" level=info msg="Backing up dbf84ee4-2649-4fc5-aa97-b9891d1a0db4 on tcp://10.42.7.120:10030, to nfs://192.168.1.110:/backup_cluster" time="2021-01-31T21:26:03Z" level=fatal msg="Error running create backup command: failed to create backup to nfs://192.168.1.110:/backup_cluster for volume pvc-229542b4-43ff-4b31-ba16-12e36592c273: rpc error: code = Unknown desc = Cannot create mount directory /var/lib/longhorn-backupstore-mounts/192_168_1_110/backup_cluster for NFS server" , error exit status 1
And when I access to Backup session, the following error rise
error listing backups: error listing backup volumes: Failed to execute: /var/lib/longhorn/engine-binaries/longhornio-longhorn-engine-v1.1.0/longhorn [backup ls --volume-only nfs://192.168.1.110:/backup_cluster], output Cannot create mount directory /var/lib/longhorn-backupstore-mounts/192_168_1_110/backup_cluster for NFS server , stderr, time="2021-01-31T21:28:35Z" level=error msg="Cannot create mount directory /var/lib/longhorn-backupstore-mounts/192_168_1_110/backup_cluster for NFS server" , error exit status 1
I tryed to create the folder /var/lib/longhorn-backupstore-mounts
on each node, it doesn’t help
Any idea what I missed?
Thanks