this post was submitted on 29 Nov 2023
1 points (66.7% liked)

Homelab

371 readers
9 users here now

Rules

founded 1 year ago
MODERATORS
 

I have a Beelink EQ12 Pro where I can put a total of 2x2TB NVMe SSDs + 1x4TB SATA SSD (not sure if more is feasible according to Beelink's description but it is enough for me right now).

I'd like a configuration where I can lose and replace one drive without breaking anything, hotswap not needed. What would be an adapted strategy for that in terms of drive capacity, partitioning and ZFS pool? 3x2TB even if two are M.2 NVMe and one is SATA? 2x2TB + 1x4TB? Something else?

top 5 comments
sorted by: hot top controversial new old
[–] lazyslacker@sh.itjust.works 2 points 11 months ago* (last edited 11 months ago)

Get a cheap SSD for a boot drive. I think your only option given your constraints and your goal is use all three in a RAIDZ1. There's no real problem with using different kinds of drives in one pool. With this setup though you'll lose the use of 2TB of capacity on the 4TB drive. 2x2TB + 1x4TB won't work because you'll have no redundancy on the 4TB.

Edit: just realized you meant the 4tb could be mirrored to the 2+2 configured as a striped array. I think that could work, just have to see what truenas supports setting up. That would still meet your criteria of being able to lose one of them. Perhaps the ease of rebuilding a mirror compared to a RAIDZ1 would somewhat cancel out the doubled risk of the 2+2 failing. You'd only have 50% capacity, which in terms of number of usable tb the same as the raidz1 I suggested above.

I think personally I'd go RAIDZ1 as it seems more straight forward to set up but both of these options work.

[–] ChaoticWeaponry@alien.top 1 points 11 months ago (1 children)

I don't know if I would combine NVMe and SATA SSD's.
You need a boot drive as well, so one will be the boot drive, then 2 for the storage array (assuming you don't boot from USB or something)

I personally would boot from the SATA SSD, then mirror the storage disks if redundancy was needed, or stripe if you don't care for redundancy.

[–] Ziip_dev@alien.top 1 points 11 months ago (1 children)

Didn't think that way around but this can probably work pretty well :) What about the remaining space on the SSD then? May it be partitioned so I have 3x2TB with 2x2TB of NVMes and parity on the 2TB SATA SSD?

[–] ChaoticWeaponry@alien.top 1 points 11 months ago (1 children)

That’s something that I’ve never tried before.

I’m more so worried about performance loss having a SATA SSD mixed with an NVMe in parity. You’re talking a 500MB/s SATA SSD vs a 3000+ MB/s NVMe.

[–] Ziip_dev@alien.top 1 points 11 months ago

Yeah you're right, that's why I was imagining putting only the parity bits on the SATA drive, so ZFS can do it's calculation after I'm done with my data operations on the NVMes. Guess I'll have to dig deeper in TrueNAS and ZFS config :)