User Tools

Site Tools


zfs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
zfs [2018/09/03 12:49] francescozfs [2022/10/26 15:02] (current) francesco
Line 103: Line 103:
  
 <code> <code>
-root@FreeBSD:~ # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0\\+root@FreeBSD:~ # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
 bootcode written to ada0 bootcode written to ada0
  
-root@FreeBSD:~ # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1\\+root@FreeBSD:~ # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada1
 bootcode written to ada1 bootcode written to ada1
  
-root@FreeBSD:~ # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2\\+root@FreeBSD:~ # gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada2
 bootcode written to ada2 bootcode written to ada2
 +</code>
 +
 +**ATTENZIONE!**
 +
 +come spiegato in questo blog:
 +
 +https://solence.de/2019/05/01/update-uefi-boot-code-after-zfs-upgrade-on-freebsd/
 +
 +The suggested command to update the boot code [quello sopra], however, only applies to systems still booting with the old BIOS. If you use it on a system booting with UEFI, the UEFI partition will be overwritten and is not recognized as bootable anymore.
 +
 +The proper command to use on an UEFI system is the following:
 +
 +<code>
 +gpart bootcode -p /boot/boot1.efifat -i 1 ada0
 +</code>
 +
 +e in ogni caso, per vedere se è necessario fare un upgrade del pool ZFS, vale sempre la pena lanciare prima il comando:
 +
 +<code>
 +zpool status zroot
 </code> </code>
 ---- ----
Line 119: Line 139:
  
 https://www.freebsd.org/cgi/man.cgi?zfs%288%29 https://www.freebsd.org/cgi/man.cgi?zfs%288%29
 +
 +e soprattutto, visto che la situazione da FreeBSD 13.0 si è fatta più complicata:
 +
 +https://forums.freebsd.org/threads/update-of-the-bootcodes-for-a-gpt-scheme.80163/
zfs.1535971795.txt.gz · Last modified: 2018/09/03 12:49 by francesco