Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZOS FS: Bcache enabled filesystem #2229

Open
xmonader opened this issue Mar 12, 2024 · 6 comments
Open

ZOS FS: Bcache enabled filesystem #2229

xmonader opened this issue Mar 12, 2024 · 6 comments
Assignees
Labels
type_feature New feature or request
Milestone

Comments

@xmonader
Copy link
Collaborator

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

  • a btrfs parition for the cache
  • a redundant partition on the SSD, to ensure data integrity and availability

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

@muhamadazmy muhamadazmy self-assigned this Mar 13, 2024
@muhamadazmy muhamadazmy removed this from 3.11.x Mar 13, 2024
@muhamadazmy
Copy link
Member

muhamadazmy commented Mar 20, 2024

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:

  • LVM has built in support for cache (using ssds as cache for slower/bigger HDD), it's way better and way less buggy than Bcache according to the internet.
  • LVM will also give us control on the HD/Cache ratio per each virtual disk we need to create.
  • LVM will allow us to optimally use the full disk space without fragmentation of free space.
  • Faster virtual disk performance because we won't use a file on the filesystem as a vdisk anymore

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:

  • Create a lvm volume group that include all disks of the system
  • Create a zos volume that either fully on the ssd physical volume, or uses a cached logical volume
  • For each new workloads that requests a new disk a new LV is created
  • For subvolumes, we can easily replace them with LVs then format them with btrfs or ext4 this will also solve a lot of quota issues with using pure btrfs subvolumes.

@xmonader xmonader added the type_feature New feature or request label Mar 21, 2024
@xmonader xmonader removed this from 3.12.x Mar 21, 2024
@xmonader xmonader added this to 3.14.x Mar 21, 2024
@xmonader xmonader added this to the 3.11 milestone Mar 21, 2024
@xmonader xmonader moved this to In Progress in 3.14.x Mar 21, 2024
@delandtj
Copy link
Contributor

delandtj commented Mar 21, 2024

no lvm .
no everything devmapper

@muhamadazmy
Copy link
Member

@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
Copy link
Contributor

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

@muhamadazmy
Copy link
Member

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

@muhamadazmy muhamadazmy moved this from In Progress to Blocked in 3.14.x Apr 30, 2024
@xmonader
Copy link
Collaborator Author

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

@xmonader xmonader removed this from 3.14.x May 21, 2024
@xmonader xmonader removed this from the 3.11 milestone May 21, 2024
@ashraffouda ashraffouda added this to the later milestone Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type_feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants