X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=blobdiff_plain;f=local-zfs.adoc;fp=local-zfs.adoc;h=76a1ac209391df5169714956262cc765ced42fed;hp=5cce6778bd81dafa800e456a9bb1e8613c78a338;hb=11a6e022148636689094664285937c205498a890;hpb=13962741a69fe93f80223163b953f7a40e1a263d 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~