- Official Post
Bei einem meiner Proxmox VE Hosts habe ich aus einem ZFS RAID0 (stripe, also mehr Speicher) ein ZFS RAID1 (mirror, mehr Sicherheit) gemacht. Hier die notwendigien Schritte dazu:
1. Überblick verschaffen
Bash
root@brix22:~# zpool status
pool: rpool
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
nvme-eui.00000000000000008ce38e03006ad3b3-part3 ONLINE 0 0 0
ata-SanDisk_SDSSDH3_1T02_2012AB448604-part3 ONLINE 0 0 0
errors: No known data errors
2. Einen Datenträger (hier SanDisk SSD) aus dem rpool (RAID0, stripe) entfernen
3. Diesen Datenträger wieder dem rpool als mirror für RAID1 hinzufügen
Bash
root@brix22:~# zpool attach rpool nvme-eui.00000000000000008ce38e03006ad3b3-part3 ata-SanDisk_SDSSDH3_1T02_2012AB448604-part3
4. Fortschritt prüfen
Bash
root@brix22:~# zpool status
pool: rpool
state: ONLINE
status: One or more devices is currently being resilvered. The pool will continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scan: resilver in progress since Mon Mar 6 13:59:46 2023
1.71G scanned at 292M/s, 736M issued at 123M/s, 1.71G total
751M resilvered, 42.03% done, 00:00:08 to go
remove: Removal of vdev 1 copied 610M in 0h0m, completed on Mon Mar 6 13:58:04 2023
20.4K memory used for removed device mappings
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
nvme-eui.00000000000000008ce38e03006ad3b3-part3 ONLINE 0 0 0
ata-SanDisk_SDSSDH3_1T02_2012AB448604-part3 ONLINE 0 0 0 (resilvering)
errors: No known data errors
Display More
5. Prozess „resilver“ abgeschlossen
Bash
root@brix22:~# zpool status
pool: rpool
state: ONLINE
scan: resilvered 1.76G in 00:00:12 with 0 errors on Mon Mar 6 13:59:58 2023
remove: Removal of vdev 1 copied 610M in 0h0m, completed on Mon Mar 6 13:58:04 2023
20.4K memory used for removed device mappings
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror-0 ONLINE 0 0 0
nvme-eui.00000000000000008ce38e03006ad3b3-part3 ONLINE 0 0 0
ata-SanDisk_SDSSDH3_1T02_2012AB448604-part3 ONLINE 0 0 0
errors: No known data errors
Display More
Nun ist der rpool ein mirror, bestehend aus den zwei Datenträgern.