Closed benok closed 2 years ago
I would try by having separate partition or disk for swap and by following https://burmillaos.org/docs/storage/custom-partition-layout/#burmilla_swap instead of partition file.
Also note that we looks to have search & replace failure on that guide, those partition labels should use prefix RANCHER_
instead of BURMILLA_
for backward compatibility.
Umm, I prefer swapfile. It's pretty handy because it can be configurable within cloud-init.yml only. I don't want to change the disk layout on every install.
I've perhaps read v2 kernel shares k3os's kernel code, somewhere. Do you think this problem exists on k3os, too? (I don't have env/experience of k3os)
Ok. One big issue which I see is at least you are using folder /var/vm
because in BurmillaOS console is also running inside of container and view to it is different that which kernel see.
With quick look to code at least folder /var/lib/rancher/cache
should be mounted to both so if you use SWAP_PATH=/var/lib/rancher/cache/swap
it would fix at least that part.
On other why I'm not aware that there would be anything which would prevent you from using swap file.
Ok. One big issue which I see is at least you are using folder /var/vm because in BurmillaOS console is also running inside of container and view to it is different that which kernel see.
Ah, Ok. That sounds very reasonable.
(I don't know why above script works on v1.9.3, but :-) I confirmed I can add a swap with SWAP_PATH=/var/lib/rancher/cache/swap.
I'll try to find is there any better location, but thank you for your advice!
(I don't know why above script works on v1.9.3, but :-)
Ok. Then it might be caused something else too.
I confirmed I can add a swap with SWAP_PATH=/var/lib/rancher/cache/swap.
But did it fix the issue?
I confirmed I can add a swap with SWAP_PATH=/var/lib/rancher/cache/swap.
But did it fix the issue?
Yes, it did.
At least, with the above path, it works as expected.
BurmillaOS Version: (ros os version) v2.0.0-beta5
Where are you running BurmillaOS? (docker-machine, AWS, GCE, baremetal, etc.) a cloud service (kvm based hosting)
Which console you use (default, ubuntu, centos, etc..) default
Please share copy of your cloud-init (remember remove all sensitive data first)
Thank you for developing version 2. I tried v2.0.0-beta5, and found a problem with adding a swap.
I googled about this problem, and found some sites that say its cause is sparse file handling.
So, I tried making a swap using dd, but no luck.
Swap is mandatory for me. Could you confirm this?
p.s. I tried v2.0.0-beta5 almost the whole day, I don't have any problem other than this issue.