https://rancher.com/ logo
Title
c

careful-australia-9472

10/18/2022, 12:17 AM
Hey folks, we have been using rook/ceph for a couple of years and we are now experimenting with longhorn for its multi-cluster volume replication feature. we were expecting longhorn to have some sort of disk autodiscovery feature that can discover and format raw disks attached to the nodes just like rook/ceph does. but it doesnt seem to be the case in default helm chart installation. instead, we have to mount/format all the disks manually and then add them to longhorn in the longhorn UI. my question is: is there any existing/mature solutions that can cover this disk autodiscovery/formatting experience?
l

late-needle-80860

10/18/2022, 7:14 AM
Hi @careful-australia-9472 we’ve bumped into the same thing when building a kubernetes based multi-cluster platform. What we’ve done is using the Linux eco-system/ toolbox. So: 1. have udev setup
1. create a udev rule that listens on system hardware events a. specifically for the type of disk you’re adding 2. then have a script kick of when such a disk is added a. the script of course will then format and so on the disk for use of the Longhorn storage pool Part of this script is adding the disk to an LVM2 ….
👍 2
And this LVM2 is the Longhorn storage space
I hope that helps.
c

careful-australia-9472

10/18/2022, 5:18 PM
Thanks @late-needle-80860 for the suggestion! I will try it
😛artyparrot: 1
👍 1
n

narrow-egg-98197

10/19/2022, 4:38 PM
@late-needle-80860 Thank you for providing a way to solve the problem.
👍 1