Replace ZFS disk

Support Wissensdatenbank

Du bist hier:
Print

Replace ZFS disk in Proxmox

Example with the defective diskNVME0N1

1. Replace the affected disk in the server
2. Copy the file system
sgdisk -R=/dev/nvme0n1 /dev/nvme1n1
sgdisk -G /dev/nvme0

3. Swap disk in zpool
zpool replace rpool nvme0n1p3 nvme0n1p3

4. Check whether all data has been synchronised with
zpool status

5. Make the disk bootable and copy the boot data from the old disc
mkfs.vfat /dev/nvme0n1p2
mount /dev/nvme1n1p2 /mnt
mount /dev/nvme0n1p2 /boot/efi
cp -a /mnt/* /boot/efi/
umount /mnt
umount /boot/efi

6. Run Proxmox boot installer
proxmox-boot-tool clean
proxmox-boot-tool init /dev/nvme0n1p2 grub (If no EFI)
proxmox-boot-tool refresh
proxmox-boot-tool status (Check whether both disks appear)

 

This is what it should look like, both discs have Grub and the same 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