From 11a6e022148636689094664285937c205498a890 Mon Sep 17 00:00:00 2001 From: Aaron Lauterer Date: Wed, 20 May 2020 16:05:26 +0200 Subject: [PATCH] zfs-local: fix #2704 add disk replacement steps for grub The documentation only covered replacing the disk with systemd-boot but not if grub is used. Signed-off-by: Aaron Lauterer --- local-zfs.adoc | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/local-zfs.adoc b/local-zfs.adoc index 5cce677..76a1ac2 100644 --- a/local-zfs.adoc +++ b/local-zfs.adoc @@ -273,12 +273,27 @@ can be used as cache. # zpool replace -f ---- -.Changing a failed bootable device when using systemd-boot +.Changing a failed bootable device + +Depending on how {pve} was installed it is either using `grub` or `systemd-boot` +as bootloader (see xref:sysboot[Host Bootloader]). + +The first steps of copying the partition table, reissuing GUIDs and replacing +the ZFS partition are the same. To make the system bootable from the new disk, +different steps are needed which depend on the bootloader in use. ---- # sgdisk -R # sgdisk -G # zpool replace -f +---- + +NOTE: Use the `zpool status -v` command to monitor how far the resivlering +process of the new disk has progressed. + +With `systemd-boot`: + +---- # pve-efiboot-tool format # pve-efiboot-tool init ---- @@ -287,6 +302,11 @@ NOTE: `ESP` stands for EFI System Partition, which is setup as partition #2 on bootable disks setup by the {pve} installer since version 5.4. For details, see xref:sysboot_systemd_boot_setup[Setting up a new partition for use as synced ESP]. +With `grub`: + +---- +# grub-install +---- Activate E-Mail Notification ~~~~~~~~~~~~~~~~~~~~~~~~~~~~