2

My root (BTRFS) filesystem is on a small SSD, and /var is on a larger, slower, separately formatted (also with BTRFS) HDD. This works well, but I can't use CoW when copying files between the two devices and snapshotting my system requires creating two snapshots every time.

I know that BTRFS can use multiple devices, but I wonder whether I can limit the root subvolume to only use the SSD, and the /var subvolume to only use the HDD (like LVM). I know that existing blocks won't be moved between devices without running btrfs balance, but new blocks could be placed on either device by default.

I know that block-level caches can combine the benefits of SSDs and HHDs within the same filesystem, but I'd like seldom-used system files to remain on the SSD. I'm also hoping that this can be done online and without copying my data elsewhere first, but that is a secondary concern.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.