Wie tausche ich bei einem Proxmox Server mit ZFS Raid eine Festplatte?
Wie tausche ich bei einem Proxmox Server mit ZFS Raid eine Festplatte?
# zpool status
pool: rpool
state: DEGRADED
status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state.
action: Replace the device using 'zpool replace'.
see: http://zfsonlinux.org/msg/ZFS-8000-4J
scan: resilvered 1.73G in 0h1m with 0 errors on Sat Nov 11 14:34:31 2017
config:
NAME STATE READ WRITE CKSUM
rpool DEGRADED 0 0 0
mirror-0 DEGRADED 0 0 0
sda2 ONLINE 0 0 0
18427350278353291076 UNAVAIL 0 0 0 was /dev/sdb3
errors: No known data errors
#Neue Festplatte partitionieren
sgdisk -R /dev/NEUE-Festplatte /dev/ALTE-Festplatte
sgdisk -G /dev/NEUE-Festplatte
#Festplatte austauschen
zpool replace -f rpool 18427350278353291076 /dev/sdb3
#zpool clear um eventuelle alte Logs noch zurück zu setzen.
zpool clear rpool ; zpool scrub rpool
#Grub Neuinstallieren
proxmox-boot-tool format /dev/sdX2 --force
proxmox-boot-tool init /dev/sdX2