4 ms·
I've considered migrating my NAS to openbsd few times, but one thing I was not sure about is with that to replace the filesystem with. I'm currently running btr
by gray_-_wolf 4y ago
I've considered migrating my NAS to openbsd few times, but one thing I was not sure about is with that to replace the filesystem with. I'm currently running btrfs and I like it. Few things I would like to have in a replacement:
1. copy-on-write and snapshots
2. checksums that are automatically verified on reads
3. btrfs' version of RAID1 (meaning I don't have to buy identical HDDs only)
What would be my options?
- ahepp 4y agoI believe zfs fulfills all those requirements. I’m running freebsd on my NAS and it’s been great.
- LanternLight83 4y agoNot #3, but it's still the best option
- ahepp 4y agoas far as I know, you can put disks of different sizes in a mirror vdev, you’ll just obviously be limited to the size of the smaller disk. Is that not what OC is asking for?
- gray_-_wolf 4y agoBtrfs' RAID1 works bit differently. It ensures every block (1GB by default I believe) is present on two devices. So, if for example, you have 2x 1TB and 1x 2TB drive, you get 2 TB of usable space. It is arguably not the most useful property in enterprise setting, but helps to stay on budget on home projects, since I can just use random drives laying around without any further requirements on the matching of the sizes.
- gtirloni 4y agoHmm I think you can mirror different sizes just fine but it'll predictably use the smaller size, no? Is btrfs different in that regard? I have only used it when it was released many years ago so my memory is rusty.
- gray_-_wolf 4y agoBtrfs' RAID1 works bit differently. It ensures every block (1GB by default I believe) is present on two devices. So, if for example, you have 2x 1TB and 1x 2TB drive, you get 2 TB of usable space. It is arguably not the most useful property in enterprise setting, but helps to stay on budget on home projects, since I can just use random drives laying around without any further requirements on the matching of the sizes.
- magicalhippo 4y agoI've run a mirror with non-identical disks on ZFS, worked just like any other mirror. I bought two pairs of disks from different vendors and ran them as mixed pairs in case the disks from one vendor would fail simultaneously. Disk space is, as expected, limited to the smaller disk in each pair. However, if you replace the smaller disk with a larger one, ZFS will automatically grow to the new minimum. You fault one disk in a pair, swap it with a larger and bring it online, ZFS will repair (fill the new disk) and once finished the pool will be larger just like that. I've used this approach to increase the size of my pool, which again meant having a pair of different disks in the mirror as I did the the swap process.
- kaashif 4y agoI'm pretty sure OpenBSD doesn't have the feature set to be good as a NAS. You lose most filesystem support in exchange for a bunch of stuff that probably doesn't matter all that much for a NAS. OpenBSD doesn't have ZFS and probably never will.