Hello!
I use Qubes for around a week now on a laptop and was hoping some of you experts out there could help me.
My main computer does a lot of things and it stores lots of TBs (>20 TB) of data (mostly media files). There is so much data on there that I need to have RAID and OpenZFS serves me well in that regard. Now, I might be a bit spoiled, but how would you implement / have you implemented the following things in QubesOS?
- Hosting server applications with access to a subset of the data (for example, mpd only needs to read my music collection, jellyfin needs to read music and videos and so on).
- As far as I understood it, I would need a single qube to handle all media files and incoming connections, since exploiting one qube that has access to files on another means both are compromised (correct?).
- That would pretty much break compartmentalization for me, since I have lots of different small things accessing lots of data like this. Is there a general way to share files without duplicating them (I found this github repo but it’s based on rsync, which would probably mean I would copy over my entire collection to different qubes)
- As far as I understood it, I would need a single qube to handle all media files and incoming connections, since exploiting one qube that has access to files on another means both are compromised (correct?).
- Incremental Replication and Backup (I found wyng for this, haven’t played around with it that much, but seems to be pretty much what I am looking for)
- Detection and Mitigation of Bit rotting (this point is especially troublesome to me, since it’s a problem that ZFS solves so elegantly).
mdadm
anddm-integrity
?
My totally and utterly unqualified approach would be
- compiling OpenZFS as rpm packages in a Fedora 32 qube, copying the files to dom0 and installing them there.
- I read here that there is more to kernels than just the one currently running, so I expect this to create some headaches…
- creating a zpool in dom0 (direct access to disks)
- making some gigantic zvols (block devices) with underlying OpenZFS RAID
- creating a PV on the zvols
- letting Qubes/wyng do it’s thing with LVM snapshot magic.
I read here that Qubes does not support OpenZFS - I would assume, based on GitHub activity, that I shouldn’t hold my breath for support any time soon.
Is there a recommended approach to this, or would this be the “ideal” way until OpenZFS is fully supported?
Note: I don’t need OpenZFS, I would be fine with switching to another FS entirely, since I probably won’t be able to have replication anyways - dom0 has no network after all.
Thanks for reading this far, I’d be grateful for any comments or suggestion, even just a simple RTFM with a link.