This message was deleted.
# longhorn-storage
a
This message was deleted.
m
The docs recommend bind mounting the path to
/var/lib/longhorn
instead of symbolically linking it: https://longhorn.io/docs/1.3.0/best-practices/#setting-up-extra-disks
a
I'm not familiar with bind mounting but I'm looking it up now. Do you know if my formatting the logical volume was correct or should the block device be an unformatted/raw block device?
And to be clear, I believe this means I would need two fstab entries. One for mounting my disk and a second bind mount that binds the longhorn directory to my mounted disk?
So would I need to have something like this???
Copy code
UUID="blahblahblah" /mnt/DATA xfs defaults 0 0
/var/lib/longhorn /mnt/DATA none bind
m
If you as using the whole disk for longhorn, you can mount it to
/var/lib/longhorn
. It looks like the source and destination are reverse in your fstab example.
/mnt/DATA /var/lib/longhorn none bind
a
ll