threefoldtech / zos

Autonomous operating system
https://threefold.io/host/
Apache License 2.0
84 stars 14 forks source link

ZOS FS: Bcache enabled filesystem #2229

Open xmonader opened 8 months ago

xmonader commented 8 months ago

As per kds's request to support a new primitive file system that is enabled with Bcache, with a minimum of 0.1TB on HDD combined with a "to be defined" SSD space for caching. This configuration aims to enhance performance by leveraging SSD speeds for frequently accessed data while maintaining the larger storage capacity of HDDs.

It would be great to have two SSD partiions

part of https://git.ourworld.tf/tfgrid/circle_engineering/issues/9

muhamadazmy commented 8 months ago

Okay I did some research and I really think since we going to do this we better then move completely to LVM for the following reasons:

The reason doing the work against LVM instead of bcache (or bcachefs) is that right now we format and use full disk (without a partition table) which means we can't suddenly support either lvm or cache without a full disk wipe and starting over. Hence if we gonna do this anyway, it's better to use LVM for the previous points.

Nodes in runtime can then based on their workloads distribution do a migration from old style storage system to knew style as follows:

delandtj commented 8 months ago

no lvm . no everything devmapper

muhamadazmy commented 8 months ago

@delandtj can you give a reason why ? You have been saying that and I searched everywhere and I didn't find any reason why.

If no lvm, what else can we use that can do the same! I mean if lvm that bad or obsolete why people still using it until today, and why there are no alternatives ?

delandtj commented 8 months ago

managing lvm is a pain for dynamic environments. it's not made for that

muhamadazmy commented 8 months ago

But that's a software problem imho. I mean that's something we can automate and improve upon, no? But all the listed features above are really needed in our environment.

Already right now already the storage management is very limited, and no much "management" is done excepting choosing where to create a vdisk file. So i don't LVM is a step down from what we have now, but will gain a lot of control and performance

Also many posts talks about how Bcache is buggy and lvm is better in that matter. Which is the subject of this issue

xmonader commented 6 months ago

no idea how to proceed, kds asked to put that on hold