Sostituzione del disco ZFS

Support Wissensdatenbank

Du bist hier:
Print

Sostituzione del disco ZFS in Proxmox

Esempio con il disco NVME0N1 difettoso

1. Sostituire il disco difettoso nel server
2. Copiare il file system
sgdisk -R=/dev/nvme0n1 /dev/nvme1n1
sgdisk -G /dev/nvme0n1

3. Scambio di dischi in zpool
zpool replace rpool nvme0n1p3 nvme0n1p3

4. Controllare se tutti i dati sono stati sincronizzati con
zpool status

5. Rendere il disco avviabile e copiare i dati di avvio dal vecchio disco.
mkfs.vfat /dev/nvme0n1p2
mount /dev/nvme1n1p2 /mnt
mount /dev/nvme0n1p2 /boot/efi
cp -a /mnt/* /boot/efi/
umount /mnt
umount /boot/efi

6. Eseguire il programma di installazione di avvio di Proxmox
proxmox-boot-tool clean
proxmox-boot-tool init /dev/nvme0n1p2 grub (Se non c’è EFI)
proxmox-boot-tool refresh
proxmox-boot-tool status (Controllare se entrambi i dischi appaiono)

 

Questo è l’aspetto che dovrebbe avere, entrambi i dischi hanno Grub e lo stesso kernel:

Re-executing ‘/usr/sbin/proxmox-boot-tool’ in new private mount namespace..
System currently booted with legacy bios
4A35-7978 is configured with: grub (versions: 6.8.12-4-pve, 6.8.12-5-pve)
A165-1F15 is configured with: grub (versions: 6.8.12-4-pve, 6.8.12-5-pve)

War dieser Artikel hilfreich?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
Wie können wir diesen Artikel verbessern?
Please submit the reason for your vote so that we can improve the article.
Brauchst du Hilfe?
Related Post