Hi Ranchers ,
i'm trying to implement longhorn csi with rancher cluster the case is that i have an encrypted disk with luks already, the provisioned volumes are faulted, once i have removed luks from disk every this came to healthy and i also found that longhorn can encrypt volumes by it self
so is the encrypted disk don't work with longhorn and if i need encryption use longhorn encryption, please support ??
s
square-crayon-51414
06/19/2023, 3:56 PM
Hi, fellows
s
square-crayon-51414
06/19/2023, 4:33 PM
I added extra disk in longhorn ui by [edit node and disk] function which requires a path to indicate the block device. So i added a entry in fstab to mount the partition at reboot stage. But when i reboot the host, the fstab entry didnot work, i had to mount -a manually. Then I did a test, systemctl disable rke2-server and reboot again. I found fstab entry worked fine. When i input systemctl start rke2-server and the service started, i check mount. the fstab entry disappeared again. I guess that longhorn has some function to clean the fstab entries.
It seems I have to add disk via harvester edit node config, volume tab. But i don't think set '/dev/sda, /dev/sdb' is good idea. I think udev mode like '/dev/disk/by-uuid/...' might be better.
Any hints will be appreciated. Thank in advance.