Hello all. My poor understanding of Velero backup...
# longhorn-storage
e
Hello all. My poor understanding of Velero backup has left me in an undesirable position. What I thought was backing up the contents of my Longhorn PV's turns out to to be untrue. I am not totally screwed as I do take datastore-level snapshots of my k8s servers, so I can go back before my incident and mount these data drives to extract my DB files. What I am left with on these volumes is a bunch of replica image files. I see a couple of ways these can be mounted so that data can be extracted from them, but the information is old or lacking in detail. There is an "export from replica" article in the Longhorn docs. I dont have docker on my k8s cluster so not sure if I could run this on some other VM. Another method I saw that seemed quite simple involved mounting the img file with '-o loop' but didnt really have specifics. I just need to read and copy data out of the img. Can anyone advise on the best method?
Actually the docs from longhorn.io worked quite well. The only thing it didnt really address is that you need to have the iscsid service running. After I got that set up, the longhornio/longhorn-engine:v1.7.0 container just worked. I was able to extract my entire pgdata directory off the img and on to the local filesystem.