Closed balchua closed 2 years ago
Do you think this error is the culprit?
Looks like it. What OS/version is this on? Is this a desktop or a server instance?
Ubuntu 20.04 desktop version.
Is this issue still outstanding @balchua @neoaggelos ?
Yes, i haven't tried loading another version of the extra modules.
I tried mayastor addon from a DigitalOcean Droplet and it works. However it fails with this error above on my laptop. I tried installing extras module, but it doesn't seem to take effect. I will also try to cross post this to OpenEBS folks see what they have to say.
I'm facing the same issue on a new installation of microk8s.
I have 2 machines slightly different.
I've noticed the following:
sudo ls -Ahlt /sys/devices/system/node/node*/hugepages
Machine 1 returns and do not work
drwxr-xr-x 2 root root 0 May 11 21:34 hugepages-1048576kB
drwxr-xr-x 2 root root 0 May 11 21:34 hugepages-2048kB
Machine 2 returns and works
drwxr-xr-x 2 root root 0 May 11 18:27 hugepages-2048kB
and the value 1048576kB is the one that says on the error when the pods tries to start.
EAL: No available 1048576 kB hugepages reported
I've also tried to set one page on the 1048576kB, and now I got a message on the pod stating that I don't have enough pages, but it found 1 page.
it looks like the mayastor is picking up the 1048576kB instead of the 2048kB even tough I got the following
cat /proc/meminfo | grep Huge
AnonHugePages: 16384 kB
ShmemHugePages: 0 kB
FileHugePages: 0 kB
HugePages_Total: 1024
HugePages_Free: 1024
HugePages_Rsvd: 0
HugePages_Surp: 0
---->Hugepagesize: 2048 kB
(thought this was the default one)
Hugetlb: 2097152 kB
any news on that one ? (i'm stuck for the deployment of a microk8s cluster because of that one)
@stygmate @balchua @lopesdasilva Hi, sorry for taking long. It looks to me like the hugepages message is unrelated to the issue at hand. I've been unable to replicate the issue locally, can you try the following:
microk8s.kubectl edit -n mayastor daemonset mayastor
and append the following command-line argument to the mayastor service: - --env-context=--iova-mode=pa
@neoaggelos seems Mayastor pods running correctly. I will try creating volumes after. what is this option ? is it normal that each pod of the daemon take 100% cpu (1 core) all the time ?
@neoaggelos with the options you suggested it works.
@stygmate I also have the CPU always on 100% as well, I don't know if that is expected.
I also have the CPU always on 100% as well, I don't know if that is expected
@lopesdasilva Yes it is ! you can find the detail in mayastor docs.
@neoaggelos what - --env-context=--iova-mode=pa
parameter do ?
I confirm that the parameter - --env-context=--iova-mode=pa
works! Thanks @neoaggelos
Do you think this is a good default? According to this article, the pa
aka Physical Address mode works most of the time regardless of HW or SW.
But using the va
mode is preferred.
Using microk8s and mayastor addon on 3 nodes which are each running ubuntu 22.04. followed these instructions https://microk8s.io/docs/addon-mayastor And Noticed I almost had enough free pages so I decided to change the suggested: sudo sysctl vm.nr_hugepages=1024 echo 'vm.nr_hugepages=1024' | sudo tee -a /etc/sysctl.conf to: sudo sysctl vm.nr_hugepages=1048 echo 'vm.nr_hugepages=1048' | sudo tee -a /etc/sysctl.conf sudo nvim /etc/sysctl.conf
and that seemed to do the trick.
When i enabled the mayastor addon, most of the pods are up, except for the
mayastor
pod. It crash loops with this error (I turned on the debug)I tried restarting MicroK8s as well as rebooting the host when i change these hugepages.
Hugepages seems to be ok
There is also this instruction that fails for me.
Do you think this error is the culprit?
Thanks for your help!