-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Using two SSDs as cache for two HDDs with LVM #814
Comments
Be more precise. (The original post just said "how" with no additional information) |
Simpler info i just want to do the stuff described here https://man.archlinux.org/man/lvmcache.7 |
First off, please do additional research on your own instead of just blindly trusting an LLM to make a good decision for you. Instead of using LVM and putting an ext4 filesystem on top of it, using ZFS or btrfs which implement caching directly might be the better option. If you're sure that you want to use LVM for this, I'd say your best starting point is this example. Take a look at the lvm_pv and lvm_vg types to see what your options are. You might have to call |
On principle, you're totally justified in calling out how lazy it is to take up a maintainers limited time by creating a github issue because a piece of software doesn't support a use-case that chatGPT proposed, but on the merits there's a variety of reasons to genuinely prefer generic lvm tiering over other filesystems with native support. Example: I have a NAS running nixos atop an old armv7l platform with 512MB of ram. There's no sense in running zfs or btrfs on a system like that. (I later learned that there's no sense in running LVM on a system like that either, but it did at least mostly work.) |
We linked to the LVM example. Not using LVM beyond that much. Not sure how to further help here. Maybe someone else has more examples to add. |
sorry this is the llm prompt and response, tldr i need to add a line to lvm.conf how to do go about that with disko
sudo pvcreate /dev/sda
sudo pvcreate /dev/sdb
sudo pvcreate /dev/sdc
sudo pvcreate /dev/sdd
sudo vgcreate hybrid-storage /dev/sda /dev/sdb /dev/sdc /dev/sdd
sudo lvcreate hybrid-storage -n root
sudo mkfs.ext4 /dev/mapper/hybrid--storage-root
sudo mount /dev/mapper/hybrid--storage-root /mnt/hybrid-storage
hybrid-storage {
# ... other configuration options here ...
cache = writethrough
The text was updated successfully, but these errors were encountered: