https://rancher.com/ logo
Title
b

big-judge-33880

08/11/2022, 8:59 AM
is there a way to make longhorn restore from backup with the correct/a custom volumeMode? when I restore volumes that were
volumeMode=Block
, I get a volume with
volumeMode=Filesystem
, which appears to cause issues getting these volumes mounted by a downstream rke2 cluster that uses longhorn csi
f

famous-shampoo-18483

08/11/2022, 12:31 PM
Longhorn volume restoration has no relationship with
volumeMode
. It’s totally controlled by the PVC that is using the restored volume.
b

big-judge-33880

08/12/2022, 12:25 PM
I see. If I had a PVC with volumeMode: block, then delete that PVC with associated PV/volume, then restore the volume from backup, I get a longhorn volume with volumeMode: filesystem when I tell longhorn to create PVC/PV for that restored volume. There doesn’t appear to be a way to get longhorn to make that object volumeMode: block