Migrating a ZFS pool from RAIDZ1 to RAIDZ2
Migrating a ZFS pool from RAIDZ1 to RAIDZ2
#Glück muss man haben....
Zuerst stirbt eine #Festplatte in meinem #NAS. Zum Glück #RaidZ2. Ersatz bestellt, kommt morgen, dann etwas Zeit fürs wieder reinrechnen und es ist wieder gut.
Heute stirbt doch glatt mein lokaler Mini-PC und nimmt meine Home-Automatisierung und mein #pihole mit sich (und noch ein paar Dienste, aber die merkt man nicht so stark). DNS geht ja noch recht einfach umzubiegen (anderes Ziel in den DHCP Server eintragen, zack tun die Clients wieder).
#Homeassistant nervt viel dagegen viel mehr, wenn das weg ist. Das ist der Nachteil an einer Automatisierung, die was zentrales braucht. Wenn das weg ist, dann Mist.
(Weswegen im Hausbau dann auch #knx genommen wird, und nur "hübsche Extras" mit so nem Zentral Dings daherkommen werden.)
Nungut, hab ja noch nen Laptop. Also kommt die VM vom HA dann dadrauf. Muss nur erstmal die Daten dahinkriegen. Kostet Zeit, aber ist machbar.
Aber es nervt. Ich hatte anderes vor heute.
First time trying to expand a ZFS raidz2...
What am I missing? Forest + trees problem?
I thought it might be a requirement to escape the colons in the device name but I've been backwards and forwards of escaping and quoting to no effect.
For giggles tried adding a 'single' vdev and then 'zpool attach' but it doesn't work.
I was initially following @vermaden tutorial at https://freebsdfoundation.org/blog/openzfs-raid-z-expansion-a-new-era-in-storage-flexibility/ but working on a live system with physical devices and without a net. Ha.
"Linux" things?
Debian Bookwork, Linux 6.12.12+bpo-amd64, zfs 2.3.1. Very vanilla other than the backport kernel.
I've now tried both. #UnRAID is easier to configure out of the box but is non-free even though based on #Slackware, and parity building always fails me 18+ hrs in. #TrueNAS Scale is free if more complex & resource hungry, with encrypted #ZFS #raidz2 ready for use with double parity within 10 minutes of 1st boot.
Both have pros & cons, but TrueNAS works as expected even on lower-end hardware where UnRAID parity fails. YMMV, but if you don't need to reuse odd-sized old disks TrueNAS wins.
Dried and cleaned.
These are part of a #zfs #raidz2 pool of one of my backup servers, so if at least two of them work, the pool can be saved.
The disks were submerged about 3 cm from the left edge towards about halfway along the SAS connector, for about two hours. The breather holes were clear, so integrity of the platter enclosure is hopefully ok. Also, I'm optimistic about the PCBs, because, as far as I can reconstruct, the circuit breaker tripped as soon as the first power distributors got wet, well before any electronics were touched by water.