sesdev icon indicating copy to clipboard operation
sesdev copied to clipboard

k3s/longhorn: use LVM to support additional storage disks

Open tserong opened this issue 2 years ago • 4 comments

This is a really simple use of LVM to just create a linear logical volume over /dev/vd[b-z], then mount that for use by Longhorn. The default is still to deploy with only one additional disk, but at least now if more than one disk is requested, we'll actually do something with the extra disks.

tserong avatar Apr 21 '23 09:04 tserong

Hang on, just tried a deploy on Tumbleweed which failed for some reason...

tserong avatar Apr 21 '23 09:04 tserong

node4:~ # lvcreate --name longhorn-data -l 100%VG longhorn
  WARNING: failed to init udev for external device info, using none.
  /dev/longhorn/longhorn-data: not found: device not cleared
  Aborting. Failed to wipe start of new LV.

Huh?

tserong avatar Apr 21 '23 09:04 tserong

Deployed again, didn't have the problem >sigh<

I assume this is something potentially glitchy at some lower level than sesdev, so removing DNM label.

tserong avatar Apr 21 '23 09:04 tserong

Thinking about this further, I actually wonder if I should make this LVM setup optional, or perhaps just not bother doing it at all.

My reason for adding longhorn support to sesdev in the first place was so I'd have a convenient playground for experimenting with longhorn. If I stitch all the extra disks together with LVM automatically, that means I can't play with Longhorn's "add disk" functionality...

tserong avatar Apr 27 '23 12:04 tserong